<?xml version='1.0'?><!-- -*- mode: indented-text;-*- -->
<xsl:transform
    xmlns:xsl  ="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:r    ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xi   ="http://www.w3.org/2000/07/infoset#"
    xmlns:x2r  ="http://www.w3.org/2000/07/hs78/content.xsl?template="
    >

<xsl:variable
  name="RDF_ns"
  select='"http://www.w3.org/1999/02/22-rdf-syntax-ns#"'/>

<div xmlns="http://www.w3.org/1999/xhtml">

<p>get rid of RDF Literal syntactic sugar</p>

<address>Dan Connolly <br class=""/>
$Id: litSugar.xsl,v 1.1 2001/10/10 19:35:28 connolly Exp $</address>
</div>

<xsl:import href="../../XML/2000/04rdf-parse/content.xsl"/>

<xsl:template match='*[@r:parseType="Literal"]'>
  <xsl:element name='{local-name()}' namespace='{namespace-uri()}'>
    <xi:InfoItemSeq>
      <xsl:apply-templates mode="x2r:content"/>
    </xi:InfoItemSeq>
  </xsl:element>
</xsl:template>


<!-- identity transformation, taken from 
     http://www.w3.org/TR/xslt#copying
  -->
<xsl:template match="*">
  <xsl:element name="{name()}" namespace="{namespace-uri()}">
    <xsl:for-each select="@*">
      <xsl:attribute name="{name()}" namespace="{namespace-uri()}">
        <xsl:value-of select="."/>
      </xsl:attribute>
    </xsl:for-each>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<xsl:template match="text()">
  <xsl:value-of select="."/>
</xsl:template>

<xsl:template match="comment()">
  <xsl:copy/>
</xsl:template>

</xsl:transform>

