[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problems with select

Subject: Problems with select
From: "Ralf Werny" <ralf.werny@xxxxxxxxxxxxxxx>
Date: Mon, 2 Aug 2004 13:13:22 +0200
problems with select
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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.