OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: Tutorial update



> <rng:grammar xmlns:rng="..." xmlns="W3C XML Schema Part 2">
>   <rng:data type="string" />
> </rng:grammar>
>
> Is the above data considered as the built-in string? Or XML Schema Part
> 2 string?

I would have said the former.   It's important to be able to put the pattern
into a normal form where namespace declarations are not significant, so:

<rng:data type="string" ns="W3C XML Schema Part 2"/>

has to reference the XML Schema Part 2 string.  However, it would be a bit
strange to use both the ns attribute and the default namespace declaration
to resolve an unqualified name.  Also in all other cases of QNames,
unqualified names use the ns attribute not the default namespace
declaration.  (Like with <attribute>, <data> does not inherit the ns
attribute; it is only applicable if specified on the <data> element.)

This complexity is perhaps another reason in favour of my proposal not to
use QNames for datatypes.

James





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC