avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/documentation/resources/stylesheets avfilterlinks.xsl
Date Mon, 18 Nov 2002 23:59:01 GMT
donaldp     2002/11/18 15:59:01

  Added:       src/documentation/resources/stylesheets avfilterlinks.xsl
  Log:
  Add in xsl sheet to filter links out that we should not traverse
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-phoenix/src/documentation/resources/stylesheets/avfilterlinks.xsl
  
  Index: avfilterlinks.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
  This stylesheet filters all references to the javadocs
  and the samples.
  -->
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
      <xsl:template match="@src|@href|@background">
          <xsl:if test="not(contains(., '/api/')) and
                        not(starts-with(., 'api/'))">
              <xsl:copy>
                  <xsl:apply-templates select="."/>
              </xsl:copy>
          </xsl:if>
      </xsl:template>
  
      <xsl:template match="@*|node()">
          <xsl:copy>
              <xsl:apply-templates select="@*|node()"/>
          </xsl:copy>
      </xsl:template>
  
  </xsl:stylesheet>
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message