Subject: RE: [xsl] XSLT, XHTML, and default attribute values [somewhat OT] From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 14 Sep 2004 12:58:31 -0400 |
> that's true. but then why not just remove the DTD > altogether? then you don't have to support obscure and/or > parser dependant configuration options.
I'm not sure it is true. If a DTD is specified in the xml the parser *must* attempt to read it to ensure any defaulted values are present in the XML, regardless of configuration. Turning off validation (I think) simply suppresses validation errors. The only way I know of to parse an xml file with a DTD specified (without access to the DTD itself) is to implement a custom entity resolver. Of course, you can edit the XML file prior to transforming to remove the doctype, but regex'ing over xml markup just feels wrong.
I don't understand the benefits of using defaulted values, as anyone studying the xml also needs to study the dtd to ensure they get the full picture. Seems crazy, really.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
--+------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT, XHTML, and default , Colin Paul Adams | Thread | Re: [xsl] XSLT, XHTML, and default , Joseph Dane |
Re: [xsl] dynamically applying temp, Wendell Piez | Date | Re: [xsl] How show Chinese an Japan, J.Pietschmann |
Month |