Re: [xsl] XML source with DOCTYPE declaration

Subject: Re: [xsl] XML source with DOCTYPE declaration
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 20 Apr 2001 15:24:51 +0100
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 "";>
<!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"
<!ENTITY NS.prefixed "INCLUDE">

or even

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
<!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.


At 10:15 AM 4/20/01, you wrote:
Hi Jeni,

first of all thanks for your help. All just works as you described.  :)
Still I got some questions left to which you maybe/hopefully could give
an answer....

Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
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:

Current Thread