[xep-support]

Blankner, Sherrod Sherrod.Blankner at schwab.com
Tue Aug 10 11:03:28 PDT 2004


	Can anyone out there help me brainstorm some logic for a letter
recipient name:

	We have a simple letter XSL that processes the following XML to fill
in the recipient name
	<names>
	<name>John Doe</name>
	<name>Jane Doe</name>
	<name>Jim Doe</name>
	</names>

	Currently our XSL is very straight forward

								<fo:block>
	
<xsl:for-each select="names/name">
	
<fo:block>
	
<xsl:value-of select="."/>
	
</fo:block>
	
</xsl:for-each>
	
</fo:block>


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. 

Thanks
Sherrod






> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo at renderx.com 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
> 
> 
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com 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



More information about the Xep-support mailing list