[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] about impoting and applying Templates


Subject: Re: [xsl] about impoting and applying Templates
From: "Joerg Heinicke" <joerg.heinicke@xxxxxx>
Date: Wed, 30 Jan 2002 23:06:42 +0100

> <xsl:apply-templates select="//publicCommentNodes"/>
> <xsl:apply-templates select="//commentHolder/WMSForwardMessage"/>

Here you tell the processor to handle the publicCommentNodes before the
commentHolder. Place them in one with UNION-operator:

<xsl:apply-templates select="//publicCommentNodes |
//commentHolder/WMSForwardMessage"/>

One comment to this: In general try to avoid '//', specify the path more
explicitely:

<xsl:apply-templates select="/Models/CommentContainer/publicCommentNodes |
/Models/CommentContainer/commentHolder/WMSForwardMessage"/>

Regards,

Joerg


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



Current Thread