[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Determining if an optional attribute is present
you are making it too hard:-) test="@revision" is the test you arre looking for, but you don't need the test at all. replace <node> <xsl:attribute name="revision"> <xsl:if test="not(string(@revision)) = false()"> <xsl:value-of select="@revision"/> </xsl:if> <xsl:if test="not(string(@revision))"> <xsl:text>0</xsl:text> </xsl:if> </xsl:attribute> </node> by <node revision="0"> <xsl:copy-of select="@revision"/> </node>
|
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
|