Topic: generating a dynamic path Pages that link to <a href="https://ozoneasylum.com/backlink?for=26452" title="Pages that link to Topic: generating a dynamic path" rel="nofollow" >Topic: generating a dynamic path\

 
Author Thread
dataddict
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Aug 2005

IP logged posted posted 08-15-2005 15:56 Edit Quote

Hi,
I'm trying to generate a dynamic path in xsl to get hold of a specific value in my xml doc:

<Table_03>
<lineInfo>_debit</lineInfo>
<_x0032_002>0</_x0032_002>
<_x0032_003>1.0000</_x0032_003>
</Table_03>
<Table_03>
<AppLineId>1</AppLineId>
<lineInfo>brutto</lineInfo>
<_x0032_002>1450780.0000</_x0032_002>
<_x0032_003>464652.0000</_x0032_003>
</Table_03>

in the xsl part i want to know, while iterating through Table_03number2, what value is written in in the child nodes of Table_03nt with the same name as the children of Table_03number2. The Problem is that the names of the children of both tables change for different views(due to the parsing software) and therefor I have to get hold of the name of the child in Table_03number2 and use this name to get hold of the respective value in Table_03nt. I've tried this:

<td><xsl:value-of select="concat('//DataSet//Table_03nt//', name(.))"></xsl:value-of></td>

but this seems to return a string instead of returning the value of the wanted child of Table_03nt
Is it possible to convert the above generated string to a path?



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu