Optional parameters: Difference between revisions
Content added Content deleted
(XSLT) |
|||
Line 673: | Line 673: | ||
<<'foo','b '>,<'bazzz','c'>,<'barr','a '>>, |
<<'foo','b '>,<'bazzz','c'>,<'barr','a '>>, |
||
<<'bazzz','c'>,<'foo','b '>,<'barr','a '>>></pre> |
<<'bazzz','c'>,<'foo','b '>,<'barr','a '>>></pre> |
||
=={{header|XSLT}}== |
|||
You can give any template parameter a default value using the optional "select" attribute. |
|||
<lang xml> |
|||
<xsl:template name="sort"> |
|||
<xsl:param name="table" /> |
|||
<xsl:param name="ordering" select="'lexicographic'" /> |
|||
<xsl:param name="column" select="1" /> |
|||
<xsl:param name="reversed" select="false()" /> |
|||
... |
|||
</xsl:template> |
|||
</lang> |