|
Subject: RE: [xsl] schema - how to not allow text inside a complex element except for in some of it's children From: Jarno.Elovirta@xxxxxxxxx Date: Tue, 2 Dec 2003 06:54:48 +0200 |
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
| Current Thread |
|---|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] schema - how to not allow tex, Ray Tayek | Thread | RE: [xsl] schema - how to not allow, Ray Tayek |
| [xsl] Saxon 7.8 XPathEvaluator ques, Bob Foster | Date | Re: [xsl] "Instantiating a template, David Tolpin |
| Month |