|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT Stylesheet Exclude Parental Search Results?
xsl:if doesn't change the context node, it merely tests
whether the selected node exists. Try
<xsl:for-each select="/ns:html/ns:body/ns:div[@id='content']/ns:p/ns:strong"> <xsl:choose> <xsl:when test="contains(.,'Firstname:')"> <firstname><xsl:value-of select="."/></firstname> </xsl:when> <xsl:otherwise> <firstname>Unknown</firstname> </xsl:otherwise> </xsl:choose> </xsl:for-each> That's still not quite right but it's closer. Michael Kay http://www.saxonica.com/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








