[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XML View in IE, missing space for contineous empha
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|