Subject: Re: [xsl] XSLT 1.0: Grouping Adjacent Elements in Embedded Lists From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 04 Nov 2004 18:30:26 -0500 |
I'm pretty sure I have to edit this part to account for the case when preceding-sibling is <EM_OL_LI>
<xsl:if test="not(preceding-sibling::*[1][self::OL_LI])"> <p> <ol> <xsl:apply-templates select="." mode="li"/> </ol> </p> </xsl:if>
But my attempts have been fruitless.
<xsl:if test="not(preceding-sibling::OL_LI)"> <p> <ol> <xsl:apply-templates select="." mode="li"/> </ol> </p> </xsl:if>
<xsl:if test="not(preceding-sibling::*[1][self::OL_LI|self::EM_OL_LI])"> <p> <ol> <xsl:apply-templates select="." mode="li"/> </ol> </p> </xsl:if>
And if someone could explain to me the difference between [self::OL_LI] and [OL_LI] that would be an added educational bonus. Thanks!
I hope this helps, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSLT 1.0: Grouping Adjacent E, Joe Heidenreich | Thread | [xsl] exclude-result-prefixes, Kevin Collins |
Re: [xsl] exclude-result-prefixes, Geert Josten | Date | Re: [xsl] Grouping by key, Wendell Piez |
Month |