<!-- stylesheet that returns an empty RDF document -->
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns="http://www.w3.org/1999/xhtml" 
  xmlns:html="http://www.w3.org/1999/xhtml" 
  xmlns:eg = "http://example.org/aNamespace#"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
  xmlns:xa="http://www.w3.org/2003/g/xml-attributes#"
  exclude-result-prefixes="html">

<xsl:import href="http://www.w3.org/2003/g/xml-attributes" />

              
              
<!-- Output method XML -->
<xsl:output method="xml" 
  indent="yes"
  omit-xml-declaration="no" 
  encoding="utf-8"  />

  
<xsl:template match="/">
<rdf:RDF>
  <rdf:Description rdf:about="">
   <xsl:apply-templates />
  </rdf:Description>
</rdf:RDF>
</xsl:template>


<!-- the real rule. -->
<xsl:template match="text()">
  <xsl:variable name="t" select="normalize-space()"/>
  <xsl:if test="not($t='')">
    <eg:containsTextNode>
       <xsl:call-template name="xa:lang"/>
      <xsl:value-of select="$t"/>
    </eg:containsTextNode>
  </xsl:if>
</xsl:template>
  

<!-- don't pass attributes through. -->
<xsl:template match="@*">
</xsl:template>


</xsl:stylesheet>

