Subject: Re: [xsl] Flattening hierarchic xml, retaining some structure From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Wed, 19 Jan 2005 18:30:28 +0100 |
I have a hierarchic structure, that I would like to flatten.Hi,
I have tried looking for some examples, but I have not been able to expand the examples I have found, so that they will work on my problem.
<xsl:template match="mynode/*" mode="encapsule"> <mynode> <xsl:copy-of select="../@*"/> <xsl:apply-templates select="." mode="list"/> </mynode> <xsl:apply-templates select="(following-sibling::*/mynode)[1]"/> </xsl:template>
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) "Et ipsa scientia potestas est" - Francis Bacon , Meditationes sacrae
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Flattening hierarchic xml, re, Ragulf Pickaxe | Thread | Re: [xsl] Flattening hierarchic xml, Ragulf Pickaxe |
Re: [xsl] Good Reference, M. David Peterson | Date | RE: [xsl] Comparing node for identi, Jim Neff |
Month |