[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML source with DOCTYPE declaration

Subject: Re: XML source with DOCTYPE declaration
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 20 Apr 2001 15:24:51 +0100
doctype xhtml entity
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,

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.                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



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.