W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2001

Re: Error (?) in xhtml-arch-1.mod

From: Gary Bentley <gb@opengroup.org>
Date: Wed, 5 Dec 2001 12:58:56 +0000
To: Masayasu Ishikawa <mimasa@w3.org>
Cc: www-html-editor@w3.org, mccarthy36@earthlink.net
Message-Id: <01120512585609.05740@sinope>
Hi Masayasu,

Thank you for the clarification.

(I have now updated my links to use www.w3.org instead...)

You say that the architecture module should be ingored by default however I 
am not able to find this in the DTDs, if you consider the following DTD chain:

xhtml-basic10.dtd

includes:

xhtml-framework-1.mod

which then has a conditional item to pull in the xhtml-arch-1.mod
DTD, the condition for this is keyed on "xhtml-arch.module" which is defined
in xhtml-framework-1.mod as "INCLUDE", I can't find overriding reference for 
xhtml-arch.module in any of the "higher" DTDs.

So the question is, where is this default defined?

Unfortunately I am not able to override the DTD, i.e. write my own since for 
the application I am writing I HAVE to use the W3C version.

Also, does anyone know of an expanded version of the XHTML Basic DTD, i.e. 
one that has all the other DTDs pulled in and resolved, this would be very 
useful when checking the validity of the markup I am writing.

Many thanks,

Gary

On Wednesday 05 December 2001 12:19, Masayasu Ishikawa wrote:
> Gary Bentley <gb@opengroup.org> wrote:
> > When trying to access the XHTML DTD:
> >
> > 	http://www.w3c.org/TR/xhtml-basic/xhtml-basic10.dtd
>
> A side issue: please use "www.w3.org" to refer to the W3C Web site.
>
> > the XML parser I am using eventually spits back an error saying that the
> > Processing Instruction cannot contain the character ":".  The error
> > cropped up in:
> >
> > 	http://www.w3c.org/TR/xhtml-basic/xhtml-arch-1.mod
>
> 			<snip/>
>
> Jesse McCarthy <mccarthy36@earthlink.net> wrote:
> > Gary, I would tend to think that your parsers are in error as according
> > to the XML 1.0 specification the colon ":" is unambiguously allowed in
> > processing instruction targets, among other things.
>
> Actually the issue is not that simple.  As Jesse said, ":" is allowed
> in XML 1.0 [1], but not allowed in "Namespaces in XML" [2], and
> architectural forms support requires the PI to appear in the form
> "<?IS10744:arch".  This is one of many places where DTD and namespaces
> don't work well together.
>
> A workaround would be to disable the namespace support of your parser
> when you process the XHTML Basic DTD (Xerces has that option), or
> you could ignore the XHTML Base Architecture Module if you don't
> need it (as it should have been ignored by default).
>
> [1] http://www.w3.org/TR/REC-xml#NT-PITarget
> [2] http://www.w3.org/TR/REC-xml-names/#Conformance
>
> Regards,
Received on Wednesday, 5 December 2001 07:56:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:48 UTC