[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: getAttribute()

Subject: Re: getAttribute()
From: Henning Behme <hb@xxxxxxxxxxx>
Date: Wed, 08 Apr 1998 17:15:23 +0200
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.