[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Ignoring Redundancy
Subject: [xsl] Ignoring Redundancy From: <michella@xxxxxxx> Date: Mon, 11 Oct 2004 14:04:29 +0200 |
Hello all, I'm actually trying to design my xsl stylesheet to 1. Select all /Classes/Class/SADefinition nodes where their @SAObjName attribut contains the sequence 'app_' --> OK 2. Sort the result tree according to @SAObjName attribut --> OK 3. Applying the text to each node, but IGNORING ALL REDUNDAND NODES. --> not OK (My XML File contains redundancy nodes) I guess, the use of "following-sibling" won't help me much in this case... Here is the actual code : ... <xsl:result-document href="procXml.bat" format="bat"> <xsl:for-each select="/Classes/Class/SADefinition[contains(@SAObjName,'app_')]"> <xsl:sort select="@SAObjName"/> <xsl:if test="not(@SAObjName=/following-sibling::*[position()=1]/@SAObjName)"> <xsl:text>fop -fo </xsl:text> <xsl:value-of select="@SAObjName"/> <xsl:text>.fo -pdf </xsl:text> <xsl:value-of select="@SAObjName"/> <xsl:text>.pdf </xsl:text> </xsl:if> </xsl:for-each> </xsl:result-document> ... Does anyone have an idea on how to solve my problem? Regards Lawrence Michel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl]cascading evaluation of va, David Carlisle | Thread | Re: [xsl] Ignoring Redundancy, Werner, Wolfgang |
Re: [xsl] Limiting the number of RS, Werner, Wolfgang | Date | Re: [xsl] Ignoring Redundancy, Werner, Wolfgang |
Month |