[Home] [By Thread] [By Date] [Recent Entries]
Michael,
Perhaps I could offer a thought on your question of why so many readers of the spec have trouble finding "and" and "or" in the documentation. I would think most people approaching XSLT with a knowledge of "other programming languages" are going to consider "and" and "or" to be operators. The third paragraph of the XSLT 2.0 spec abstract is as follows: XSLT 2.0 is designed to be used in conjunction with XPath 2.0, which is defined in [XPath 2.0] <#xpath20>. XSLT shares the same data model as XPath 2.0, which is defined in [Data Model] <#xpath-datamodel>, and it uses the library of functions and operators defined in [Functions and Operators] <#xpath-functions>. If one follows the link to the Functions and Operators document one will not find any mention of "and" or "or" as operators - and come away with the mistaken impression that these operator don't exist. Take care, Murray On 1/4/2012 3:13 AM, Michael Kay wrote: On 04/01/2012 02:56, GWmbox wrote:I have had a read through the W3C stuff for IF elements but I cannot find anything conclusive about an OR for the IF elements.See section 3.6 of the XPath 2.0 specification, "logical expressions"
|

Cart



