W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2006

Using a variable as the xml node

From: bharathi kongara <bharathikongara@yahoo.com>
Date: Fri, 24 Mar 2006 10:31:56 -0800 (PST)
Message-ID: <20060324183156.98198.qmail@web36208.mail.mud.yahoo.com>
To: www-xsl-fo@w3.org

Hi everyone,

I've been playing with this problem from yesterday,
tried all sort of solutions, but no use.

Here is the problem:

In my xsl, I'm referring to a configuration file which
is an xml file.



and the xsl file is:

key1 refers to the 1000 in the name of the config
key2 refers to the 100 or 200 ... in the nodes in the
config file.
They will come from a stored procedue.

<xsl:variable name="Config"

Now my problem is, I've to refer to the 100 node or
200 node etc which depends on the key2.

I'm doing this - define a vraible for refrerring to
the node based on key2.

<xsl:variable name="loc"

When I'm referring to the "loc" variable in the xsl
later as $loc, it is putting in the string
"$Config/ConfigFile/100Code" instead of substituting
the value "Hundred" from that node. But it works when
I directly use the $Config/ConfigFile/100Code instead
of $loc.

Any ideas? Any help is greatly appreciated.

Thanks in Advance,

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
Received on Friday, 24 March 2006 18:38:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:30 UTC