[Mono-list] XmlTextReader

Fennell, Philip philip.fennell at hp.com
Tue May 31 07:04:35 EDT 2005


Thank you for the reply.

I agree with you that there is no such prohibition regarding the use of
mode, name and match attributes in a xsl:template. Apache Xalan does not
mind. However, the MSXML parser does and it has tripped people up
before. Me included.

I'll file a bug about the template error.

When someone is said to be talking 'Twoddle' it means they are talking
'rubbish' or 'nonsense'.


Regards

Philip Fennell 


-----Original Message-----
From: Atsushi Eno [mailto:atsushi at ximian.com] 
Sent: 31 May 2005 10:13
To: Fennell, Philip
Cc: Giuseppe Greco; Mono
Subject: Re: [Mono-list] XmlTextReader

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