cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] GET-snippets Tutorials GETsnippets GET-lenya GETlenya Scherler Thu Apr 24 21:00:11 2003
Date Thu, 24 Apr 2003 19:00:12 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=GET-snippets , version: 19 on Thu Apr 24 18:58:43
2003 by Scherler

+ Goto [GETsnippets]
- !xhtml
- ''Forms original by [W3schools|http://www.w3schools.com/tags/tag_form.asp]''
- {{{<form action="form_action.xsp" method="get">
- First name: 
- <input type="text" name="fname" value="Mickey" />
- <br />
- Last name: 
- <input type="text" name="lname" value="Mouse" />
- <br />
- <input type="submit" value="Submit" />
- </form> 
- }}}
- ''table - more "Optional Attributes" [W3schools|http://www.w3schools.com/tags/tag_table.asp]''
- {{{<table border = "1">
- <tr>
- <td>Cell A</td>
- <td>Cell B</td>
- </tr>
- </table>
- }}}
- !xsl
- ''Match everything and apply all templates''
- {{{
- <xsl:template match="@*|node()">
-     <xsl:copy>
-       <xsl:apply-templates select="@*|node()" />
-     </xsl:copy>
-   </xsl:template>
- }}}
- ''Testing whether certain criteria matches then apply template''
- {{{
- <xsl:for-each select="paragraph">   
-  <xsl:if test="visible = 1">  
-   <xsl:apply-templates/>             
-  </xsl:if>     
- </xsl:for-each>
- }}}
-     
- ''attribute testing''
- {{{[@name()!='name']}}}
- ''xsl:choose - block''
- {{{
- <xsl:choose>
- 	<xsl:when test=""></xsl:when>
- 	<xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- }}}
- ''The following XPath expression selects all the cd elements of the catalog element that
have a price element:''
- {{{
- /catalog/cd[price] 
- }}}
- ''Uppercase to lower case and vice versa''
- {{{
-   <xsl:template match="upper-case">    
-     <xsl:value-of select="translate(current(),
- 'abcdefghijklmnopqrstuvwxyz',
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
-   </xsl:template>
-  
-   <xsl:template match="lower-case">    
-     <xsl:value-of select="translate(current(),
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
- 'abcdefghijklmnopqrstuvwxyz')" />
-   </xsl:template>
- }}}
- ''format Percent''
- {{{  <xsl:template match="formatPercent">    
-     <xsl:value-of select="concat('(',current(),'%)')" />
-   </xsl:template>}}}
-  ''format Currency''
- {{{
-   <xsl:template match="formatCurrency">    
-     <xsl:value-of select="concat(current(),'$')" />
-   </xsl:template>}}}
- 
- King regards\\
- Thorsten [Scherler]
- 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=Tutorials , version: 34 on Thu Apr 24 18:55:12
2003 by StephanNiedermeier

- * [Cocoon 2 Tutorial|http://www.logabit.com/cocoontutorial.php] -- an introduction to Cocoon
2 and some little tutorials. (This tutorial is not complete yet.)
?                                                                                        
                                 -------------------------------------

+ * [Cocoon 2 Tutorial|http://www.logabit.com/cocoontutorial.php] -- an introduction to Cocoon
2 and some little tutorials.


Page: http://wiki.cocoondev.org/Wiki.jsp?page=GETsnippets , version: 1 on Thu Apr 24 18:55:59
2003 by Scherler

New page created:
+ !xhtml
+ ''Forms original by [W3schools|http://www.w3schools.com/tags/tag_form.asp]''
+ {{{<form action="form_action.xsp" method="get">
+ First name: 
+ <input type="text" name="fname" value="Mickey" />
+ <br />
+ Last name: 
+ <input type="text" name="lname" value="Mouse" />
+ <br />
+ <input type="submit" value="Submit" />
+ </form> 
+ }}}
+ ''table - more "Optional Attributes" [W3schools|http://www.w3schools.com/tags/tag_table.asp]''
+ {{{<table border = "1">
+ <tr>
+ <td>Cell A</td>
+ <td>Cell B</td>
+ </tr>
+ </table>
+ }}}
+ !xsl
+ ''Match everything and apply all templates''
+ {{{
+ <xsl:template match="@*|node()">
+     <xsl:copy>
+       <xsl:apply-templates select="@*|node()" />
+     </xsl:copy>
+   </xsl:template>
+ }}}
+ ''Testing whether certain criteria matches then apply template''
+ {{{
+ <xsl:for-each select="paragraph">   
+  <xsl:if test="visible = 1">  
+   <xsl:apply-templates/>             
+  </xsl:if>     
+ </xsl:for-each>
+ }}}
+     
+ ''attribute testing''
+ {{{[@name()!='name']}}}
+ ''xsl:choose - block''
+ {{{
+ <xsl:choose>
+ 	<xsl:when test=""></xsl:when>
+ 	<xsl:otherwise></xsl:otherwise>
+ </xsl:choose>
+ }}}
+ ''The following XPath expression selects all the cd elements of the catalog element that
have a price element:''
+ {{{
+ /catalog/cd[price] 
+ }}}
+ 
+ ''Uppercase to lower case and vice versa''
+ {{{
+   <xsl:template match="upper-case">    
+     <xsl:value-of select="translate(current(),
+ 'abcdefghijklmnopqrstuvwxyz',
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
+   </xsl:template>
+  
+   <xsl:template match="lower-case">    
+     <xsl:value-of select="translate(current(),
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
+ 'abcdefghijklmnopqrstuvwxyz')" />
+   </xsl:template>
+ }}}
+ ''format Percent''
+ {{{  <xsl:template match="formatPercent">    
+     <xsl:value-of select="concat('(',current(),'%)')" />
+   </xsl:template>}}}
+  ''format Currency''
+ {{{
+   <xsl:template match="formatCurrency">    
+     <xsl:value-of select="concat(current(),'$')" />
+   </xsl:template>}}}
+ ----
+ King regards\\
+ Thorsten [Scherler]
+ 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=GET-lenya , version: 22 on Thu Apr 24 18:54:40
2003 by Scherler

- [How to get lenya / cocoon with eclipse|http://wiki.cocoondev.org/Wiki.jsp?page=GET-lenya]
+ [How to get lenya / cocoon with eclipse|GETlenya]


Page: http://wiki.cocoondev.org/Wiki.jsp?page=GETlenya , version: 30 on Thu Apr 24 19:00:02
2003 by Scherler

- 
+ ----


Page: http://wiki.cocoondev.org/Wiki.jsp?page=Scherler , version: 32 on Thu Apr 24 18:55:13
2003 by Scherler

- *[How to get lenya / cocoon with eclipse|http://wiki.cocoondev.org/Wiki.jsp?page=GET-lenya]
+ *[How to get lenya / cocoon with eclipse|GETlenya]
- *''[personal|http://wiki.cocoondev.org/Wiki.jsp?page=GET-snippets] ;-)'' snippets
?                                                         -

+ *''[personal|http://wiki.cocoondev.org/Wiki.jsp?page=GETsnippets] ;-)'' snippets



Mime
View raw message