[Mono-list] prototype XSLT debugging patch ...

Michael Meeks michael.meeks at novell.com
Fri Nov 24 14:51:01 EST 2006


Hi dudie,

	So - of course this builds the frames on the exception - we could of
course alternatively dump them to Debug.WriteLine [ or perhaps something
easier to get at for the hacker without re-compiling mono ].

	Either way, this turns my 100 line, unreadable barf into the appended,
which I hope is much more useful (?)

	Patch attached, what do you think ? I'll try to catch you tomorrow on
IRC to chew it over (?) :-)

	Thanks,

		Michael.

[ERROR][/tmp/tst.docx] Conversion failed - Error during conversion
[DEBUG][/tmp/tst.docx] Error during processing:  at zip://localhost/word/document.xml(2,3076). from
xsl:template child::http://schemas.openxmlformats.org/wordprocessingml/2006/main:p at assembly://localhost/content.xsl(336,46) from
xsl:template child::http://schemas.openxmlformats.org/wordprocessingml/2006/main:p at assembly://localhost/content.xsl(244,29) from
xsl:template child::http://schemas.openxmlformats.org/wordprocessingml/2006/main:tc at assembly://localhost/tables.xsl(80,30) from
xsl:template child::http://schemas.openxmlformats.org/wordprocessingml/2006/main:tr at assembly://localhost/tables.xsl(57,30) from
xsl:template child::http://schemas.openxmlformats.org/wordprocessingml/2006/main:tbl at assembly://localhost/tables.xsl(37,31) from
xsl:template  at assembly://localhost/content.xsl(55,32) from
xsl:template self::node-type [Root]()/child::urn:oox:source at (51,6)(  at Mono.Xml.Xsl.XslTemplate.Evaluate (Mono.Xml.Xsl.XslTransformProcessor p, System.Col
lections.Hashtable withParams) [0x0010a] in /data/mono/mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs:412 
  at Mono.Xml.Xsl.XslTransformProcessor.ApplyTemplates (System.Xml.XPath.XPathNodeIterator nodes, System.Xml.XmlQualifiedName mode, System.Collections.ArrayLi
st withParams) [0x0002e] in /data/mono/mcs/class/System.XML/Mono.Xml.Xsl/XslTransformProcessor.cs:244 
  at Mono.Xml.Xsl.Operations.XslApplyTemplates.Evaluate (Mono.Xml.Xsl.XslTransformProcessor p) [0x0005a] in /data/mono/mcs/class/System.XML/Mono.Xml.Xsl.Opera
tions/XslApplyTemplates.cs:105 
  at Mono.Xml.Xsl.Operations.XslTemplateContent.Evaluate (Mono.Xml.Xsl.XslTransformProcessor p) [0x0002a] in /data/mono/mcs/class/System.XML/Mono.Xml.Xsl.Oper
ations/XslTemplateContent.cs:193 
  at Mono.Xml.Xsl.Operations.XslChoose.Evaluate (Mono.Xml.Xsl.XslTransformProcessor p) [0x00047] in /data/mono/mcs/class/System.XML/Mono.Xml.Xsl.Operations/Xs
lChoose.cs:92 
  at Mono.Xml.Xsl.Operations.XslTemplateContent.Evaluate (Mono.Xml.Xsl.XslTransformProcessor p) [0x0002a] in /data/mono/mcs/class/System.XML/Mono.Xml.Xsl.Oper
ations/XslTemplateContent.cs:193 
  at Mono.Xml.Xsl.XslTemplate.Evaluate (Mono.Xml.Xsl.XslTransformProcessor p, System.Collections.Hashtable withParams) [0x000ca] in /data/mono/mcs/class/Syste
m.XML/Mono.Xml.Xsl/XslTemplate.cs:403 )
Done.


-- 
 michael.meeks at novell.com  <><, Pseudo Engineer, itinerant idiot

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xslt-debug.diff
Type: text/x-patch
Size: 2910 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061124/2b37d464/attachment-0001.bin 


More information about the Mono-list mailing list