|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: create a xsl rule
At 14:26 20/03/2003 +0100, you wrote:
Hi Lionel! That's a good question. The answer is that I didn't create the DTD. Secondly your para rule is handling all para tag's so none should be displayed. Yes there is a rule on etm that accessed directly to para. Here is it : <xsl:template match="etm[graphic and count(para)='1' and following-sibling::etm[1]/*[not(graphic or figure or table)]]"> <xsl:variable name="gen" select="generate-id()" /> <table border="0" width="100%"> <tr> <td valign="top"> <span style="float:right"> <xsl:attribute name="width"> <xsl:value-of select="graphic/@width" /> </xsl:attribute> <xsl:apply-templates select="graphic" /> </span> <xsl:apply-templates select="following-sibling::etm[not(graphic or figure or table) and not(preceding-sibling::code[1]) and generate-id(preceding-sibling::etm[graphic or table or figure][position()=1])=$gen]/*" mode="mode1" /> </td> </tr> </table> <br /> </xsl:template> It's a little bit complicated, but that's the way it is... Keeping your stucture you would need to rewrite the etm's parent rule. So if I understand well, I had to do what I didn't want to do, rewrite the etm's rules. Lionel 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








