[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:choose and xsl:when
[somehow this didn't reach the list, retry. probably outdated now though..]
Hi Oryan, see my comments, Cheers, Abel oryann9 wrote: <?xml version="1.0" ?>
</BODY>
<FONT COLOR="orange" SIZE="+2"> <xsl:apply-templates select="PHONE" /> then, have twotemplate matches (one for empty or non-existing @TYPE, the other for all other @TYPE): <xsl:template match="PHONE[@TYPE='' | not(@TYPE)]" > <xsl:value-of select="."/> (HOME) </ <xsl:template match="PHONE[@TYPE != '']"> <xsl:value-of select="."/> (<xsl:value-of select="PHONE/@TYPE" />) </ </xsl:when> <xsl:when test="(PHONE/@TYPE='')"> (HOME) </xsl:when> <xsl:otherwise> (HOME) </xsl:otherwise> </xsl:choose> </FONT> </xsl:template> </xsl:stylesheet>
|
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
|