[xslt] needed:set xslt variable in program
- From: Tom Stanley <stdanley yahoo com>
- To: xslt gnome org
- Subject: [xslt] needed:set xslt variable in program
- Date: Wed, 14 Jun 2006 07:10:31 -0700 (PDT)
hello, guys
we plan to use libxml and libxslt in our projects.
what we need are like snippet belows:
<ActivityInput>
<body>
<pfx:field>
<pfx:name>
<xsl:value-of
select=""Data""/>
</pfx:name>
<pfx:id>
<xsl:value-of select="0"/>
</pfx:id>
<pfx:simple>
<xsl:value-of
select="string($var/Report/Data[1])"/>
</pfx:simple>
</pfx:field>
</body>
</ActivityInput>
We want to use something like xslt template to
produce some xml tree as process's input.
We can change this xml snippet to a xslt template and
use applystylesheet to produce expected output xml
tree.
However, we need to set a variable (named var ) in
program before apply the translation.
Does libxslt have any method to do this ,for example
like xmlXPathRegisterVariable in libxml?
or any other thoughts?
thx
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]