Subject: [xsl] not() function not working From: "Kartheek Hirode" <khirode@xxxxxxxx> Date: Mon, 6 Aug 2001 16:58:41 -0700 |
Hello, I'm trying to selectively pick nodes using the not() function. I seem to be missing something because the output does not reflect the not() exclusion. I appreciate your attention. XSL script is: <xsl:template match="/"> <xsl:apply-templates select="*"/> </xsl:template> <xsl:template match="child1[not(@type='one')]"> <xsl:value-of select="."/> </xsl:template> XML data is: <parent> <child1 type='one'> <child2 name = 'a'> <valueOf>aaa</valueOf> </child2> <child2 name = 'b'> <valueOf>bbb</valueOf> </child2> </child1> <child1 type='two'> <child2 name = 'c'> <valueOf>ccc</valueOf> <valueOf>ddd</valueOf> </child2> </child1> </parent> The output is: aaa bbb ccc ddd Whereas, I am trying to get this output: ccc ddd Much appreciated, --KH XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Summation and NaN, David_Marston | Thread | RE: [xsl] not() function not worki, Kartheek Hirode |
RE: [xsl] Summation and NaN, sumev | Date | RE: [xsl] Creating page breaks in X, Tim Watts |
Month |