[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problem in XSL transformation

Subject: RE: Problem in XSL transformation
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 7 Sep 2006 08:03:50 +0100
RE:  Problem in XSL transformation
If you want us to help you find out what's wrong with your code, you'll have
to show us your code. It helps to see the input as well.

If characters in the output don't display properly, then it's either because
your output file contains the wrong characters, or because you are
displaying them using the wrong software. Your first step in diagnosing the
problem is to look at the file (for example with a hex editor) to see what
it actually contains.

Michael Kay
http://www.saxonica.com/



> -----Original Message-----
> From: Ambika.Das@xxxxxxxxxxxxxxxxxx
> [mailto:Ambika.Das@xxxxxxxxxxxxxxxxxx]
> Sent: 07 September 2006 06:21
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Problem in XSL transformation
>
> Hi All,
>
> We have the following requirements.
>
> 1. We want to retain the HTML tags which are part of the XML
> output from a HTTP server. The output is in form of raw XML
> and we don't want to loose the formatting (HTML tags) while
> transforming.
> 2. We want to replace double quote to a special character and
> line breaks to <br> tag to be used for further processing.
>
> The problem is that we are not able to retain the formatting
> when we retain the HTML tags.
>
> We are using template for replacing double quotes and line
> breaks. The code is as follows.
>
> <xsl:output method="html" indent="no"/>
>
> <xsl:template match="p">
>         <p>
> 	<xsl:call-template name="transformXMLString">
>         	<xsl:with-param name="StringToTransform" select="."/>
> 	</xsl:call-template>
> 	</p>
>    </xsl:template>
>
> Here transformXMLString is the name of the template which
> replaces line breaks and double quotes. This is simple
> recursive function for character replacement. We are getting
> some unwanted characters after transformation. In csv file,
> this is visible as small boxes.
>
> Any clues?
>
>
> Thanks & Regards,
> Ambika Prasad Das
>  

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.