473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

xml schema frage identity constrain

Hello,

is it possible to verify via xml schema the correctness of references
in the following exmple:

<person>
<id>1</id>
...
</person>

<person>
<id>2</id>
...
</person>

<person>
...
<related-persons>1 2</related-persons>
</person>

I know that it would be possible via ID IDREFS but these only apply to
attributes. Can it be done via key/keyref? I always failed in doing so
because of the white space separated list, even if type of
related-persons
was declared as list of integers.

many thanks in advance
Jul 20 '05 #1
1 992
Vasiliki Papathanasiou wrote:
Hello,

is it possible to verify via xml schema the correctness of references
in the following exmple:

<person>
<id>1</id>
...
</person>

<person>
<id>2</id>
...
</person>

<person>
...
<related-persons>1 2</related-persons>
</person>

I know that it would be possible via ID IDREFS but these only apply to
attributes.


So why not use it? That is what it is for.

///Peter
--
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Pieter | last post by:
I've read a lot of posts on "why relax ng is so very good" and on "why w3c xml schema should be the only schema language". I'm, however, still not clear on why I should prefer one over the other. ...
1
by: ruthless | last post by:
hello. i've got a question can i in XML Schema define tag that works as lists knows from e.g. C,C++ - recurrent tags? i'm talking about e.g. genealogical tree every level of this tree is...
2
by: Rob Exley | last post by:
I think this is a sensible question but am happy to be pointed out the error of my ways. I am specifying a new product for which I would like to have an XML Schema interface (not sure whether...
0
by: Russell Thamm | last post by:
Hi, my application uses several XML documents. I want to know if there is any way to define identity constraints across documents. eg Doc A
1
by: jiaqi.guo | last post by:
I want to limit the content of a tag to be a string or another tag. How can I do it? <mytag att1="abc">Hello World</mytag> or <mytag att1="abc"><tag1>...</tag1></mytag> or <mytag...
2
by: WideBoy | last post by:
Hi, In an XML schema there is little difference between the data types 'int' and 'integer', however, if you use a tool such as WSDL.exe to generate proxy classes to handle such schemas you find...
0
by: Drew Greenwell | last post by:
Hello, Can anyone tell me how to write a schema for something like this? Im trying to write a webhelp setup and decided to go with a book chapter theme but i need to constrain this template to...
3
by: C.W.Holeman II | last post by:
I am new to using XML. I am using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1. In my test I am attempting to have the style sheet:...
3
by: Marc Hebert | last post by:
I'm trying to figure out if something is possible to specify and constrain using a schema. I'll explain using an example. sample xml: <person name="John" age="32"/> <person name="Julie"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.