Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [xsd-dev] Element Declaration Problem

This list is for the development of the Eclipse XSD plugin, not general XSD
questions.  For that, look to the W3C xsd-dev list.

Your complexType must extend xs:string to allow text content (or be mixed
content).  I'm writing this syntax from memory (and it's late), so may be
missing something, but try this:

<xs:complexType>
    <xs:simpleContent>
        <xs:extension base="xs:string">
            <xs:attribute name="type" type="xs:normalizedString" use
="required"/>
        </xs:extension>
    </xs:simpleContent>
</xs:complexType>

Regards,
  Dave Carlson

----- Original Message ----- 
From: <philip.mathew@xxxxxxxxx>
To: <xsd-dev@xxxxxxxxxxx>
Sent: Thursday, November 20, 2003 9:50 PM
Subject: [xsd-dev] Element Declaration Problem


> Hi,
>        For the element given below
>              <Vehicle type="car">ToyotaCamry</Vehicle>
>
> My Xsl validation fails saying Vehicle is supposed to be a empty tag
>
>              my schema is
>              <xs:element name="Vehicle">
>                 <xs:complexType>
>                   <xs:attribute name="type" type="xs:normalizedString" use
> ="required"/>
>                 </xs:complexType>
>              </xs:element>
>
>         What should I change in the schema so that the XSLT works ?
>
> thanks,
> Zorro
>
>
>
>
> *****************************************************************
> The addressee's email address has changed to
> firstname.lastname@ sgcib.com. You may want to update your
> personal address book. Please see http://www.sgcib.com for more
> information.
>
> This message and any attachments (the "message") are confidential
> and intended solely for the addressee(s). Any unauthorised use or
> dissemination is prohibited.E-mails are susceptible to alteration.
> Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
> shall be liable for the message if altered, changed or falsified.
> *****************************************************************
>
> _______________________________________________
> xsd-dev mailing list
> xsd-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/xsd-dev
>




Back to the top