Re: XHTML Transform and DOCTYPE/namespace - WOE

Emmanouil Batsis <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Jon,

This is not a forum for generic XSLT questions; people here only talk 
about issues regarding the mozilla implementation. You should try a 
mailing list like the xsl-list at mulberrytech.com for such questions.

It seems your XSLT is not aware of the XHTML namespace, so all you have 
to do is add the same xmlns ref in your stylesheet.

hth,

Manos



[email protected] wrote:
> Hi all,
> 
> I'm new to XSLT but have a good start on it.  I need
> to take an arbibtrary XHTML compliant source file and
> [mildly] transform it to XML that is able to be
> processed by a separate API I am using.  The
> transformation I have setup works ok IF and ONLY IF I
> do NOT include these top lines in my XHTML souce
> file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <!DOCTYPE html
>      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> 
> <html xmlns="http://www.w3.org/1999/xhtml"
> xml:lang="en" lang="en">
> 
> But rather just start with
> 
> <html>
> ...
> 
> If I DO include the dtd and xmlns refs the output is
> just a blind spewage of all element values apparently
> irregardless of the XSL file content.  I want to be
> able to transform XHTML source docs with the DTD and
> xmlns callouts (especially since I need to define
> '&nbsp;' and the like)
> 
> What do I need to do?
> 
> I am using xalan v2.6.0 in Java.
> 
> Tia!
> 
> Jon Kirton
> [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.