Hi, Jonathan Marsh writes: > Yes, this is true. If you have "year" elements without "which" attributes > or "event" elements without "status" elements MSXSL will generate this error > instead of returning null. The easiest workaround in this case would be to > make sure these attributes are always present. > as regards to the question, why getAttribute fails to work properly, if any of the elements in question don't have this particular attribute. What I did was to put it this way: <!ATTLIST event cat (general|...|w3c) "general" subcat (conf|paper|...|no) "no" status (...) "none"> so, in a way (default way) every single element has a value for this attribute. Does this mean, msxsl doesn't check the DTD for default values? And, if yes, is that considered to be a feature ;-) ? Best regards, Henning Behme iX - Magazin fuer professionelle Informationstechnik Helstorfer Str. 7 * 30625 Hannover * Germany http://www.heise.de/ix/ * +49 511 5352-374 * -361 (Fax) ------ White, adj. and n. Black (Ambrose Bierce) ------ 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