A
Andy
Hi,
I am using Apache xalan to transform xhtml files to html files.
My xslt stylesheet is:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform">
<xslutput method="html" encoding="UTF-8"/>
<xsl:template match="/"><xsl:copy-of select="/"/></xsl:template>
</xsl:stylesheet>
Seems to work. For example, I had an xhtml file which had entities
defined in DOCTYPE and those were resolved successfully.
However, I'm more concerned with another document:
Its an xhtml file and begins with:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="urn:schemas-
microsoft-comfficeffice" xmlns:w="urn:schemas-microsoft-
comffice:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/
omml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://
www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type"
content="text/html; charset=utf-8"/>
My concern is that xalan resolve all dependencies in such an xhtml
file on the schemas referenced in the html tag.
Will it???
The xalan output to html began with:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://
schemas.microsoft.com/office/2004/12/omml" xmlns="urn:schemas-
microsoft-comfficeffice" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w="urn:schemas-microsoft-comffice:word" xmlns:xlink="http://
www.w3.org/1999/xlink">
So I'm obviously concerned that the dependencies are still there!
If its ok, can I strip all those xmlns attributes in the <html> tag?
Or maybe I need a much better xslt stylesheet.
Thanks,
Andy
I am using Apache xalan to transform xhtml files to html files.
My xslt stylesheet is:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform">
<xslutput method="html" encoding="UTF-8"/>
<xsl:template match="/"><xsl:copy-of select="/"/></xsl:template>
</xsl:stylesheet>
Seems to work. For example, I had an xhtml file which had entities
defined in DOCTYPE and those were resolved successfully.
However, I'm more concerned with another document:
Its an xhtml file and begins with:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="urn:schemas-
microsoft-comfficeffice" xmlns:w="urn:schemas-microsoft-
comffice:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/
omml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://
www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type"
content="text/html; charset=utf-8"/>
My concern is that xalan resolve all dependencies in such an xhtml
file on the schemas referenced in the html tag.
Will it???
The xalan output to html began with:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://
schemas.microsoft.com/office/2004/12/omml" xmlns="urn:schemas-
microsoft-comfficeffice" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w="urn:schemas-microsoft-comffice:word" xmlns:xlink="http://
www.w3.org/1999/xlink">
So I'm obviously concerned that the dependencies are still there!
If its ok, can I strip all those xmlns attributes in the <html> tag?
Or maybe I need a much better xslt stylesheet.
Thanks,
Andy