[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
defining keys in Schemas
- From: Laura Hatcher <lhatcher@a...>
- To: xml-dev <xml-dev@l...>
- Date: Thu, 26 Jul 2001 10:40:17 -0400
I have spent some time researching the issue of how to define keys (that
of a database) in XML Schemas. And I have found a couple of resources.
The XML schema specs state:
<unique
id=ID
name=NCName >
content: (annotation?, (selector, field+))
</unique>
<key
id=ID
name=NCName>
content: (annotation?, (selector, field+))
</key>
...and so on an so forth
<field
id=ID
xpath= {a subset of an xpath expression}>
content: (annotation?)
</field>
The thing that bothers me is that the field and selector elements use
xpath expression. I guess my question is, is it necessary to use
xpath if you are planning on declaring keys within your schema? or
is there a better way?
<another note>
I want to use a xml document to enter the parsed data into a database
and not create a web page and therefore I don't want to use XSLT.
Are there any suggestion on the best way of accomplishing this and maintain
the integrity constraints?
</another note>
Thanks in advance,
Laura Hatcher
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|