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

Re: Ignoring specific characters like > in the XML

Subject: Re: Ignoring specific characters like > in the XML while doing XSLT
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 17 Oct 2003 14:39:11 -0400
gt xml
Dipesh,

The thing is, using output method="text", it's as if DOE is always on, so switching it on does nothing. [XSLT 16.4: "The text output method ignores the disable-output-escaping attribute, since it does not perform any output escaping.]

At 10:49 AM 10/17/2003, you wrote:
My output method is text and i have defined it like this.

<xsl:output method="text" encoding="UTF-8"/>

And in the input xml file i am getting value like this at one place

<myTag NAME="Identifier">HL-DT-ST CD-ROM GCR-8480Bema"&gt;</ATTRIBUTE>

and there is one end of line character after  &gt; and then question mark is
there. I guess this file is generated by some tool and there must be some
goofing somewhere which is producing output like this.

So do you mean with ouput method as text, i won't be able to use DOE ?

I can't change my output method from text to xml. Are there any other ways to
escape those.

If your output is otherwise plain text but you want ">" to appear as "&gt;", you can use a recursive string-replacement routine in your stylesheet (check exslt.org) to escape the problematic characters.


Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.