Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] keys and variables VIII

From: Steve <subsume@--------->
To:
Date: 8/2/2006 8:52:00 PM
Dual key solution was neccesary after all because this was pulling
only the count of the first instance of $type, not all option/@oldIDs
with a type of @type.

add key ...



<xsl:key name="types" match="option" use="@type" />



...and then...



<table border="1">
	<xsl:for-each select="$Definitions/disabilities/option[generate-id(.)=generate-id(key('options',@type)[1])]">
		<xsl:sort select="@type"/>
		<tr>
			<td>
				<xsl:value-of select="@type" />
			</td>
			<td>
				<xsl:variable name="current" select="key('types',@type)" />
				<xsl:for-each select="$vP2disab">
					<xsl:value-of select="count(key('records',$current/@oldID))" />
				</xsl:for-each>
			</td>
		</tr>
	</xsl:for-each>
</table>

On 8/2/06, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
At 2006-08-02 13:41 -0400, Steve wrote:
>Having some difficulty with output. Perhaps someone can shed some
>light as to why.

It appears you were searching the wrong file and key table for the records.


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent