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

RE: preventing output of attribute defaults using xala

Subject: RE: preventing output of attribute defaults using xalan
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sun, 21 Dec 2003 22:31:23 -0000
source for xala
> Not including DTD defaulted attributes in the XPath data 
> model would be non-conformant.

I don't think this is strictly true: the XSLT specification allows you
to construct a source tree any way you like, and a processor that gave
you the option not to expand attribute defaults would, I think, be
conformant.

But that's a technicality, and the basic advice remains sound: if you
supply a DTD and use a validating parser, then attributes are likely to
be expanded, so if you don't want this to happen, then you need to make
sure that parser doesn't do validation, and the simplest way to achieve
that is to not reference a DTD.

Michael Kay


 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.