xsl-list
[Top] [All Lists]

[xsl] output method="xhtml" in 2.0

2006-11-20 12:45:34
I'm doing a transform in .NET 2005 using Saxon.Net

I noticed David Carlisle's advice earlier today about XSL 1.0 had to be
output method="xml", but 2.0 could be method="xhtml".

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:

transformer = processor.NewXsltCompiler().Compile(New Uri(xslDoc)).Load

Why doesn't this work?

Rick


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
    xmlns:fn="http://www.w3.org/2005/xpath-functions";
    xmlns:xhtml="http://www.w3.org/1999/xhtml";>
  <xsl:output method="xml" media-type="application/xhtml+xml"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
exclude-result-prefixes="xs fn" omit-xml-declaration="yes"
encoding="iso-8859-1"/>
  ...


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--