Re: xsl:output method=xhtml
"Anthony Jones" <[email protected]> Mon, 31 Dec 2007 12:06:02 -0000
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
"Travis Staloch" <[email protected]> wrote in message news:[email protected]... > Hello, > > > I'm trying to make an xml -> xforms xslt. When I specify <xsl:output method="xhtml" ... />, I get this error from firefox: > Error loading stylesheet: Parsing an XSLT stylesheet failed. > > If I use <xsl:output method="html" ... />, the error disappears but namespaces disappear from my output entirely. This is keeping me from making any xforms markup since the xf: namespace is disappearing from all the element names. I guess this is breaking the rendered output which doesn't show up like xforms should and doesn't work like xforms should. > You need method="xml". You should also consider using the doctype-public and doctype-system to specify the XHTML doc type. For example:- <xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes" /> -- Anthony Jones - MVP ASP/ASP.NET