Using assert in a complexType with complexContent

"Costello, Roger L." <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
Hi Folks,

I got an error with the assert element in this complexType:

    <xs:complexType name="authorType" mixed="true">
        <xs:complexContent>
            <xs:extension base="property">
                <xs:sequence>
                    <xs:element ref="Person" />
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
        <xs:assert test="not(normalize-space(string-join((.)/text(), '')))" />
    </xs:complexType>

The error message says:

   Element xs:assert cannot appear here: expected no more elements

I thought that it was legal to position the assert there? Apparently not. What is the proper way to do this?

/Roger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.