If I have the following XML:
Code: Select all
<foo>
<bar name="lorem" />
<bar name="ipsum" />
<bar name="dolor" />
<bar name="sit" />
...
</foo>
I hope that all makes sense!
Post by daddyjones » Thu May 03, 2018 4:34 pm
Code: Select all
<foo>
<bar name="lorem" />
<bar name="ipsum" />
<bar name="dolor" />
<bar name="sit" />
...
</foo>
Post by tavy » Fri May 04, 2018 12:13 pm
Code: Select all
<sch:rule context="foobar/@name">
<sch:let name="values" value="//bar/@name"/>
<sch:assert test=". = $values"> Invalid value "<sch:value-of select="."/>",
should be one of: "<sch:value-of select="$values"/>"
</sch:assert>
</sch:rule>
Post by daddyjones » Thu May 10, 2018 4:42 pm
Post by daddyjones » Thu May 10, 2018 4:44 pm
Post by daddyjones » Thu May 10, 2018 5:34 pm
Post by Radu » Fri May 11, 2018 1:30 pm
This website was created & generated with <oXygen/>®XML Editor