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

Re: Problem with control character

Subject: Re: Problem with control character
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 03 Sep 2003 16:15:47 -0400
control char
Franklin,

At 03:23 PM 9/3/2003, you wrote:
I have encountered a truly annoying problem.  The enclosed stylesheet
does not work (with Xalan-J 2.5.1 or various other XSLT processors)
because apparently &#21; is not a valid character for XML 1.0 (though
it will be allowed in 1.1).  Now, I have a large stylesheet that is
used to transform XML to text, and I need to output this character!
Is there any pure XSLT workaround for my problem, or do I have output
something like "JUNK" and have a (non-XSLT) script postprocess the
text to replace that with the required control character?

The latter. Although a "purer" workaround, if you like, can be implemented in an XSLT system. (The required character is inserted by the XSLT serializer, not the transformation, but at least it's lights-out.)


Old distributions of James Clark's XT had a demonstration of how to do this. It may still be available. Googling for XT gets me:

http://www.blnz.com/xt/index.html

Jump to index.html (http://www.blnz.com/xt/xt-20020426-src/index.html) and look under under "Non-XML output" towards the end.

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.