Re: [xml-dev] Why is there an "S" in XSLT?

From
Robert Koberg <>
To
Mukul Gandhi <>
Date
2008-05-19T18:15:38Z
ID
<1211220938.6762.6.camel@rkoberg-laptop>
Thread
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 <> wrote:
> > 2008/5/19 James Fuller <>:
> > > 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...
> 
>