<!-- 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:xlink="http://www.w3.org/1999/xlink"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:eg="http://www.example.org/not-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" />

<!-- confirm default mode of processing -->
<xsl:variable name="xa:use-xml-base-in-xhtml"
              select="false()" />
              
              
<!-- 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="*[@xlink:href]">
  <eg:seeAlso>
    <xsl:call-template name="xa:base"/>
    <xsl:attribute
        name="rdf:resource">
      <xsl:value-of select="@xlink:href" />
    </xsl:attribute>
  </eg:seeAlso>
</xsl:template>
  
<!-- don't pass text through. -->
<xsl:template match="text()">
</xsl:template>

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


</xsl:stylesheet>

