mathu
08-07-2008, 12:10 PM
Hi,
I've wriiten a stylesheet to view the XML file in IE-6.
When I view the file in browser, it doesn't show any difference.
But when I see the print preview, there is duplication of text appears.
ie. end of the word in the line repeated to the next line.
My test.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>
<book>
<p>More than 2 million people die each year in the United States, of which 80% die in hospitals. Nurses who work in hospitals have expressed a feeling of inadequate preparation and lack of knowledge in supporting families and patients in end-of-life issues. ....</p>
</book>
My test.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:html="http://www.w3.org/1999/XSL/Format"
version='2.0'>
<xsl:output method='html'/>
<xsl:template match="p">
<p style="font-size:11pt;font-family:AGaramondPro-Bold">
<xsl:apply-templates/>
</p>
</xsl:template>
</xsl:stylesheet>
Anyone know the solution?
Thanks,
mathu.
I've wriiten a stylesheet to view the XML file in IE-6.
When I view the file in browser, it doesn't show any difference.
But when I see the print preview, there is duplication of text appears.
ie. end of the word in the line repeated to the next line.
My test.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>
<book>
<p>More than 2 million people die each year in the United States, of which 80% die in hospitals. Nurses who work in hospitals have expressed a feeling of inadequate preparation and lack of knowledge in supporting families and patients in end-of-life issues. ....</p>
</book>
My test.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:html="http://www.w3.org/1999/XSL/Format"
version='2.0'>
<xsl:output method='html'/>
<xsl:template match="p">
<p style="font-size:11pt;font-family:AGaramondPro-Bold">
<xsl:apply-templates/>
</p>
</xsl:template>
</xsl:stylesheet>
Anyone know the solution?
Thanks,
mathu.