[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Why is there an "S" in XSLT?
- From: Robert Koberg <rob@koberg.com>
- To: Mukul Gandhi <gandhi.mukul@gmail.com>
- Date: Mon, 19 May 2008 14:15:38 -0400
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]