Re: [xml-dev] ANN: How to design an XML Schema component into which other components can be embedded
Hi Roger, On Thu, Nov 25, 2010 at 4:24 AM, Mukul Gandhi <> 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