[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

Subject: RE: XML View in IE, missing space for contineous emphasis
From: "Ramkumar" <ramkumar@xxxxxxxxxxxxxxxxxx>
Date: Tue, 2 Feb 2010 10:54:25 +0530
 RE: XML View in IE
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.