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

RE: Create a node set and then apply a template to it

Subject: RE: Create a node set and then apply a template to it
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sat, 27 Apr 2002 19:02:46 +0100
xslt create node set
There are no facilities in standard XSLT 1.0 to create nodes and then apply
templates to them. You can create nodes in a "result tree fragment", but the
things you are allowed to do with  them are very limited.

However, all the major XSLT processors offer an extension function called
xx:node-set() which fills this gap.

Some processors, such as Saxon, also have an extension (saxon:tokenize() in
this case) which does the job directly.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of paul morgan
> Sent: 27 April 2002 13:59
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Create a node set and then apply a template to it
>
>
> I'm just looking into using XSLT (translation: clueless) for
> a project I'm working on, and I'm wondering if it's possible
> to create a node set via a template and then apply some other
> template to it?  Since I don't have all of the terminology
> down yet, let me illustrate via an example.
>
> Given the text node, "out of luck", I'd like to end up with
> the node set containing the following elements:
>
>     <WORD>out</WORD>
>     <WORD>of</WORD>
>     <WORD>luck</WORD>
>
> and to that node set I'd like to apply a template.  Looking
> around it seems as if a lot of people have had a similar sort
> of question, but (in my current state of ignorance) I've been
> unable to directly apply their concerns to my problem.
>
> Any help or pointers to documentation would be most appreciated.
>
> Thanks,
>
> :Paul
>
>
>
> See Dave Matthews Band live or win a signed guitar
> http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.co
m/lycos_020201/splash.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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
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-2013 All Rights Reserved.