Hello all,

We have a requirement to generate fixed formatted plain text output from XML 
for later processing by another app. We currently use pure XSLT (w/o FO) to 
generate the output. We recently discovered that the CR/LF sequences that are 
put in the result tree by the stylesheet were'nt going out correctly on 
certain platforms. We try to force x'0D' x'0A' in the stylesheet via the 
<xsl:text/> element but the processor is interpretting the values. Apparently 
the Xalan processor substitutes a platform-specific line terminator for x'0A' 
sequences. I did some googling and found out that that is just the way it is 
with XSLT engines since their job is geared more towards transformation than 
it is towards formatting. It seems like this might be a job for XSL-FO but 
for some reason that feels just a little bit heavyweight for what we're 
trying to do. Apologies if this is the incorrect medium for asking such a 
question but I'd like to know how I would handle the transform with XSL-FO if 
that is the better approach. Assume the XML input is in the following 
pseudo-tabular format:
<data>
        <row>
                <col nam="colA">1</col>
                <col nam="colB">ABC</col>
                <col nam="colC">$$$</col>
        </row>
        <row>
                <col nam="colA">2</col>
                <col nam="colB">ABC</col>
                <col nam="colC">$$$</col>
        </row>
        <row>
                <col nam="colA">3</col>
                <col nam="colB">ABC</col>
                <col nam="colC">$$$</col>
        </row>
</data>

And we want the following:
1   ABC  $$$<CR/LF>
2   ABC  $$$<CR/LF>
3   ABC  $$$<CR/LF>

-- 
Clifton C. Craig, Software Engineer
Intelligent Computer Systems -  A Division of GBG
[EMAIL PROTECTED]
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to