|
Subject: Re: [xsl] Stuck on Name() and variable From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Tue, 06 Aug 2002 02:26:44 +0200 |
Maybe in front of the for-each you have to store MapMD in a variable: (I don't know what's the current context.)
<xsl:attribute name="data"> <xsl:variable name="Market" select="node()"/>
<xsl:variable name="Key" select="parent::node()"/>
<xsl:for-each select="//Map[@schema]/attribute::*[position() > 2]" >
<xsl:variable name="AttrName" select="name()"/>
<xsl:choose>
<xsl:when test="bitmask:DeCode(current(), 2) " >
<xsl:variable name="Pos" >
<xsl:value-of select="MapKey/@*[name() =
$AttrName]" />
</xsl:variable>
2 - (<xsl:value-of select="$Pos" />)(<xsl:value-of
select="$AttrName" />) <xsl:value-of select="$Key/attribute::*[$Pos]" />
</xsl:when>
<xsl:when test="bitmask:DeCode(current(), 4) " >
<xsl:variable name="Pos" >
<xsl:value-of select="MapMD/attribute::*[name() =
$AttrName]" />
</xsl:variable>
4(<xsl:value-of select="$Pos" />)(<xsl:value-of select="$AttrName" />) <xsl:value-of select="$Market/attribute::*[position() = $Pos]" />
</xsl:when>
</xsl:choose>
<xsl:if test = "position() != last()"> | </xsl:if>
</xsl:for-each>
</xsl:attribute>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Stuck on Name() and variable, Kimberly Hahn | Thread | RE: [xsl] Stuck on Name() and varia, Michael Kay |
| Re: [xsl] Finding the ancestor that, David N Bertoni/Camb | Date | Re: [xsl] Attempting to find the fi, Joerg Heinicke |
| Month |