Scott Daley wrote:
> I can't work out why the conflict. I also had a
problem with ID type in
> another attribute. Jing points me to "
<define name="db._any">
> <element>" within the docbook.rng file.
> Any ideas? I tried excluding my namespace from the
db._any without
> success. Not sure if this is a red herring...
Add the following inside <include .../>:
<define name="db._any">
<element>
<anyName>
<except>
<nsName/>
<nsName ns="http://www.w3.org/1999/x
html"/>
<nsName ns="...your
namespace..."/>
</except>
</anyName>
<zeroOrMore>
<choice>
<ref
name="db._any.attribute"/>
<text/>
<ref name="db._any"/>
</choice>
</zeroOrMore>
</element>
</define>
Problem was, that you have defined attribute ID for your
element, but at
the same time db._any defined all attributes as of type text
for all
elements in other namespaces. You must exclude your
namespace from this
general pattern.
Jirka
--
------------------------------------------------------------
------
Jirka Kosek e-mail: jirka kosek.cz http://www.kosek.cz
------------------------------------------------------------
------
Profesionální školení a poradenství v oblasti technologií
XML.
Podívejte se na náš nově spuštěný web http://DocBook.cz
Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------
------
Nejbližší termíny školení:
** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006
**
------------------------------------------------------------
------
http://xmlguru.cz Blog
mostly about XML for English readers
------------------------------------------------------------
------
|