We are using Oracle XML Publisher to generate PDF formatted Purchase Order Reports. We have tried Oracle Support, but haven't got anywhere, hence trying here...
As part of this work, we have hit a problem.
Part of the XML contains the following data:
Code:
<PO_DATA>
<LINE_ATTACHMENTS>
<TEXT> Telephone Number=6955_1 </TEXT>
<ID>765923</ID>
<TEXT> Telephone Number=6955_2 </TEXT>
<ID>765924</ID>
<TEXT>Telephone Number=6955_3</TEXT>
<ID>765925</ID>
</LINE_ATTACHMENTS>
</PO_DATA>
What we want to do is to loop through the values in the <LINE_ATTACHMENTS> tag, and output the Text Value.
If we try the following snippet:
Code:
<?/PO_DATA/LINE_ATTACHMENTS/TEXT[3]?>
Then when we view the output, the XSL will always display the value of the 3rd iteration of the <TEXT> tag.
That's okay - but we don't want to hard code the [3] value. We want instead for the number there to be the row count that is currently being used.
We have tried this:
Code:
<?/PO_DATA/LINE_ATTACHMENTS/TEXT["row:position()]?>
But a long error message was returned.
Basically, we want to increment a variable for each loop through the data, and output the value of that incremented variable in the square brackets as detailed above.
Can this be done?
Thanks
Jim