xsl-list
[Top] [All Lists]

[xsl] Datatype of a node

2014-09-10 10:58:48
How can I check if two nodes have the same datatype?

I have to xs:choice section in a schema and the choices are of different
datatypes and of course the elements have different names.

I want to add an assert to the schema so that the value in the second
element is greater than the first and that the datatypes of the two choices
are the same or validation fails.

So I have this: <xs:assert test="(child::node()[2] gt child::node()[1]) and
(???)"/>

But I cannot find how to replace the the ??? with the test I need.

MAYBE what I have written so far isn't correct either.  So any tips are
appreciated.

Thanks,
Tim



============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
MLHIM http://www.mlhim.org
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>