Subject: Re: [xsl] Breaking up XML(XHTML) into pages From: "Leonidas Kanellos" <leonidaskanellos@xxxxxxxxxxx> Date: Tue, 25 Mar 2003 12:31:05 +0000 |
<!-- manage h2 elements --> <xsl:template match="//xhtml:div[@class='section']/xhtml:h2">
I use condition in order not to have the external (<a>) h2 at the output <xsl:choose> <xsl:when test="./xhtml:a"> </xsl:when> <xsl:otherwise>
<input name="page_number" value="{$page_number}"/> <xsl:value-of select="*"> </xsl:value-of> <xsl:apply-templates/>
<h2 class="section" id="{generate-id()}"> <a name="{generate-id()}"> <xsl:value-of select="."/> </a> </h2>
</xsl:choose> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Breaking up XML(XHTML) in, David Carlisle | Thread | Re: [xsl] Breaking up XML(XHTML) in, David Carlisle |
RE: [xsl] XML to XSL, Michael Kay | Date | [xsl] xmlDoc.documentElement Error, Neumyer, Jim |
Month |