Search found 4 matches

by jjhernan
Wed Dec 18, 2013 5:11 am
Forum: XML Schemas
Topic: Schematron & Check for Unique attribute
Replies: 1
Views: 3531

Re: Schematron & Check for Unique attribute

Just came up with a working solution... <xsl:key name="getAllRoles" match="//DataSets/DataSet[@Name='Folders']/Property/Property[@Name='Role']" use="@Value"/> <sch:pattern id="CheckOrganization_UniqueRole"> <sch:rule context="//DataSets/DataSet[@Name='Fol...
by jjhernan
Wed Dec 18, 2013 4:47 am
Forum: XML Schemas
Topic: Schematron & Check for Unique attribute
Replies: 1
Views: 3531

Schematron & Check for Unique attribute

...Still new to schematron... thank you in advance for your help... I have a source XML document where I need to assert that an attribute is unique in a set of elements. I built a rule to enforce this, but its not working. I searched online and tried to follow some examples I found, but still no dic...
by jjhernan
Tue Dec 17, 2013 9:20 pm
Forum: XML Schemas
Topic: Schematron & Counting Total # of Attributes
Replies: 2
Views: 4234

Re: Schematron & Counting Total # of Attributes

Great!

Made the appropriate changes based on your comments and it worked!

Thank you for the prompt reply!
by jjhernan
Tue Dec 17, 2013 5:02 am
Forum: XML Schemas
Topic: Schematron & Counting Total # of Attributes
Replies: 2
Views: 4234

Schematron & Counting Total # of Attributes

Hi all- New to schematron, so thank you for your help in advance! I have built a pattern that is suppose to count the number of attributes that are equal to a certain number and 'assert' that the total number of attributes equal to that value is equal to 1. My rule is not working and I don't underst...