Hi all,
I have a XML like ,
<info>
<type>A</type>
<value1>ZZZZZZZ</value1>
<value2>YYYYYYY</value2>
</info>
<info>
<type>B</type>
<value1>ZZZZZZZ</value1>
<value2>YYYYYYY</value2>
</info>
With XSLT I would like to code logic like,
if value of <type> is 'A'
then
output value of <value1>
end if
if value of <type> is 'B'
then
output value of <value2>
end if
How can I do that? what can be the best syntex for it?
Is that possible without using variables?
Please help.
Regards
I have a XML like ,
<info>
<type>A</type>
<value1>ZZZZZZZ</value1>
<value2>YYYYYYY</value2>
</info>
<info>
<type>B</type>
<value1>ZZZZZZZ</value1>
<value2>YYYYYYY</value2>
</info>
With XSLT I would like to code logic like,
if value of <type> is 'A'
then
output value of <value1>
end if
if value of <type> is 'B'
then
output value of <value2>
end if
How can I do that? what can be the best syntex for it?
Is that possible without using variables?
Please help.
Regards