Subject: Re: [xsl] grouping xhtml title with first sibling From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx> Date: Tue, 18 Jan 2011 16:34:52 +0100 |
After adding the f prefix to : <xsl:template match="body/*/f:is-heading(.)" priority="10">
<xsl:function name="f:is-heading" as="xs:boolean"> <xsl:param name="e" as="element()"/> <xsl:sequence select="matches(local-name($e), 'h[1-9]')"/> </xsl:function>
<xsl:template match="body">
<xsl:apply-templates select="* except (*[f:is-heading(.)]/following-sibling::*[1])"/>
</xsl:template>
<xsl:template match="body/*"> <xsl:copy-of select="."/> </xsl:template>
<xsl:template match="body/*/is-heading(.)" priority="10"> <div> <xsl:copy-of select=".|following-sibling::*[1]"/> </div> </xsl:template>
-- Matthieu Ricaud IGS-CP Service Livre numirique
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] grouping xhtml title with, Michael Kay | Thread | Re: [xsl] grouping xhtml title with, Michael Kay |
Re: [xsl] grouping xhtml title with, Michael Kay | Date | Re: [xsl] grouping xhtml title with, Michael Kay |
Month |