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. Advertisements

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,689
    Colin Mackenzie
    Jun 25, 2003
  2. paul.hermans
    Replies:
    0
    Views:
    455
    paul.hermans
    May 1, 2005
  3. paul.hermans
    Replies:
    0
    Views:
    466
    paul.hermans
    May 1, 2005
  4. Steve Jorgensen
    Replies:
    0
    Views:
    628
    Steve Jorgensen
    Jul 27, 2005
  5. shaun roe

    schematron question

    shaun roe, Sep 16, 2005, in forum: XML
    Replies:
    1
    Views:
    507
    Steve Jorgensen
    Sep 17, 2005
  6. jean-gert nesselbosch

    ISO-schematron-xslt-implementation

    jean-gert nesselbosch, Oct 24, 2005, in forum: XML
    Replies:
    0
    Views:
    576
    jean-gert nesselbosch
    Oct 24, 2005
  7. Nirav

    Schematron diagnostics

    Nirav, Sep 6, 2006, in forum: XML
    Replies:
    0
    Views:
    519
    Nirav
    Sep 6, 2006
  8. Lord0
    Replies:
    0
    Views:
    814
    Lord0
    Oct 19, 2006
Loading...