Hi,
I desire the output like this:
phone
phonedata11 phonedata12 phonedata13
phonedata21 phonedata22 phonedata23
phonedata31 phonedata32 phonedata33
fax
faxdata11 faxdata12 faxdata13
faxdata21 faxdata22 faxdata23
faxdata31 faxdata32 faxdata33
email
emaildata11 emaildata12 emaildata13
emaildata21 emaildata22 emaildata23
emaildata31 emaildata32 emaildata33
Following is my xml tree fragment
<communicationmethodsActual PURPOSE="PHONE">
..... some more tags here - data 1 data 2 data3
</communicationmethodsActual>
<communicationmethodsActual PURPOSE="EMAIL">
..... some more tags here - data 1 data 2 data3
</communicationmethodsActual>
<communicationmethodsActual PURPOSE="PHONE">
..... some more tags here - data 1 data 2 data3
</communicationmethodsActual>
My xsl looks like this:
<xsl:apply-templates
select="communicationmethodsActual[(_at_)PURPOSE='PHONE']"/>
<xsl:apply-templates select="communicationmethodsActual[(_at_)PURPOSE='FAX']"/>
<xsl:apply-templates
select="communicationmethodsActual[(_at_)PURPOSE='EMAIL']"/>
<xsl:template select="communicationmethodsActual">
<xsl:call-template name="commMethods"/>
</xsl:template>
<xsl:template name="commMethods">
... do the processing here i.e. data formatting
</xsl:template>
But, the apply-templates with attribute selection is not working. It doesn't
select any node wih the above syntax.
I am using xalan XSLT processor (latest stable version) and FOP for print the
pdf output.
The same code works fine when I use it in a standalone application, but doesn't
work while using the embedded
FOP in a java application running on top of WebSphere Application Server 3.5.
Please help ?
Regards,
Vinod Agarwal.
---------------------------------------------------------------------------
This message (including any attachments) is confidential and may be privileged.
If you have received it by mistake please notify the sender by return
e-mail and delete this message from your system. Any unauthorised use or
dissemination of this message in whole or in part is strictly prohibited.
Please note that e-mails are susceptible to change.
ABN AMRO Bank N.V. (including its group companies) shall not be liable for the
improper or incomplete transmission of the information contained in
this communication nor for any delay in its receipt or damage to your system.
ABN AMRO Bank N.V. (or its group companies) does not guarantee that the
integrity of this communication has been maintained nor that this communication
is free of viruses, interceptions or interference.
---------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list