Re: xsl:output method=xhtml

"Anthony Jones" <[email protected]> Thu, 3 Jan 2008 15:16:22 -0000
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
"twostepted" <[email protected]> wrote in message
news:[email protected]...
> > I'm not sure what the relationship is between XForms and XHTML is.  Are
you
> > talking about the XForms initiative of HTML forms that happen to be in a
> > XHTML document?
> I'm using the Mozilla XForms Extension (http://www.mozilla.org/
> projects/xforms).  And yes I believe that we're thinking of the same
> XForms (http://www.w3.org/MarkUp/Forms/).  The reason that I believe
> <xsl:output method="xhtml" ... /> is essential is because <xsl:output
> method="html" ... /> is stripping out the namespaces.
>
> > Have you crafted the desired output manually and tested it as working
then
> > compared your hand crafted output with the generated output of your XSL?
> Yes, I have tested that the output of my XSL works by setting
> <xsl:output method="xml" ... /> and copying the contents of the
> transform into a .html document.  This works well and I am able to see
> and work with the XForms components.
>
> Can you see what my problem is?  It seems to like Firefox doesn't
> support <xsl:output method="xhtml" ... /> and this is exactly what I
> need to make make my XForms XSL work.
>

FYI, There is no such method as "xhtml".  The XSLT output element has a
method attribute which can be one of these fixed values: xml, html, text. Of
these Firefox only supports xml and html.  See:-

http://developer.mozilla.org/en/docs/XSLT:output

and

http://www.w3.org/TR/xslt#output

-- 
Anthony Jones - MVP ASP/ASP.NET