XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
increment pattern for an attribute..

	
I need to define the schema for "val" attribute in the
below XML:

<data term="EXP">
<el val="20">
<ch> some data </ch>
</el>
<el val="21">
<ch> some data </ch>
</el>
.....similarly for val=22,23,24,....N
</data>

<data term="SUPP">
<el val="20">
<ch> some data </ch>
</el>
<el val="21">
<ch> some data </ch>
</el>
.....similarly for val=22,23,24,....N
</data>

Here, am more interested in the "val" attribute of
"el" element. What is the Specific schema for "val"
attribute which satisfies the following conditions:
1. allowed values for "val" are 20,21,22,..... N (no
limit on N although it's typically < 100.)
2. "val" always begins with 20 in each "data" element
scope.
3. "val" must be in ascending order (20,21,22...etc)
4. "val" must be unique in each "data" element scope.

appreciate any pointers.
+D

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS