This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Problem in Using two RTFs together
- To: sfyang at unisvr dot net dot tw
- Subject: [xsl] Re: Problem in Using two RTFs together
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Fri, 15 Jun 2001 00:40:43 -0700 (PDT)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
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