Thanks for the answer, indeed the ':' is not allowed in an ID. It is all
quite confusing all those definitions

Best Regards,

Albert

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, Jan 18, 2019 at 10:05 AM Hussein Shafie <huss...@xmlmind.com> wrote:

> On 01/17/2019 02:11 PM, Albert wrote:
> >
> > When I use the attached xml file in xmlmind I get the warning:
> > [2] <1>       bad value for attribute "id" from namespace
> > "http://www.w3.org/XML/1998/namespace";
> > [3] <2>       bad value for attribute "linkend"
> >
> >
> > The problem looks like to be the ':' in the xml:id. I searched the
> > internet and also some things on
> > stackoverflow(
> https://stackoverflow.com/questions/1077084/what-characters-are-allowed-in-dom-ids
> ),
> > but from this I didn't see any restriction in using a ':' in an xml:id.
> >
> > Did I miss something or it this an omission in xmlmind?
> >
>
> In a nutshell, XMLmind XML Editor is correct in implementing what is
> specified in the DocBook v5.0 schema. Excerpts from "docbook.rng":
> ---
> ...
>
> <grammar ... datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes";
>
> ...
>
>    <define name="db.xml.id.attribute">
>      <attribute name="xml:id">
>        <a:documentation>Identifies the unique ID value of the
> element</a:documentation>
>        <data type="ID"/>
>      </attribute>
>    </define>
>
> ...
>
>    <define name="db.linkend.attribute">
>      <attribute name="linkend">
>        <a:documentation>Points to an internal link target by identifying
> the value of its xml:id attribute</a:documentation>
>        <data type="IDREF"/>
>      </attribute>
>    </define>
>
> ...
> ---
>
> So what are <data type="ID"/> and <data type="IDREF"/>?
>
> * <data type="ID"/> is defined in https://www.w3.org/TR/xmlschema-2/#ID
> ---
> ID represents the ID attribute type from [XML 1.0 (Second Edition)]. The
> ·value space· of ID is the set of all strings that ·match· the NCName
> production in [Namespaces in XML]. The ·lexical space· of ID is the set
> of all strings that ·match· the NCName production in [Namespaces in
> XML]. The ·base type· of ID is NCName.
> ---
>
> * <data type="IDREF"/> is defined in
> https://www.w3.org/TR/xmlschema-2/#IDREF
> ---
>   IDREF represents the IDREF attribute type from [XML 1.0 (Second
> Edition)]. The ·value space· of IDREF is the set of all strings that
> ·match· the NCName production in [Namespaces in XML]. The ·lexical
> space· of IDREF is the set of strings that ·match· the NCName production
> in [Namespaces in XML]. The ·base type· of IDREF is NCName. ---
>
> "NCName" (https://www.w3.org/TR/xml-names/#NT-NCName), not "Name"
> (https://www.w3.org/TR/REC-xml/#NT-Name). Hence, semi-column not allowed.
>
>
>
>
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to