Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Pattern constraint on string content of complexType having attribute and choice >Thread Next - RE: simple attribute question simple attribute questionTo: xmlschema-dev@--.--- Date: 8/11/2004 4:25:00 AM
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
xml:
<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
this:
<item sometext="attributeText">
<someIdTagIDontWant>9899</someIdTagIDontWant>
</item>
Here's what would get me that:
<complexType name=itemType>
<sequence>
<element name=someIdTagIDontWant
type=type="xs:long"/>
</sequence>
<attribute name="sometext" type="xsd:string"/>
</complexType>
<element name="item" type="itemType"/>
Is this correct, or have I not dug deep enough? I
really don't want the someIdTagIDontWant.
Thanks.
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
From david@d... Wed Aug 11 20:11:38 2004
Received: from dr-nick.w3.or | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
