Subject: [xsl] Datatype of a node From: "Timothy W. Cook tim@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 10 Sep 2014 15:58:21 -0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Approach to transform 250, Syd Bauman s.bauman@ | Thread | Re: [xsl] Datatype of a node, Michael Kay mike@xxx |
Re: [xsl] Approach to transform 250, Syd Bauman s.bauman@ | Date | Re: [xsl] Datatype of a node, Michael Kay mike@xxx |
Month |