|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML source with DOCTYPE declaration
Hi Zeljko,
I've hesitated to leap into this without doing the necessary homework first, but I think there may be another option for you to consider. In an earlier post you reported the DTD contains declarations such as: <!ENTITY % NS.prefixed "IGNORE"> <!ENTITY % XHTML.prefixed "%NS.prefixed;"> <!ENTITY % XHTML.xmlns "http://www.w3.org/1999/xhtml"> <!ENTITY % XHTML.prefix ""> <!ENTITY % XHTML.xmlns.attrib "xmlns %URI.datatype; #FIXED '%XHTML.xmlns; %XLINK.xmlns.attrib;"> This suggests there's a top-level switch intended to turn namespace prefixes on the names on and off. I wonder what would happen if your DOCTYPE declaration said: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd" [ <!ENTITY NS.prefixed "INCLUDE"> ]> or even <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd" [ <!ENTITY NS.prefixed "IGNORE"> ]> Try it and see. If it works, you might be able to evade the problem in your stylesheets. If not, those declarations are certainly signs of a high-level architecture intended to let you configure the DTD from the internal subset (as I have shown), so something similar (involving an overriding declaration of a parameter entity in your DOCTYPE) may still be possible. Without digging into the DTD's architecture I can't say for sure -- but this mechanism really ought to be documented in there. Cheers, Wendell At 10:15 AM 4/20/01, you wrote: Hi Jeni, ====================================================================== 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
|
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
|

Cart








