RE: [xsl] Should XSLT be used to generate a plain text document?

Subject: RE: [xsl] Should XSLT be used to generate a plain text document?
From: "Pawson, David" <David.Pawson@xxxxxxxxxxx>
Date: Wed, 27 Apr 2005 09:05:03 +0100
One function you may find useful is the fxsl split lines from Dimitre.
It generates output split at a given value, by word

 <xsl:call-template name="str-split-to-lines">
        <xsl:with-param name="pStr" select="/*"/>
        <xsl:with-param name="pLineLength" select="64"/>
        <xsl:with-param name="pDelimiters" select="' &#9;&#10;&#13;'"/>
      </xsl:call-template>

Takes in pStr text,
splits it at pLineLength value
applying pDelimiters at the end of that block.

str-split-to-lines.xsl in the fxsl library.

You could use it to generate the wrapped lines,
if that's needed.

HTH DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk

Current Thread