Subject: [xsl] following sibling not working From: Paul Tremblay <phthenry@xxxxxxxxxxxxx> Date: Sun, 29 Jun 2003 13:18:04 -0400 |
I'm trying to test for a condition in the following sibling node and having no luck. My template looks like this: <xsl:if test = "not(following-sibling::emphasis[1][@role = 'option-argument'])"> <block new-lines-after = "1"> <xsl:text>]</xsl:text> </block> </xsl:if> The idea is to make sure the following mode does not have an attribute that is an option argument. If the following node in fact does not have such an attribute, but a "]" in the mode. I have also tried: <xsl:if test = "not(following-sibling::*[1][@role = 'option-argument'])"> <block new-lines-after = "1"> <xsl:text>]</xsl:text> </block> </xsl:if> But I couldn't get the results I wanted here, either. Thanks Paul -- ************************ *Paul Tremblay * *phthenry@xxxxxxxxxxxxx* ************************ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] namespace change, what am, Lars Huttar | Thread | Re: [xsl] following sibling not wor, David Carlisle |
Re: [xsl] Re: namespace change, wha, S Woodside | Date | Re: [xsl] following sibling not wor, David Carlisle |
Month |