From: Blankner, Sherrod (Sherrod.Blankner@schwab.com)
Date: Tue Aug 10 2004 - 11:03:28 PDT
Can anyone out there help me brainstorm some logic for a letter
We have a simple letter XSL that processes the following XML to fill
in the recipient name
Currently our XSL is very straight forward
However, with the new window size in the envelope, we can't stack names
indefinitely--we only have 6 lines for the total address, with a maximum of
three name lines if the address is in the US. I need logic that evaluates
whether the string length of a set of <name> tags is more than 61
characters, at which point I want to cut off and print just those names into
line 1. Then I need to start where line 1 left off and evaluate the next set
of <name> tags and see if these add up to under 61 characters, at which
point I can write in line 2, etc. I have three possible lines.
Does anyone have any suggestions?
I've been working with the string-length function, but I can't seem to get
it to increment up inside a for-each loop. I also messed around with some
param/call-templates functions but got the same result.
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to email@example.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to firstname.lastname@example.org from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
This archive was generated by hypermail 2.1.5 : Tue Aug 10 2004 - 11:19:53 PDT