[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: DOCTYPE causes appearance of unwanted attributes
>>>>> "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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|