This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Multiple Filtering


Hi,
Is there any way to do multiple filtering using one xsl file...
The below method does partial filtering...
I want to use one xsl file...I'll filter Subchapters with attribute Author 
value = "test"...Then,from the resultant ,I've to do one more filtering and 
so on...


<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  <!-- Identity transformation template -->
  <xsl:template>
    <xsl:copy>
      <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
    </xsl:copy>
  </xsl:template>
<xsl:template match = "SUBCHAPTERS/@Author = "Test"/>
<xsl:template match = "CHAPTER[not(SUBCHAPTERS)]"/>
<xsl:template match = "/">
    <xsl:copy>
       <xsl:apply-templates select="@*"/>
		  <xsl:apply-templates/>
    </xsl:copy>
  </xsl:template>


</xsl:stylesheet>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]