[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

Subject: RE: schema - how to not allow text inside a complex element except for in some of it's children
From: "Ray Tayek" <rtayek@xxxxxxxxxxxxxxx>
Date: Tue, 2 Dec 2003 09:22:33 -0800
schema allow text
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-
> list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jarno.Elovirta@xxxxxxxxx
> Sent: Monday, December 01, 2003 8:55 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.