[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Why is there an "S" in XSLT?

  • From: Robert Koberg <rob@k...>
  • To: Mukul Gandhi <gandhi.mukul@g...>
  • Date: Mon, 19 May 2008 14:15:38 -0400

Re:  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@g...> wrote:
> > 2008/5/19 James Fuller <james.fuller.2007@g...>:
> > > 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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.