[Mono-list] XmlTextReader

Giuseppe Greco giuseppe.greco at agamura.com
Mon May 30 13:19:01 EDT 2005


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.

-- 
----------------------------------------
Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  giuseppe.greco at agamura.com
web:    www.agamura.com
----------------------------------------



More information about the Mono-list mailing list