<xsl:stylesheet version="2.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns="http://www.w3.org/1999/xhtml" 
  xmlns:my="http://jena.sourceforge.net/tests/grddl/xslt2" 
  xmlns:html="http://www.w3.org/1999/xhtml" 
  exclude-result-prefixes="html">

<!-- Output method XML -->
<xsl:output method="xml" 
  indent="yes"
  omit-xml-declaration="no" 
  encoding="utf-8"  />

  <xsl:template match="/">
    <rdf:RDF  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
              xmlns:ex="http://example.org/test#">

<!-- The triple whose subject is the input document -->
      <rdf:Description rdf:about="{my:function()}">
         <rdf:value>XSLT 2.0 supported</rdf:value>
      </rdf:Description>
    </rdf:RDF>
  </xsl:template>
 <xsl:function
  name = "my:function">
  <xsl:text>http://example.org/user/defined/function</xsl:text>
</xsl:function>

</xsl:stylesheet>

