[Mono-list] XmlTextReader

Atsushi Eno atsushi at ximian.com
Mon May 30 23:03:50 EDT 2005


Hello,

Can you please provide all required files to run what you
actually run? There is several missing files referenced from
"chunk.xsl" some of which do not exist in docbook repositry.
Cutting small reproducible code out from your entire code(?)
would be nice.

As far as I tried to Load() "labels.xsl" as a standalone
stylesheet, it did not complain like what you pasted. Or you
might be using old version which might have bugs.

Atsushi Eno


Giuseppe Greco wrote:
> Hi all,
> 
> I think there is a problem with the XslTransform class...
> For example, if you try to transform a document using the
> DocBook stylesheets, you'll get the following error message:
> 
> Could not perform XSLT transformation of
> '/home/genius/projects/thermota/doc/help/Thermota/en-US/index.xml' using
> stylesheet
> http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl'.
>     XSLT 'template' element must not have 'mode' attribute when it does
> not have 'match' attribute.
> http://docbook.sourceforge.net/release/xsl/current/common/labels.xsl
> line 21, position 2
> http://docbook.sourceforge.net/release/xsl/current/common/labels.xsl
> line 21, position 2
> 
> The code to reproduce the problem looks like this:
> 
> Uri uri = new Uri(
>  "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl");
> XmlUrlResover resolver = new XmlUrlResolver();
> Stream stream = (Stream) resolver.GetEntity(uri, null, typeof(Stream));
> XmlTextReader xslReader = new (uri.AbsoluteUri, stream);
> XslTransform xslt = new XslTransform();
> xslt.Load(xslReader);
> ...
> xslt.Transform(xmlDoc, xsltArgs, xmlWriter):
> 
> Is there any reason why XslTransform dislikes DocBook stylesheets?
> Any help is really appreciated.
> 
> Thanks,
> j3d.
> 



More information about the Mono-list mailing list