[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: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 26 Jul 2004 16:33:28 +0100
xsltproc default attribute
>>>>> "Paul" == Paul DuBois <paul@xxxxxxxxxxxx> writes:

    Paul> A while back I sent the following message to this list, in
    Paul> which I asked how to prevent xsltproc from adding default
    Paul> element attributes when processing an input document that
    Paul> contains a DOCTYPE declaration.  A few people suggested ways
    Paul> to suppress these, but I have now realized that there is a
    Paul> very simple way to keep the attributes from appearing:

    Paul> Use "xsltproc --novalid" rather than just "xsltproc".  Then
    Paul> xsltproc won't look at the DTD.

    Paul> I'm embarrassed to say that I didn't think of this before,
    Paul> but perhaps by mentioning it here, it will help someone else
    Paul> who has the same problem.

Surely the problem is that you have an unwanted DOCTYPE, not unwanted
attributes?
If the DOCTYPE says that an attribute has a default value, then if
this is inappropriate you have the wrong DOCTYPE.
-- 
Colin Paul Adams
Preston Lancashire

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.