previous  next

1+2 as XSLT

1 + 2
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		  xmlns:xs="http://www.w3.org/2001/XMLSchema"
		  xmlns:fn="http://www.w3.org/2005/xpath-functions"
		  xmlns:local="http://www.w3.org/2005/XQuery-local-functions"
		  xmlns:xq="java:Xq2xml"
		  xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
		  version="2.0"
		  extension-element-prefixes="xq"
		  exclude-result-prefixes="xq xs xdt local fn">
    <xsl:param name="input" as="item()" select="1"/>
    <xsl:output indent="yes"/>
    <xsl:template name="main">
      <xsl:for-each select="$input">
	<xsl:sequence select="( 1 + 2 )"/>
      </xsl:for-each>
    </xsl:template>

  </xsl:stylesheet>