[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] common/dtd/svg11/svg-style.mod
A DTD is still valid if you declare the same attribute more than once. See
this reference in the XML standard:
http://www.w3.org/TR/2004/REC-xml-20040204/#attdecls
What you are seeing is a warning, not an error. You can turn off the
warning by adding the --nowarning option to xmllint. Then it will only
complain about validity problems.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Chris Chiasson" <chris.chiasson@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Sunday, February 05, 2006 7:10 AM
Subject: [docbook-apps] common/dtd/svg11/svg-style.mod
Hello docbook-apps,
Inside svg-style.mod, there is an entity, SVG.style.attlist.
(Apparently - I'm not too good at reading SGML - ) it's xml:space
attribute is set to preserve:
<!ENTITY % SVG.style.attlist "INCLUDE" >
<![%SVG.style.attlist;[
<!ATTLIST %SVG.style.qname;
xml:space ( preserve ) #FIXED 'preserve'
%SVG.Core.attrib;
type %ContentType.datatype; #REQUIRED
media %MediaDesc.datatype; #IMPLIED
title %Text.datatype; #IMPLIED
>
The entity reference to SVG.Core.attrib also sets the xml:space
attribute (svg-core-attrib.mod):
<!ENTITY % SVG.space.attrib
"xml:space ( default | preserve ) #IMPLIED"
>
<!ENTITY % SVG.Core.extra.attrib "" >
<!ENTITY % SVG.Core.attrib
"%SVG.id.attrib;
%SVG.base.attrib;
%SVG.lang.attrib;
%SVG.space.attrib;
%SVG.Core.extra.attrib;"
>
In my Docbook+MathML+SVG build scripts, xmllint is complaining about
this, saying that the space attribute is already set. My question to
you is:
Is this warning pertinent? I am able to get rid of it by deleting the
line beginning with xml:space (but I am worried that it could have
unknown effects in the future).
I have other problems I am trying to solve, and I am wondering if this
is the source.
In case you want to know about the other problems, I am having trouble
making my docbook xsl html customization layer call the xhtml
customization layer and apply the w3c mathml xsl sheet (to make
regular html from xhtml+mathml, but all in one step so I don't have to
worry about, for example, the file names of chunks).
Thank you for your time,
--
Chris Chiasson
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]