W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2004

simple attribute question

From: Rob Harrington <robot252@yahoo.com>
Date: Wed, 11 Aug 2004 11:25:21 -0700 (PDT)
Message-ID: <20040811182521.27487.qmail@web40812.mail.yahoo.com>
To: xmlschema-dev@w3.org

Newbie here.  Apologies in advance if this isn't the
correct forum - if so please advise where I can take
this question.

In my schema definition, I simply want to express this

<item sometext="attributeText">9899</item>

where 9899 is a positive integer.

in the schema, it seems I can't declare this
structure, the best I can get to is something like

<item sometext="attributeText">

Here's what would get me that:

<complexType name=itemType>
    <element name=someIdTagIDontWant
  <attribute name="sometext" type="xsd:string"/>

<element name="item" type="itemType"/>

Is this correct, or have I not dug deep enough?  I
really don't want the someIdTagIDontWant.


Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
Received on Wednesday, 11 August 2004 18:30:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:23 UTC