RE: Using CHOOSE to control image in region-body

2008-10-13 Thread Steffanina, Jeff
Andreas I greatly appreciate the suggestion! I will make the change! Jeff -Original Message- From: Andreas Delmelle [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2008 3:40 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Using CHOOSE to control image in region-body On

Re: Using CHOOSE to control image in region-body

2008-10-13 Thread Andreas Delmelle
On Oct 8, 2008, at 13:38, Steffanina, Jeff wrote: Hi, FWIW, a small performance hint: My Friends, Thank you for the many suggestions! I have tried them all and my issue, as suggested by Jean-Francois appears to be related to the fact that my xml tag "send-fax" is not a direct child of the

RE: Using CHOOSE to control image in region-body

2008-10-08 Thread Steffanina, Jeff
: Pascal Sancho [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 3:20 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Using CHOOSE to control image in region-body Hi, If you read "Y", it is possible that there are some extra invisible charaters. If you want, you can in

RE: Using CHOOSE to control image in region-body

2008-10-08 Thread Pascal Sancho
Hi, If you read "Y", it is possible that there are some extra invisible charaters. If you want, you can investigate with string-length() and if >1, try to determine (then discard) unexpected characters. However, I can imagine 2 simple solutions that should help: First solution should be to use

Re: Using CHOOSE to control image in region-body

2008-10-07 Thread Jay Bryant
Hi, Jeff, I whipped up a small test to show how to solve your problem. Here's the contents of the (very simple) input XML file: Y Here's the (also very simple XSL file): xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> Found it No joy

Re: Using CHOOSE to control image in region-body

2008-10-07 Thread Jay Bryant
And BTW if send-fax is not a direct child of the node you're processing but a remote descendant, you should write my condition with an axe: That will count every instance of send-fax in the whole document. To count descendants of the current node named send-fax to any depth, use count(.//sen

Re: Using CHOOSE to control image in region-body

2008-10-07 Thread Jean-François El Fouly
Jean-François El Fouly a écrit : Steffanina, Jeff a écrit : Located in the XML file: Y Recently, in a reasonably similar problem (though a bit more complicated) I used Not very elegant but it did the trick for me, and it might do for you if the only thing you need is test the

Re: Using CHOOSE to control image in region-body

2008-10-07 Thread Kendall Shaw
*From:* Pete Allison [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, October 07, 2008 3:56 PM *To:* fop-users@xmlgraphics.apache.org *Subject:* RE: Using CHOOSE to control image in re

Re: Using CHOOSE to control image in region-body

2008-10-07 Thread Jean-François El Fouly
Steffanina, Jeff a écrit : Located in the XML file: Y Recently, in a reasonably similar problem (though a bit more complicated) I used Not very elegant but it did the trick for me, and it might do for you if the only thing you need is test the existence of send-fax.

RE: Using CHOOSE to control image in region-body

2008-10-07 Thread Pete Allison
-- From: Jean-François El Fouly [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 3:03 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Using CHOOSE to control image in region-body Steffanina, Jeff a écrit : > > FOP 0.95 / Redhat Linux / Java 1.5 > > When the tag "send

Re: Using CHOOSE to control image in region-body

2008-10-07 Thread Jean-François El Fouly
Steffanina, Jeff a écrit : FOP 0.95 / Redhat Linux / Java 1.5 When the tag "send-fax" does not exist print the lilly, when send-fax=Y, print the pebble. I always get the Lilly. Can you determine why? "tag", do you mean an attribute of the current element ? I would write test="@sendfax='Y

RE: Using CHOOSE to control image in region-body

2008-10-07 Thread Steffanina, Jeff
Located in the XML file: Y Jeff From: Pete Allison [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 3:56 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Using CHOOSE to control image in region-body What is the context

RE: Using CHOOSE to control image in region-body

2008-10-07 Thread Pete Allison
What is the context for "./send-fax" ? _ From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 2:38 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Using CHOOSE to control image in region-body Eric, I made the suggested change and checke

RE: Using CHOOSE to control image in region-body

2008-10-07 Thread Steffanina, Jeff
Subject: RE: Using CHOOSE to control image in region-body I can think of two possibilities off the top of my head: The value is a lowercase Y, or there is whitespace present. Try normalize-space(send-fax)='Y' instead. Eric Amick L

RE: Using CHOOSE to control image in region-body

2008-10-07 Thread Amick, Eric
I can think of two possibilities off the top of my head: The value is a lowercase Y, or there is whitespace present. Try normalize-space(send-fax)='Y' instead. Eric Amick Legislative Computer Systems Office of the Clerk From: Steffanina, Jeff [mailto:[EMAIL PR