|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: schema - how to not allow text inside a complex el
Hi,
> hi, wondering how to declare something like the following in a schema:
>
> <foo>
> <!-- no text allowed here -->
> <bar>text</bar>
> <!-- no text allowed here -->
> <baz>text</baz>
> <!-- no text allowed here -->
> </foo>
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.
Cheers,
Jarno - Hocico: Twisted Lines (Solitary Experiments remix)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








