Hussein,

To be fair, both are correct, but it depends on what you want to do

If you refer to XML Specification [1], then it means that you are
talking about well formedness (without namespace)

If you refer either to Namespace in XML [2] or any specification that
depends on this one, you are talking about namespace-well-formedness
which is described in section 7 of [2]

So if you think that XMLMind is either namespace aware and namespace
non aware then indeed you have to choose

But probably, the stricter rule is better

Xmlizer

[1] http://www.w3.org/TR/xml/

[2] http://www.w3.org/TR/REC-xml-names/

On Mon, Nov 2, 2009 at 7:01 PM, Hussein Shafie <hussein at xmlmind.com> wrote:
> Jeff Hooker wrote:
>>
>> Found one small bug with the genXref feature; it filters all special 
>> characters
>> except the colon (:), which is an illegal character in xml:ids.
>>
>
> Is it really?
>
> --> Extensible Markup Language (XML) 1.0 (Fourth Edition),
> http://www.w3.org/TR/xml/ says:
> ---
> Values of type ID ?MUST match the Name production.
>
> Name ::= NameStartChar (NameChar)*
>
> NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | ...
> ---
>
> --> XML Schema Part 2: Datatypes Second Edition,
> says:
> ---
> The ?lexical space? of ID is the set of all strings that ?match? the
> NCName production in [Namespaces in XML]
>
> NCName ::= (Letter | '_') (NCNameChar)*
> /* An XML Name, minus the ":" */
> ---
>
> Who is right?
>
>
>
>
>
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>

Reply via email to