Subject: RE: getAttribute()
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Wed, 8 Apr 1998 10:31:49 -0700
|
The XML parser that is contained in the MSXSL Technology Preview does not
check the DTD. And no, this is not a feature.
-----Original Message-----
From: Henning Behme [mailto:hb@xxxxxxxxxxx]
Sent: Wednesday, April 08, 1998 8:15 AM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: getAttribute()
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|