[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|