Re: XSLT Query

Subject: Re: XSLT Query
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 Jul 1999 21:28:31 -0400
At 99/07/15 15:25 -0700, Mallikarjuna Sangappa wrote:
>I have a EMPTY 
>element with FIXED attribute in the DTD and in the XML Document, the element 
>is used without the attribute being defined. So in the XSLT file, if I 
>access the attribute value, should I get the fixed value or blank value?

According to 4.3 of XSL-19990421 and 5.3 of XPath-19990709:

  A defaulted attribute is treated the same as a specified attribute.

Therefore, you will see the attribute as if its value had been specified in
the instance.

.............. Ken

G. Ken Holman                    mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.   
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999   (Fax:-0995)
Website:  XSL/XML/DSSSL/SGML services, training, libraries, products.
Publications:   Introduction to XSLT (3rd Edition) ISBN 1-894049-00-4
Next instructor-led training:   MS'99 1999-08-16  MT'99 1999-12-05/06

 XSL-List info and archive:

Current Thread