← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/xslt-doc into lp:zorba/languages-module

 

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 := 
- :     &lt;catalog>
- :         &lt;cd>
- :                 &lt;title>Empire Burlesque&lt;/title>
- :                 &lt;artist>Bob Dylan&lt;/artist>
- :                 &lt;country>USA&lt;/country>
- :                 &lt;company>Columbia&lt;/company>
- :                 &lt;price>10.90&lt;/price>
- :                 &lt;year>1985&lt;/year>
- :         &lt;/cd>
- :         &lt;cd>
- :                 &lt;title>Hide your heart&lt;/title>
- :                 &lt;artist>Bonnie Tyler&lt;/artist>
- :                 &lt;country>UK&lt;/country>
- :                 &lt;company>CBS Records&lt;/company>
- :                 &lt;price>9.90&lt;/price>
- :                 &lt;year>1988&lt;/year>
- :         &lt;/cd>
- :     &lt;/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 := 
- :   &lt;xsl:stylesheet version="1.0" 
+ :   <xsl:stylesheet version="1.0" 
  :       xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  : 
- :     &lt;xsl:template match="/">
- :       &lt;html>
- :       &lt;body>
- :       &lt;h2>Music Collection&lt;/h2>
- :         &lt;table border="1">
- :           &lt;tr bgcolor="lightblue">
- :             &lt;th>Title&lt;/th>
- :             &lt;th>Artist&lt;/th>
- :           &lt;/tr>
- :           &lt;xsl:for-each select="catalog/cd">
- :           &lt;tr>
- :             &lt;td>&lt;xsl:value-of select="title"/>&lt;/td>
- :             &lt;td>&lt;xsl:value-of select="artist"/>&lt;/td>
- :           &lt;/tr>
- :           &lt;/xsl:for-each>
- :         &lt;/table>
- :       &lt;/body>
- :       &lt;/html>
- :     &lt;/xsl:template>
- :   &lt;/xsl:stylesheet>
+ :     <xsl:template match="/">
+ :       <html>
+ :       <body>
+ :       <h2>Music Collection&lt;/h2>
+ :         <table border="1">
+ :           <tr bgcolor="lightblue">
+ :             <th>Title&lt;/th>
+ :             <th>Artist&lt;/th>
+ :           </tr>
+ :           <xsl:for-each select="catalog/cd">
+ :            <tr>
+ :              <td>&lt;xsl:value-of select="title"/></td>
+ :              <td>&lt;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";;


Follow ups