Subject: RE: [xsl] Built in templates and issues getting the XSLT processor to navigate an input document From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Tue, 25 Sep 2007 11:25:31 +0100 |
<xsl:template match="a/b"> <xsl:message> b found </xsl:message> <xsl:apply-templates select="a/b/c"/> Your b element does not have a child called a, so select="a/b/c" starting at b will select nothing. You want select="c". And you don't need match="a/b", match="b" will do fine. You only need match="a/b" if you want to distinguish <b> elements that are children of an <a> from those that aren't. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Dunk, Michael (Mike) [mailto:mikedunk@xxxxxxxxxxxxx] > Sent: 25 September 2007 11:12 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Built in templates and issues getting the XSLT > processor to navigate an input document
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Built in templates and issues, Dunk, Michael (Mike) | Thread | RE: [xsl] Built in templates and is, Wendell Piez |
Re: [xsl] Sorting and grouping unkn, Claus Jessing | Date | Re: [xsl] Built in templates and is, George Cristian Bina |
Month |