[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Detecting presence of attributes
I'm having a problem with detection of the presence of attributes. If I say <xsl:if test="@foo=''"> then I would expect the condition to be true if (a) the attribute foo was specified but the value was the null string "", or (b) the attribute foo was not specified at all. xt does not appear to honor either. Is this a bug in xt, or have I missed some additional piece of syntax. What I want is the equivalent to Omnimark's condition `when attribute foo is specified'. A second problem arises with the position() function. In xt this appears only to work within an <xsl:for-each> loop, not in a node group instantiated by a match or select. Is this a bug or just my misreading? ///Peter XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|