User Profile

Collapse

Profile Sidebar

Collapse
hammie
hammie
Last Activity: Jul 2 '09, 02:20 AM
Joined: Jun 22 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sorry, I'm limited to using W3C - unless I break with the standard (in my project team, that is) and use a different schema type *plus* rebuild the schema for the rest of the XML.. Which is pretty long, so I'm hoping that there's a W3C-schema-solution somewhere out there!

    Out of curiosity, how would I restrict the attribute values as mentioned in RelaxNG/SchemaTron? Thanks!
    See more | Go to post

    Leave a comment:


  • hammie
    started a topic Schema - How to ensure that attributes are different?
    in XML

    Schema - How to ensure that attributes are different?

    I'm utterless clueless on how I can go about declaring in my schema that two attributes must contain different values, e.g.

    Code:
    <mail to="" from="">Text</mail>
    How do I set the restriction in the schema that the "to" attribute and "from" attribute must contain different values? Hence 'to="Amy" from="Bob"' will validate, while 'to="Amy" from="Amy"'...
    See more | Go to post
No activity results to display
Show More
Working...