Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Schematron question

Reply
Thread Tools

Schematron question

 
 
disteve
Guest
Posts: n/a
 
      04-27-2005
Can Schematron validate that an attribute value is unique within an XML
document? If so, what would the assert or report tests be? See below.

Ex.

<ALLOCATION type="CLASS" name="CLASS A"><!-- OK, "name" unique -->
<CLASS priority="1" name="Highest Priority">
<STORE name="Walmart A 1 1">1000</STORE>
<STORE name="Walmart A 1 2">1001</STORE> 2">
</CLASS>
<ALLOCATION type="CLASS" name="CLASS B"><!-- OK, "name" unique -->
<CLASS priority="1" name="Highest Priority">
<STORE name="Walmart A 1 1">1000</STORE>
<STORE name="Walmart A 1 2">1001</STORE> 2">
</CLASS>
<ALLOCATION type="CLASS" name="CLASS B"><!-- FAILED, not unique -->
<CLASS priority="1" name="Highest Priority">
<STORE name="Walmart A 1 1">1000</STORE>
<STORE name="Walmart A 1 2">1001</STORE> 2">
</CLASS>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
schematron question shaun roe XML 1 09-17-2005 01:54 AM
Passable free editor w/ XML Schema & Schematron validation Steve Jorgensen XML 0 07-27-2005 02:04 AM
[ANN] Schematron seminar in Leuven Belgium paul.hermans XML 0 05-01-2005 09:01 AM
[ANN] Schematron seminar in Leuven Belgium paul.hermans XML 0 05-01-2005 08:49 AM
Parser that handles XSDL with imbedded Schematron? gabriel XML 3 06-25-2003 11:59 AM



Advertisments