Subject: [xsl] RE: XML View in IE, missing space for contineous emphasis From: "Ramkumar" <ramkumar@xxxxxxxxxxxxxxxxxx> Date: Tue, 2 Feb 2010 10:54:25 +0530 |
Hi List, I am writing XSL to view the XML Content in Internet Explorer. In Explorer view, space missing for continuous emphasis. Please look into the below inputs for my issues. How to resolve this. Please give your suggestions. Input XML (1.xml): ================= <?xml version="1.0"?> <?xml-stylesheet href="1.xsl" type="text/xsl"?> <root> <para>This is a paragraph content, it contains emphasis are <emphasis type="bold">BOLD</emphasis> <emphasis type="italic">ITALIC</emphasis> <emphasis type="underline">UNDERLINE</emphasis>.</para> </root> XSL for Browser View (1.xsl): ========================== <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes" encoding="us-ascii" omit-xml-declaration="yes" /> <xsl:preserve-space elements="*"/> <xsl:template match="root"><html><xsl:apply-templates/></html></xsl:template> <xsl:template match="para"><p><xsl:apply-templates/></p></xsl:template> <xsl:template match="emphasis[@type='bold']"><b><xsl:apply-templates/></b></xsl:template> <xsl:template match="emphasis[@type='italic']"><i><xsl:apply-templates/></i></xsl:template > <xsl:template match="emphasis[@type='underline']"><u><xsl:apply-templates/></u></xsl:templ ate> </xsl:stylesheet> Output in Browser View (1.xml): ============================= This is a paragraph content, it contains emphasis are BOLDITALICUNDERLINE. Regards, Ramkumar
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] remove tags + CDATA tag o, Michael Ludwig | Thread | Re: [xsl] RE: XML View in IE, missi, Christopher R. Maden |
Re: [xsl] remove tags + CDATA tag o, Michael Ludwig | Date | [xsl] XML View in IE, missing space, Ramkumar |
Month |