Created
October 20, 2011 13:06
A brief comparison between XQuery and XSLT code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(: A brief comparison between XQuery and XSLT code :) | |
(: For-each in XQuery.. :) | |
for $b in $books | |
order by $b/title | |
return | |
$b/title | |
(: For-each in XSLT.. :) | |
<xsl:for-each select="$books"> | |
<xsl:sort select="title"/> | |
<xsl:copy-of select="title"/> | |
</xsl:for-each> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment