Schematron question

Discussion in 'XML' started by disteve, Apr 27, 2005.

  1. disteve

    disteve Guest

    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>
     
    disteve, Apr 27, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gabriel
    Replies:
    3
    Views:
    1,554
    Colin Mackenzie
    Jun 25, 2003
  2. paul.hermans
    Replies:
    0
    Views:
    355
    paul.hermans
    May 1, 2005
  3. paul.hermans
    Replies:
    0
    Views:
    379
    paul.hermans
    May 1, 2005
  4. Steve Jorgensen
    Replies:
    0
    Views:
    538
    Steve Jorgensen
    Jul 27, 2005
  5. shaun roe

    schematron question

    shaun roe, Sep 16, 2005, in forum: XML
    Replies:
    1
    Views:
    438
    Steve Jorgensen
    Sep 17, 2005
Loading...

Share This Page