RE: [xsl] output method="xhtml" in 2.0

Subject: RE: [xsl] output method="xhtml" in 2.0
From: "Rick Roen" <Rick@xxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Nov 2006 04:40:13 -0600
Sorry, here is the relevant error information:

Line that causes the error:
transformer = processor.NewXsltCompiler().Compile(New Uri(xslDoc)).Load

using Saxon 8.8

Error - javax.xml.transform.TransformerConfigurationException  source =

Failed to compile stylesheet. 1 error detected.

Stack trace

   at net.sf.saxon.PreparedStylesheet.prepare(Source styleSource)
   at net.sf.saxon.TransformerFactoryImpl.newTemplates(Source source,
CompilerInfo info)
   at Saxon.Api.XsltCompiler.Compile(Uri uri)
   at RGMonthly.DoSaxonTransform(XmlNode xmlDoc, String xslDoc) in
C:\temp\PrimaveraWeb\RGMonthly.aspx.vb:line 116

When I run my ASP.Net application with <xsl:output method="xml"... no

When I run with <xsl:output method="xhtml"... I get the error above.

Do I need to set something in the processor.Implementation?


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
  <xsl:output method="xml" media-type="application/xhtml+xml"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
exclude-result-prefixes="xs fn" omit-xml-declaration="yes"

> However when I change to below to "xhtml" method, I get an 
> exception from
> Saxon8 in NET when I am loading the stylesheet in this line:

If you don't understand the error messages, there's a good chance that
someone else will. But without the error messages, it's impossible to offer
much help.

If you're not seeing the error messages, then you need to check your usage
of the API to make sure that they are properly displayed.

Michael Kay

Current Thread