Alessandro Vernet wrote:

David,

I am still having troubles reproducing the issue. Why are you saying the XSLT produces XML that is not well formed? It matches on the "message" element and produces a <message/>. Unless there are multiple "message" elements in the input document, the XSLT output will be well formed. And if you use your instance as the input, you should be fine as there is only one <message/>.

Hi Alex,

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 ----------->

Note the 'action' text node before the message element.  I know this is the output as I am writing it do disk using a file serialiser.  I have also run the same code at the command line and get the same results.  However, the message editor displays it as:

<---------- starts here ---------->
<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 ----------->

No 'action' text node!  If you cant trust your debug output what can you trust?  ;-)  

Can you confirm that when you run my code you do not get the same results?

David Sinclair,

Now if there were 2 or more <message> elements in the input, you would have an exception telling you: "Cannot add another element to this Document as it already has a root element of: message".

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