[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Tempore 20:28:26, die 09/15/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Spencer Tickner <spencertickner@xxxxxxxxx>:
"not(/Root/foo/@att!='hi')"
Re: [xsl] attribute test
Subject: Re: [xsl] attribute test From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Thu, 15 Sep 2005 20:34:17 +0200 |
Tempore 20:28:26, die 09/15/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Spencer Tickner <spencertickner@xxxxxxxxx>:
This should be a relatively simple solution but my mind ain't quite working right today and google isn't being good to me.
I'm looking to test if any elements of a certain type do NOT have an attribute with a specific value in an entire xml doc. For instance.
<!-- Pseudo xsl --> <xsl:template match="/"> <xsl:if test="<!-- if all the foo elements in the doc only contain the attribute att with a value of hi, don't output -->"> <xsl:apply-templates/> </xsl:if> </xsl:template>
"not(/Root/foo/@att!='hi')"
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] attribute test, Spencer Tickner | Thread | Re: [xsl] attribute test, Spencer Tickner |
[xsl] attribute test, Spencer Tickner | Date | Re: [xsl] attribute test, Spencer Tickner |
Month |