Serving plain text

Posted by Colin O'Brien on
URL: https://discuss.orbeon.com/Serving-plain-text-tp26088.html

Hi,

I have an instance now where sometimes I will need to transform some
content to plain text. I'm still responding to an http request, the
source is still in XML, it's dynamically generated (collated, sorted,
filtered, etc), so I am of course thinking to do all this in OPS - I
just need to deliver plain text.

Since I wasn't sure I would get the format of the plain text file
right, and I wasn't sure how it would make it to a browser, I added
debug to my pipeline. So it took me a while to realize that when I got
the error "Null document for debug 'dataout'" then it was not saying
there was much wrong with my xslt, it was the debug itself that was the
problem - it seems to be insisting on xml.

Anyway, so now I can see my plain text in the browser.
My xslt starts with <xsl:output method="text
omit-xml-declaration="yes"/>
and yet when the output reaches the browser, the first line is the xml
declaration.
It's the only "change" from what I am outputting.
Could there be something in the epilogue doing this?

I can't be sure if the declaration is there for a non-browser
application, since the intended recipient is still complaining that the
format isn't right, and there are indeed still other errors in the
format I am outputting that I need to fix. But when I get it all done,
I'd like to know there was nothing else "interfering" ;-)

Thanks & regards
Colin




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws