Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I started using SaxonWrapper which provides a .NET like API for the Saxon XSLT processor. (Many thanks to his author) I have the same problem as the one described by Timeos in "Trouble with saxonwrapper and output textfile".

Any call to processor.Transform(xmlDoc, xmlWriter); throws an InvalidOperationException with the following message "Token Content in state Prolog would result in an invalid XML document". I cannot understand how Timeos solved this problem. Does the source XML file need to be modified, or the XSL stylesheet? And how? I try to avoid any change into the Saxon source code...

/EDIT: Related article is Using Saxon XSL 2.0 and XQuery 1.0 in .NET[^]
Posted
Updated 21-May-10 4:31am
v2
Comments
Moak 21-May-10 10:32am    
Updated subject and tags, hope this helps to get more answers.
Richard MacCutchan 22-May-10 4:22am    
Please post your question in the forum at the end of tha article, for the author to see.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900