|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: element selection based on attribute value notwork
Hi Mukul,
thanks for all your help. I was so much frustrated with the
non-working of such a simple syntax of XPath.
But, I finally managed to find the reason of it. You won't belive, but this
is true. The reason is the attribute was in
UPPER-CASE, i.e. PURPOSE='PHONE' doesn't work in the WebSphere Application
Server deployed XSLT
and FOP code. The moment I made it "purpose = 'phone'" it started working
with my original approach.
This is really some ridiculous internal bug of either the JDK in VAJ/ WAS
or java implementation of Xalan or
FOP or SAX implementation of Xalan java processor.
We should report this bug to Apache I think.
Anyway, thanks for all the help. Good to see such prompt replies.
Regards,
Vinod Agarwal.
Mukul Gandhi <mukulw3@xxxxxxxxx>@lists.mulberrytech.com on 09/18/2003
07:19:05 PM
Please respond to xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Sent by: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc:
Subject: Re: element selection based on attribute value not
working - xsl, fop, pdf
Hi Vinod,
the syntax you have posted is correct.. don't know why
its not working. You may also try --
<xsl:for-each select="communicationmethodsActual">
<xsl:if test="@PURPOSE = 'PHONE'">
<!-- some processing -->
</xsl:if>
<xsl:if test="@PURPOSE = 'EMAIL'">
<!-- some processing -->
</xsl:if>
<xsl:if test="@PURPOSE = 'FAX'">
<!-- some processing -->
</xsl:if>
</xsl:for-each>
But your way looks more elegant..
Regards,
Mukul
> <xsl:apply-templates
>
select="communicationmethodsActual[@PURPOSE='PHONE']"/>
> <xsl:apply-templates
>
select="communicationmethodsActual[@PURPOSE='FAX']"/>
> <xsl:apply-templates
>
select="communicationmethodsActual[@PURPOSE='EMAIL']"/>
>
>
> But, the apply-templates with attribute selection is
> not working. It doesn't select any node wih the
> above syntax.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
---------------------------------------------------------------------------
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








