XHTML Transform and DOCTYPE/namespace - WOE
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
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
' ' and the like)
What do I need to do?
I am using xalan v2.6.0 in Java.
Tia!
Jon Kirton
[email protected]