XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] ANN: How to design an XML Schema component into whichother components can be embedded

Hi Roger,

On Thu, Nov 25, 2010 at 4:24 AM, Mukul Gandhi <gandhi.mukul@gmail.com> wrote:
> <xs:assert test="report:Title"/>

it seems that in the first post that I wrote in this thread, the
following assertions (instead of the one above I wrote earlier) would
be more appropriate for the use-case you've written.

<xs:assert test="report:Title[count(node()) = count(text())]"/>

This ensures that children of "Title" element are only literal strings.



-- 
Regards,
Mukul Gandhi


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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS