?
=?ISO-8859-2?Q?fr=EAdzel?=
Hello
I have a problem, i have got 2 XML files:
### File 1
<list>
<element>
<id>1</id>
<name>Some text</name>
</element>
<element>
<id>2</id>
<name>Some text</name>
</element>
</list>
###
### File 2
<list>
<element>
<code>A</code>
<name>Some text</name>
</element>
<element>
<code>B</code>
<name>Some text</name>
</element>
</list>
###
Theese xml files are created from a simple SQL SELECT.
The columns 'id' and 'code' are primary keys in theese tables.
I pass the param $PKEY when parsing, for file 1 i pass PKEY="id"
and for file 2 i pass PKEY="code"
Now my XSLT:
<xsl:template match="element">
<a href="?pkey={$PKEY}&pkeyval={????}">action</a>
</xsl:template>
What should I put in place of {????} to get there
for "File 1" the values "1" and "2" and for "File 2"
the values "A" and "B"? In other words, how can I
insert there the value of the node with the name given
by param $PKEY.
Sorry for my english and thanks in advance for any help
friendzel
I have a problem, i have got 2 XML files:
### File 1
<list>
<element>
<id>1</id>
<name>Some text</name>
</element>
<element>
<id>2</id>
<name>Some text</name>
</element>
</list>
###
### File 2
<list>
<element>
<code>A</code>
<name>Some text</name>
</element>
<element>
<code>B</code>
<name>Some text</name>
</element>
</list>
###
Theese xml files are created from a simple SQL SELECT.
The columns 'id' and 'code' are primary keys in theese tables.
I pass the param $PKEY when parsing, for file 1 i pass PKEY="id"
and for file 2 i pass PKEY="code"
Now my XSLT:
<xsl:template match="element">
<a href="?pkey={$PKEY}&pkeyval={????}">action</a>
</xsl:template>
What should I put in place of {????} to get there
for "File 1" the values "1" and "2" and for "File 2"
the values "A" and "B"? In other words, how can I
insert there the value of the node with the name given
by param $PKEY.
Sorry for my english and thanks in advance for any help
friendzel