Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Problems with select

From: "Ralf Werny" <ralf.werny@--------------->
To:
Date: 8/2/2004 11:13:00 AM
Yes, sorry i'am sure, this question was answered 100 times, but i don't find
it.

The xmlfile i use is like
<Modules>
	<Module ModName="Name of this Module" Type="Type of this Module">
		<Info>
			"Some Information of this Module"
		</Info>
		<Child ChildName="Name of a Child"/>
		.
		.
		.
		<Child ChildName="Name of a Child"/>
	</Module>
</Modules>
where ChilNames are Names of aModule.

I have one template where i get every Module.

<xsl:template match="Module" mode="getmod">
	<xsl:for-each select="Child">
		<xsl:apply-templates select="//Module [@ModName=@ChildName]"
mode="childinfo">
	<xsl:for-each select="Child">
</xsl:template>

And I have one template where i print out some Information about the Child.

<xsl:template match="Module" mode="childinfo">
		<xsl:value-of select="Info/..."/>
</xsl:template>

But there is something going wrong.
If i use a string like 'KNDCOKIS' in the getmod-template instead of
@ChildName then i get Info about this Child.
Is there a possibility to do this like i try it.

Thank you.


transparent
Print
Mail
Like It
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