<?xml version="1.0" encoding="UTF-8" ?>

<!--
    Document   : pubrulesfilter 
    Created on : 15 May 2003 
    Author     : jjc
    Comment
        the link checker makes a mess of checking OWL Test Cases WD
        This prunes some of the rubbish.
-->

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:saxon="http://icl.com/saxon"
    xmlns:xhtml="http://www.w3.org/1999/xhtml">

    <xsl:template match="xhtml:dd[xhtml:dl/xhtml:dd/xhtml:a/@href[contains(string(),'#test')]]"
        priority="2" />
        
    <xsl:template match="xhtml:dd[./following-sibling::xhtml:dd[1]/xhtml:dl/xhtml:dd/xhtml:a/@href[contains(string(),'#test')]]"
        priority="2" />
    <xsl:template match="xhtml:dd[contains(string(),'200')][./following-sibling::xhtml:dd[2]/xhtml:dl/xhtml:dd/xhtml:a/@href[contains(string(),'#test')]]"
        priority="2" />
    <xsl:template match="xhtml:dd[./following-sibling::xhtml:dd[1][contains(string(),'200')]][./following-sibling::xhtml:dd[3]/xhtml:dl/xhtml:dd/xhtml:a/@href[contains(string(),'#test')]]"
        priority="2" />
   
    <xsl:template match="xhtml:dt[./following-sibling::xhtml:dd[2][contains(string(),'200')]][./following-sibling::xhtml:dd[4]/xhtml:dl/xhtml:dd/xhtml:a/@href[contains(string(),'#test')]]"
        priority="2" />
        
        
    <xsl:template match="xhtml:pre" priority="2"/>
    

<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>

</xsl:stylesheet> 