J
jopaki
Hello all,
I am relatively new to XSLT. I am attempting to transform XML and
everyting is cool until I introduce these top lines in the source XML
(really XHTML):
---------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-----------
as opposed to just:
----------
<html>
....
----------
It seems that the combination of the DTD reference and the html tag
attributes affect the output. The output with the DTD callout blindly
outputs all element values within the source seemingly regardless of
the XSL file. And when they are out I get the desired result xml
structure. I want to keep the DTD callout (and xmlns attrib) because
1) the source is XHTML and 2) this DTD defines and the like.
What is going on?
Any input would warrant a free ice cream payable from my account.
I am using Java xalan v2.6.2
tia!
(e-mail address removed)
The Logic Lab Consulting
I am relatively new to XSLT. I am attempting to transform XML and
everyting is cool until I introduce these top lines in the source XML
(really XHTML):
---------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-----------
as opposed to just:
----------
<html>
....
----------
It seems that the combination of the DTD reference and the html tag
attributes affect the output. The output with the DTD callout blindly
outputs all element values within the source seemingly regardless of
the XSL file. And when they are out I get the desired result xml
structure. I want to keep the DTD callout (and xmlns attrib) because
1) the source is XHTML and 2) this DTD defines and the like.
What is going on?
Any input would warrant a free ice cream payable from my account.
I am using Java xalan v2.6.2
tia!
(e-mail address removed)
The Logic Lab Consulting