xsl-list
[Top] [All Lists]

Re: [xsl] Fwd: Removing blank lines in text output

2007-03-06 07:52:39

Is this possible in XSLT?

yes it's a grouping problem (in your case with two groups, one of
trailing blank lines, one of everything else) so the standard grouping
idioms apply, xsl:for-each-group in xslt2 or the usual grouping methods
in xslt1.

For example


<xsl:template match="ORU_R01.OBSERVATION">
 ... do a line
</xsl:template>

<xsl:template match="ORU_R01.OBSERVATION[not(OBX.5) and 
not(following-sibling::ORU_R01.OBSERVATION/OBX.5)">
 ... do nothing
</xsl:template>



will remove all trailing lines.

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>