Subject: Re: [xsl] Writing array elements based on a an evaluation of one of the child elements From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx> Date: Wed, 24 May 2006 07:50:41 -0500 |
The result I get is that it writes all the data for all account-LIST elements with no tages (excepts the ACCOUNT-LIST parent element tag) and it does not evaluate the string-length test
Accck. It does evaluate the string-length test, as I've already mentioned. It includes at least once character (newline). And every account-list does have tags in your example. (They're empty elements though).
Ok, what are you asking? I'm getting a little confused looking at all your emails.
1) Do you want to eleminate Account-Lists that don't have elements that have any value?
<xsl:template match="ACCOUNT_LISTS"> <xsl:if test="normalize-space(.)"> <xsl:copy> <xsl:apply-templates /> </xsl:copy> </xsl:if>
2) Or is it the case that the Account-No might be empty even with other data in the Account-Lists field? Because we can't tell from your example
<xsl:template match="ACCOUNT_LISTS"> <xsl:if test="normalize-space(ACCOUNT_NO)"> <xsl:copy> <xsl:apply-templates /> </xsl:copy> </xsl:if>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Writing array elements ba, David Carlisle | Thread | Re: [xsl] Writing array elements ba, Florent Georges |
RE: Re: [xsl] Writing array element, cknell | Date | Re: [xsl] Writing array elements ba, Florent Georges |
Month |