David Sinclair wrote:
I dont seem to be doing a very good job of it, but what I am trying to get across is that debug output can be incorrectly displayed in Orbeon Studio. Given the code I sent in my last mail, the output I get from the from the xslt processor is:
<---------- starts here ---------->
action
<message xmlns:oxf="http://www.orbeon.com/oxf/processors"; xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"; xmlns:p="http://www.orbeon.com/oxf/pipeline";></message>
<---------- ends here ----------->

David,

Ok, I understand the issue now. Your XSLT is generating something that is not a well-formed XML document as there are text nodes before the root element. When you have a "debug" in a pipeline, Presentation Server serializes the SAX events it receives into text and sends that text to the logger. To do so we use the dom4j library, which attempts to fix errors in XML to make it well-formed. In particular it removes text nodes before the root element, and this is why you don't see that text node in Studio.

Since the purpose of "debug" is to show what goes through the pipeline, we should not try to make the XML well formed, but serialize it in a form that is as close as possible to the SAX events going through the pipeline. I have added an RFE for this:

http://sourceforge.net/tracker/index.php?func=detail&aid=1077172&group_id=116683&atid=675663

Alex


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to