XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Why is there an "S" in XSLT?

On Mon, 2008-05-19 at 22:17 +0530, Mukul Gandhi wrote:
> As cited by Andrew, this is a "simplified stylesheet" module.
> 
> I am curious, why was this syntax invented in the XSLT 2.0 spec? What
> are the use cases for this syntax?

To be able to make a more simple style sheet :)
[startDocument]
<div>
 <h1>
  <xsl:value-of select="/article/title[1]"/>
 </h1>
</div>
[endDocument]

What would be really nice is if you could build up simplified
stylesheets in a transform and run them in that same transform. I know
it can't be done (currently), but it still would be cool :)

best,
-Rob


> 
> On 5/19/08, Andrew Welch <andrew.j.welch@gmail.com> wrote:
> > 2008/5/19 James Fuller <james.fuller.2007@gmail.com>:
> > > and what does this now mean in 2.0 ?
> > >
> > > <myownelement xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0">
> > >
> > > </myownelement>
> >
> > That's almost a "simplified stylesheet" but I think you need to prefix
> > the version attribute:
> >
> > http://www.w3.org/TR/xslt#result-element-stylesheet
> >
> > Ironically simplified stylesheets often caused the most confusion for
> > people new to the language...
> 
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS