W3C home > Mailing lists > Public > www-math@w3.org > March 2004

Re: xml:base

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 1 Mar 2004 17:21:34 GMT
Message-Id: <200403011721.RAA32104@penguin.nag.co.uk>
To: Justus.Piater@ULg.ac.be
Cc: www-math@w3.org


  Shouldn't the MathML DTD allow the xml:base attribute at (all?)
  elements? My documents that xi:include MathML sources from other
  directories do not validate.

the prose text of MathML allows _any_ attribute from a non-mathml
namespace on any element, however it's hard to allow that with a dtd
(the schema should allow that)


The DTD does (following XHTML modularisation guidelines) have parameter
entities that allow the declaration of namespaced attributes with
specific prefixes, in your case I think the simplest version would be
the following, which is reported as valid by rxp.


<!DOCTYPE math SYSTEM "../mathml2/mathml2.dtd"[
<!ENTITY % MATHML.NamespaceDecl.attrib 
     "xmlns CDATA #FIXED 'http://www.w3.org/1998/Math/MathML'
      xml:base CDATA #IMPLIED"
      
>
]>
<math xmlns="http://www.w3.org/1998/Math/MathML" xml:base="x"/>



Of course one could place the entity declaration in a small dtd that
then loaded the main mathml dtd rather than having it in the local
subset, if prefered.

One could argue that this one at least ought to be pre-declared (as
xsi:schemaLocation is) but it isn't (probably due to history as much as
anything)

Hope this helps,

David





-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Received on Monday, 1 March 2004 12:21:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:56 GMT