[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Controlling which nodes to process
Hi, is there a way to control how the nodes are to be processed? I want to select all the child elements with their appropriate template rule except one child element. In the next example , the table element is parse twice: - first when <xsl:apply-templates select="caption"/> is called - second when <td> <xsl:apply-templates/> is called is there an expression to select all the children except one ? something as : <xsl:apply-templates select="* and not( caption)"/> INPUT <table> <caption>title</caption> <tr><td>...</td></tr> <tr><td>...</td></tr> </table> STYLESHEET ... <xsl:template match="//table"> <table > <caption> <xsl:apply-templates select="caption"/> </caption> <tr> <td> <xsl:apply-templates/> <-------------- here i want to select all the child elements except one: caption element </td> </tr> </table> </xsl:template> ... <xsl:template match="caption"> <xsl:if test="@align"> <xsl:attribute name="align"> <xsl:value-of select="@align"/> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </xsl:template> ... Cheers Pascal Troadec 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
|