|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Limiting XSL Results for Timely Web Page Display
Pass one more param to the XSL:
<xsl:param name="searchphrase" select="'dog'"/> <xsl:template match="dictionary">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="*[contains(text(), $searchphrase)]"/>
</xsl:copy>
</xsl:template><xsl:template match="word">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:attribute name="id">
<xsl:value-of select="position()"/>
</xsl:attribute>
<xsl:copy-of select="text()"/>
</xsl:copy>
</xsl:template>Regards, Joerg Bruce Dailey wrote: One more related question here - can you return a value in XSL? In this example I want to return the number of records in the result set. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








