> that did not help,
let me give an example:
<page:link page="pages/medewerker.page .xml">
<page:var>
<page:name>id </page:name <page:value>val ue</page:value>
</page:var>
<page:var>
<page:name>id 2</page:name <page:value>val ue2</page:value>
</page:var>
Bla <center>Bla <b>Bla</b></center>
</page:link>
This should be transformed to:
<a href="/index.php?page= pages/medewerker.page .xml&id=value&i d2=value2">
Bla <center>Bla <b>Bla</b></center>
</a>
It works for me with these templates:
############### ############### #############
<xsl:template match="page:lin k">
<a>
<xsl:attribut e name="href">
/index.php?page= <xsl:value-of select="@page"/>
<xsl:for-each select="page:va r">
&<xsl:va lue-of select="page:na me"/>=<xsl:value-of select="page:va lue"/>
</xsl:for-each>
</xsl:attribute>
<xsl:apply-templates select="node()[not(self::page: var)]" mode="ignore"/>
</a>
</xsl:template>
<xsl:template match="*" mode="ignore">
<xsl:copy>
<xsl:apply-templates select="node()[not(self::page: var)]" mode="ignore"/>
</xsl:copy>
</xsl:template>
############### ############### #############
But if the xml structure really is a simple as in this example (no deeper nested elements that should be ignored), than this would suffice:
<xsl:template match="page:lin k">
<a>
<xsl:attribut e name="href">
/index.php?page= <xsl:value-of select="@page"/>
<xsl:for-each select="page:va r">
&<xsl:va lue-of select="page:na me"/>=<xsl:value-of select="page:va lue"/>
</xsl:for-each>
</xsl:attribute>
<xsl:copy-of select="node()[not(self::page: var)]"/>
</a>
</xsl:template>
############### ############### ##
Does this help, or am I still not understanding your question?
regards,
--
Joris Gillis (
http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
Ceterum censeo XML omnibus esse utendum