Re: XSD 1.1: not okay to have an xs:assert at the attribute level?
Mukul Gandhi <[email protected]> Sun, 23 Sep 2012 22:29:14 +0530
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <CABuuzNM3pMHi2meq_6sw-NqCJYaUhyTV2CYU-v9f1PeQh3WpoA@mail.gmail.com> |
Hi Roger,
The following <assert>,
<xsd:assert test="QName('http://www.w3.org/2001/XMLSchema',
string(@name)) eq xsd:QName('xsd:element')"/>
seems to give me the result that you want.
On Sun, Sep 23, 2012 at 9:03 PM, Costello, Roger L. <[email protected]> wrote:
> Hello Mukul,
>
>> <xsd:assert test="string(@name) eq 'xsd:element'" />
>
> That's a good idea, but the value of @name is not a string, it is a QName. Thus, I should be able to change the namespace prefix:
>
> <xsd:assert test="string(@name) eq 'xs:element'" />
>
> and the assertion should still work.
>
> /Roger
--
Regards,
Mukul Gandhi