xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "susan atmaja" <susan_san...@hotmail.com>
Subject problem with <meta> tag and xhtml
Date Thu, 01 Jan 1970 00:00:00 GMT
<html><div style='background-color:'><DIV><FONT color=#000000 face=Helv
<P>Dear Sirs / Madams,</P>
<P>I am currently using xalan 1.2.2. and I have problems with the writing of html meta
tags. The html output is without a closing tag. Even though the closing tag (either /&gt;
or &lt;/meta&gt;) is specified in the XSL file, however it was eliminated.</P>
<P>The following is the XSL file:</P>
<P>&lt;?xml version='1.0' encoding='utf-8' ?&gt;</P>
<P>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;</P>
<P>&lt;xsl:output method="html" doctype-system="xhtml1-transitional.dtd"/&gt;</P>
<P>&lt;xsl:template match="Parent"&gt;</P>
<P>&lt;html lang="en-sg"&gt;</P>
<P>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;</P>
<P>the html output is:</P>
<P>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;</P>
<P>Note: There is no closing tag</P>
<P>even when I put</P>
<P>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;/meta&gt;</P>
<P>in the XSL, however the output is still the same as the above.</P>
<P>My html file needs to be compliant to xhtml DTD. Therefore, I would need the meta
tags to have a closing tag as well. </P>
<P>In summary, I need to clarify 2 things:</P>
<P>1. Is this a known problem in Xalan 1.2.2? If it is, is there a work around? most
preferably using the same Xalan version.</P>
<P>I have tried to construct the tags using &lt;xsl:text&gt;&amp;lt;meta
http-equiv="Content-Type" content="text/html; charset=utf-8"/&amp;gt;&lt;/xsl:text&gt;</P>
<P>However, they are not treated as html tag, therefore instead of being treated as
html tag, it is treated as a normal text. </P>
<P>2. I have specified the closing tag in my XSL file, however in the html output, it
is eliminated.</P>
<P>Is there a flag or something like that in the configuration that I can set, so that
the closing tag is not eliminated automatically.</P>
<P>3. Is there a way in Xalan 1.2.2 that conformance to XHTML is checked?</P>
<P>I really look forward to your reply and I thank you for your time.</P>
<P>With Regards,</P>
<P>Susan</P></FONT></DIV></div><br clear=all><hr>MSN
Photos is the easiest way to share and print your photos: <a href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click

View raw message