Subject: Re: Using values from one node tree to iterate/recurse over another set of nodes. (Newbie Question)
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Wed, 27 Feb 2008 18:56:22 +0100 (CET)
|
Richard Dyce wrote:
> I think this may be an XSLT 1.0 issue, but I get
> xsltStylePreCompute: unknown xsl:function
> and
> xsltStylePreCompute: unknown xsl:sequence
Exactly. The following should be the XSLT 1.0 equivalent (quickly
adapted, be careful):
<xsl:template match="record">
<xsl:param name="structure"/>
<xsl:apply-templates select="$structure/*">
<xsl:with-param name="record" select="."/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="field">
<xsl:param name="record"/>
<dt>
<xsl:value-of select="@label"/>
</dt>
<dd>
<xsl:variable name="name" select="@name"/>
<xsl:value-of select="$record/*[local-name() eq $name]"/>
</dd>
</xsl:template>
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
|