|
Subject: Re: [xsl] template to group by tags From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 19 Aug 2008 12:46:47 +0200 |
I need one templete 1.0 or 2.0 to group tags author and editor like this, grouping the values by the word and:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xpath-default-namespace="http://bibtexml.sf.net/" xmlns="http://bibtexml.sf.net/" version="2.0">
<xsl:output indent="yes"/> <xsl:strip-space elements="*"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template> <xsl:template match="article | book">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<author>
<xsl:value-of select="author" separator=" and "/>
</author>
<editor>
<xsl:value-of select="editor" separator=" and "/>
</editor>
<xsl:apply-templates select="*[not(self::author or self::editor)]"/>
</xsl:copy>
</xsl:template>Martin Honnen http://JavaScript.FAQTs.com/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] template to group by tags, IZASKUN GUTIERREZ GU | Thread | [xsl] Re: [FO] Margin when a block , Vincent Hennebert |
| [xsl] template to group by tags, IZASKUN GUTIERREZ GU | Date | Re: [xsl] [xsl-fo], G. Ken Holman |
| Month |