<?xml version="1.0" encoding="us-ascii"?>
<!-- XSLT script to delete, from a del.icio.us XML backup, the private posts (unshared posts) -->
<!-- http://stackoverflow.com/questions/396586/xsl-that-returns-the-xml-unchanged -->
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    
    <xsl:template match="@*|comment()|processing-instruction()">
      <xsl:copy/>
    </xsl:template>
    
    <xsl:template match="node()">
      <xsl:if test="name()!='post' or (not (@shared) or @shared!='no')">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>                           
      </xsl:if>
    </xsl:template>
    
  </xsl:stylesheet>

