Altova Mailing List Archives
>microsoft.public.xml Archive Home
>Recent entries
>Thread Prev - Re: min/max xpath function
[Thread Next]
Re: min/max xpath function
To: NULL
Date: 6/8/2007 10:21:00 PM
A word of caution, though. According to the XSLT 1.0 specification: "NOTE:It is possible for two conforming XSLT processors not to sort exactly the same." http://www.w3.org/TR/xslt#element-sort So, one should always check whether the character ordering used for sorting by a particular XSLT 1.0 processor matches the expectations. Also, different results are possible using different XSLT 1.0 processors. Even in XSLR 2.0/Xpath 2.0 character ordering is not guaranteed over different XSLT 2.0 processors. The only collation all conformant XSLT 2.0 processors are required to support is the Unicode code-points collation. Cheers, Dimitre Novatchev. P.S. In case you need to compare two strings using XSLT 1.0, do have a look at this six-years-old code snippet: http://www.topxml.com/code/default.asp?p=3&id=v20010205033413 "alexl" <alextheblade@g...> wrote in message news:1181231025.838954.31390@p...... > amazing!! thanks! > >> Like this: >> >> <xsl:template match="/root"> >> <xsl:for-each select="string"> >> <xsl:sort select="@priority" /> >> <xsl:if test="position() = 1"> >> <xsl:value-of select="."/> >> </xsl:if> >> </xsl:for-each> >> </xsl:template> >> >> -- >> >> Martin Honnen --- MVP XML >> http://JavaScript.FAQTs.com/ > >
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

