Subject: Re: [xsl] Omit TEIForm and capture attributes of current node From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 25 Sep 2008 11:57:13 -0400 |
XSL
<xsl:template match="p">
<xsl:for-each-group select="node()" group-adjacent="self::list self::figure[@id]">
<xsl:choose>
<xsl:when test="current-grouping-key()">
<xsl:apply-templates select="self::*"/>
</xsl:when>
<xsl:otherwise>
<xsl:if test="@rend">
<p class="{@rend}">
<xsl:copy-of select="current-group()"/>
</p>
</xsl:if>
<xsl:if test="not(@rend)">
<p><xsl:copy-of select="current-group()"/></p>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each-group>
</xsl:template>
Cheers, 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 -> |
---|---|---|
RE: [xsl] Omit TEIForm and capture , Michael Kay | Thread | [xsl] Marshalling data (function pa, Justin Johansson |
RE: [xsl] Omit TEIForm and capture , Michael Kay | Date | [xsl] Does this XSLT 2.0 stylesheet, Jonathan Robie |
Month |