[Mono-list] XmlTextReader

Atsushi Eno atsushi at ximian.com
Tue May 31 05:13:07 EDT 2005


Hello,

> I know for a fact that the MSXML parser does not allow you to have:
> 
> <xsl:template name="foo" mode="bar">
> 
> This is reasonable as you can only have one instance of a named
> template,
> and mode is used with xsl:apply-templates which works with:
> 
> <xsl:template match="foo" mode="bar">
> 
> So I think you'll find that this is where your problem lies.

There is no such prohibition rule in XSLT 1.0 specification.


> However, on Mono 1.1.7 (Windows) I noticed that for a transformation,
> that did work on
> Mono 1.1.4 (Linux), failed for the later version with a message saying:
> 
> "System.Xml.Xsl.XsltException: 'template' element is not sup
> ported as a template content in XSLT 1.0."
> 
> Now this is quite clearly 'twoddle', as none of my style sheets (I have
> a root style sheet that includes a number of sub-stylesheets) have any
> form of template element children of xsl:template with or without the
> xsl namespace.

(What is "twoddle" ? I searched all English dictionary I can use..)

That just sounds like a bug if an xsl:template ghost exists and
is rejected. Please file a bug to bugzilla with the failing
stylesheet.

> I will be uninstalling 1.1.7 and trying 1.1.4 on Windows to see if it is
> a windows problem or a mono problem.

I have no idea why it could be Windows problem.

Atsushi Eno


More information about the Mono-list mailing list