-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-
list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com
Sent: Monday, December 01, 2003 8:55 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] schema - how to not allow text inside a complex element
except for in some of it's children
Hi,
hi, wondering how to declare something like the following in a schema:
<foo>
<!-- no text allowed here -->
<bar>text</bar> ...
start = element foo {
element bar { text },
element baz { text }
}
or
<xs:element name="foo">
<xs:complexType>
<xs:sequence>
<xs:element name="bar" type="xs:string"/>
<xs:element name="baz" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
This is an XSL list.
Great! Does just what you expect.
thanks
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list