|
Subject: RE: [xsl] comparing 2 childs of 2 childs From: <Jarno.Elovirta@xxxxxxxxx> Date: Mon, 22 Mar 2004 16:43:16 +0200 |
Hi,
> Anyway.. the point is that i want for each Column.. to compare with
> the all Foreign_Keys/FK_COLUMN_NAME and then if is equal print
> something... in case he doesn't find one column that doesn't match any
> foreign_key it means is not a foreign key so prints another thing...
> Anyone has good ideas? I did something like this... maybe you can
> change it and then give me an ideia
<xsl:template name="ListagemValores">
<xsl:param name="thisField"/>
<xsl:for-each select="$thisField/Column">
<TD>
<!-- bind to string value instead of Result Tree Fragment -->
<xsl:variable name="coluna" select="ColumnName"/>
<!-- use keys here for efficiency -->
<xsl:variable name="keys" select="../Foreign_Keys[FK_COLUMN_NAME = $coluna]"/>
<xsl:for-each select="$keys">
<db:dataLabel fieldName="{$coluna}">
<db:tableData name="list_{FK_NAME}" foreignTable="{PK_TABLE_NAME}" visibleFields="descricao" storeField="{PK_COLUMN_NAME}"/>
</db:dataLabel>
</xsl:for-each>
<xsl:if test="not($keys)">
<!-- <db:label fieldName="{$coluna}" />-->
</xsl:if>
</TD>
</xsl:for-each>
</xsl:template>
Cheers,
Jarno - Kemical Kidd: Helix
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] comparing 2 childs of 2 child, André Moniz | Thread | [xsl] tools XSL:FO, Gianni Ferrari |
| Re: [xsl] Recursively removing empt, Mukul Gandhi | Date | RE: [xsl] Output XML to Browser for, Pieter Reint Siegers |
| Month |