[Mono-bugs] [Bug 348786] System.Xml.Xsl.Transform does not support non-empty <xsl: value-of/> elements w/ empty content

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Dec 14 12:00:07 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=348786

User jpryor at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348786#c1





--- Comment #1 from Jonathan Pryor <jpryor at novell.com>  2007-12-14 10:00:07 MST ---
Created an attachment (id=187685)
 --> (https://bugzilla.novell.com/attachment.cgi?id=187685)
value-of.cs

Test case.

Expected output is:

<?xml version="1.0" encoding="utf-8"?><bar><content>this is my
content</content></bar>

Actual output is:

Unhandled Exception: System.Xml.Xsl.XsltCompileException: XSLT value-of element
cannot contain any child. at (10,33).
  at Mono.Xml.Xsl.Operations.XslValueOf.Compile (Mono.Xml.Xsl.Compiler c)
[0x00000] 
  at Mono.Xml.Xsl.Operations.XslCompiledElement..ctor (Mono.Xml.Xsl.Compiler c)
[0x00000] 
  at Mono.Xml.Xsl.Operations.XslValueOf..ctor (Mono.Xml.Xsl.Compiler c)
[0x00000] 
  at Mono.Xml.Xsl.Operations.XslTemplateContent.Compile (Mono.Xml.Xsl.Compiler
c) [0x00000] 
  at Mono.Xml.Xsl.Operations.XslTemplateContent..ctor (Mono.Xml.Xsl.Compiler c,
XPathNodeType parentType, Boolean xslForEach) [0x00000] 
  at Mono.Xml.Xsl.Compiler.CompileTemplateContent (XPathNodeType parentType,
Boolean xslForEach) [0x00000] 
  at Mono.Xml.Xsl.Compiler.CompileTemplateContent () [0x00000] 
  at Mono.Xml.Xsl.Operations.XslLiteralElement.Compile (Mono.Xml.Xsl.Compiler
c) [0x00000] 
  at Mono.Xml.Xsl.Operations.XslCompiledElement..ctor (Mono.Xml.Xsl.Compiler c)
[0x00000] 
  at Mono.Xml.Xsl.Operations.XslLiteralElement..ctor (Mono.Xml.Xsl.Compiler c)
[0x00000] 
  at Mono.Xml.Xsl.Operations.XslTemplateContent.Compile (Mono.Xml.Xsl.Compiler
c) [0x00000] 
  at Mono.Xml.Xsl.Operations.XslTemplateContent..ctor (Mono.Xml.Xsl.Compiler c,
XPathNodeType parentType, Boolean xslForEach) [0x00000] 
  at Mono.Xml.Xsl.Compiler.CompileTemplateContent (XPathNodeType parentType,
Boolean xslForEach) [0x00000] 
  at Mono.Xml.Xsl.Compiler.CompileTemplateContent () [0x00000] 
  at Mono.Xml.Xsl.Operations.XslLiteralElement.Compile (Mono.Xml.Xsl.Compiler
c) [0x00000] 
  at Mono.Xml.Xsl.Operations.XslCompiledElement..ctor (Mono.Xml.Xsl.Compiler c)
[0x00000] 
  at Mono.Xml.Xsl.Operations.XslLiteralElement..ctor (Mono.Xml.Xsl.Compiler c)
[0x00000] 
  at Mono.Xml.Xsl.Operations.XslTemplateContent.Compile (Mono.Xml.Xsl.Compiler
c) [0x00000] 
  at Mono.Xml.Xsl.Operations.XslTemplateContent..ctor (Mono.Xml.Xsl.Compiler c,
XPathNodeType parentType, Boolean xslForEach) [0x00000] 
  at Mono.Xml.Xsl.Compiler.CompileTemplateContent (XPathNodeType parentType,
Boolean xslForEach) [0x00000] 
  at Mono.Xml.Xsl.Compiler.CompileTemplateContent () [0x00000] 
  at Mono.Xml.Xsl.XslTemplate.Parse (Mono.Xml.Xsl.Compiler c) [0x00000] 
  at Mono.Xml.Xsl.XslTemplate..ctor (Mono.Xml.Xsl.Compiler c) [0x00000] 
  at Mono.Xml.Xsl.XslStylesheet.HandleTopLevelElement (Mono.Xml.Xsl.Compiler c)
[0x00000] 
  at Mono.Xml.Xsl.XslStylesheet.ProcessTopLevelElements (Mono.Xml.Xsl.Compiler
c) [0x00000] 
  at Mono.Xml.Xsl.XslStylesheet.Compile (Mono.Xml.Xsl.Compiler c) [0x00000] 
  at Mono.Xml.Xsl.Compiler.Compile (System.Xml.XPath.XPathNavigator nav,
System.Xml.XmlResolver res, System.Security.Policy.Evidence evidence) [0x00000] 


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list