Subject: Re: getAttribute() From: Henning Behme <hb@xxxxxxxxxxx> Date: Wed, 08 Apr 1998 17:15:23 +0200 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: getAttribute(), Jonathan Marsh | Thread | RE: getAttribute(), Jonathan Marsh |
RE: getAttribute(), Jonathan Marsh | Date | Style sheet for XSL?, Nigel Hutchison |
Month |