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

Re: Problem in Using two RTFs together

Subject: Re: Problem in Using two RTFs together
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 15 Jun 2001 00:40:43 -0700 (PDT)
xsl apply templates select
Yang wrote:

> When I used the source xml ,// z:row ,as the attribute of select of
> apply-templates,
> the data from with-param can be accessed and  can be used to display the
> desired output.
> 
> However When I advanced to used the modifed source xml which is rtf-zs as
> the attribute of select of apply-templates
> then the data passed through with-param seems to be the  empty one.

Hi Yang,

When an RTF, converted into a node-set with the xxx:node-set() function is accessed,

it consists of a single node (the root of the tree).

Therefore,
 <xsl:apply templates select="msxsl:node-set($someRTF)"/>

is most probably not going to work -- you have provided template(s) matching the
type of the children of the root -- not of the root itself.

Use:
 <xsl:apply templates select="msxsl:node-set($someRTF)/node()"/>

Hope this helped.

Cheers,
Dimitre Novatchev.



__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

 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.