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

Re: DOCTYPE causes appearance of unwanted attributes

Subject: Re: DOCTYPE causes appearance of unwanted attributes
From: Paul DuBois <paul@xxxxxxxxxxxx>
Date: Mon, 26 Jul 2004 21:31:01 -0500
adding attributes to doctype
> Paul DuBois wrote:
> > The DOCTYPE is correct, but I'm not interested in having the transform
> > add a bunch of unnecessary verbiage to an already large file.  Having
> > explicit attributes included with the values that they would have anyway
> > adds no information.
> 
> The parser is *required* to report the default attributes to the
> XSLT processor, which, ignorant of their origin in the DTD,
> faithfully drops them into the output.

I guess I don't follow.

How does _the parser_ have any idea of what the default attributes
are, given that they do not appear in the input document?

And how does it know what the attributes of _any_ element are, unless
it consults the DTD?

> Your options:
> - Use a modified DTD without the default attributes.
> - Add rules to your style sheet which filters unwanted
>   attributes.

Or run xsltproc with the --novalid option, which as I indicated
solves the problem.

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.