Subject: [xsl] output method="xhtml" in 2.0 From: "Rick Roen" <Rick@xxxxxxxxxxxxxxxxxx> Date: Mon, 20 Nov 2006 13:44:14 -0600 |
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"/> ...
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] .Net compiledTransform, David Carlisle | Thread | RE: [xsl] output method="xhtml" in , Michael Kay |
[xsl] sort by xsl:if and then sort , Max Bronsema | Date | Re: [xsl] writing out of the curren, Nima Kaviani |
Month |