William Candillon has proposed merging lp:~zorba-coders/zorba/xslt-doc into lp:zorba/languages-module.
Commit message: Minor documentation improvements Requested reviews: William Candillon (wcandillon) Cezar Andrei (cezar-andrei) For more details, see: https://code.launchpad.net/~zorba-coders/zorba/xslt-doc/+merge/126969 Minor documentation improvements -- https://code.launchpad.net/~zorba-coders/zorba/xslt-doc/+merge/126969 Your team Zorba Coders is subscribed to branch lp:zorba/languages-module.
=== modified file 'src/com/zorba-xquery/www/modules/languages/xslt.xq' --- src/com/zorba-xquery/www/modules/languages/xslt.xq 2011-08-13 00:08:39 +0000 +++ src/com/zorba-xquery/www/modules/languages/xslt.xq 2012-09-28 13:46:01 +0000 @@ -28,62 +28,60 @@ : : : <p>Example: - : <pre class="brush: xquery;"> - : import module namespace + : <pre class="ace-static" ace-mode="xquery"><![CDATA[import module namespace : xslt = "http://www.zorba-xquery.com/modules/languages/xslt"; : : let $source := - : <catalog> - : <cd> - : <title>Empire Burlesque</title> - : <artist>Bob Dylan</artist> - : <country>USA</country> - : <company>Columbia</company> - : <price>10.90</price> - : <year>1985</year> - : </cd> - : <cd> - : <title>Hide your heart</title> - : <artist>Bonnie Tyler</artist> - : <country>UK</country> - : <company>CBS Records</company> - : <price>9.90</price> - : <year>1988</year> - : </cd> - : </catalog> + : <catalog> + : <cd> + : <title>Empire Burlesque</title> + : <artist>Bob Dylan</artist> + : <country>USA</country> + : <company>Columbia</company> + : <price>10.90</price> + : <year>1985</year> + : </cd> + : <cd> + : <title>Hide your heart</title> + : <artist>Bonnie Tyler</artist> + : <country>UK</country> + : <company>CBS Records</company> + : <price>9.90</price> + : <year>1988</year> + : </cd> + : </catalog> : : let $stylesheet := - : <xsl:stylesheet version="1.0" + : <xsl:stylesheet version="1.0" : xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> : - : <xsl:template match="/"> - : <html> - : <body> - : <h2>Music Collection</h2> - : <table border="1"> - : <tr bgcolor="lightblue"> - : <th>Title</th> - : <th>Artist</th> - : </tr> - : <xsl:for-each select="catalog/cd"> - : <tr> - : <td><xsl:value-of select="title"/></td> - : <td><xsl:value-of select="artist"/></td> - : </tr> - : </xsl:for-each> - : </table> - : </body> - : </html> - : </xsl:template> - : </xsl:stylesheet> + : <xsl:template match="/"> + : <html> + : <body> + : <h2>Music Collection</h2> + : <table border="1"> + : <tr bgcolor="lightblue"> + : <th>Title</th> + : <th>Artist</th> + : </tr> + : <xsl:for-each select="catalog/cd"> + : <tr> + : <td><xsl:value-of select="title"/></td> + : <td><xsl:value-of select="artist"/></td> + : </tr> + : </xsl:for-each> + : </table> + : </body> + : </html> + : </xsl:template> + : </xsl:stylesheet> : : return - : xslt:transform( $source, $stylesheet) - : </pre></p> + : xslt:transform( $source, $stylesheet)]]></pre></p> : : @author Cezar Andrei : @library <a href="http://xmlsoft.org/XSLT/">libxslt Library</a> - : @project programming languages + : @project Zorba/Programming Languages/XSLT : :) module namespace xslt = "http://www.zorba-xquery.com/modules/languages/xslt";
-- Mailing list: https://launchpad.net/~zorba-coders Post to : [email protected] Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp

