[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: not-having-attribute
>Is it possible to get "all para nodes that do NOT > contain a type attribute OR nodes that contain a value not equal to warning?" Write: para[not(@type=warning)] >From the note at the end of XPath section 5.3 > (http://www.w3.org/TR/1999/REC-xpath-19991116.html#attribute-nodes) I gather >that I need to use a validating XML parser if I want this to work at all. No, this is not necessary if you code your stylesheet to handle absent attribute values and treat absence in the same way as you treat the default value. Mike Kay 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
|