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

"Passing through" special characters

Subject: "Passing through" special characters
From: <David.McKay@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 15:55:38 -0000
xsl chr
--- XSL Processor Details

Vendor: SAXON 6.5.3 from Michael Kay
Vendor URL: http://saxon.sf.net/

---

I have some xml, the important part of which looks like this:

<RS422Tx name="RS422Tx1" baud_rate="19200"
data_word="ABC&#13;&#10;DEF&#13;&#10;"/>

I am trying to parse to a text output file. Problem is, I can't figure out a
way to generate the following:

CALCULATE, TX$="ABC&#13;&#10;DEF&#13;&#10;"

This:

<xsl:if test="@data_word">CALCULATE, TX$="<xsl:value-of
select="@data_word"/>"</xsl:if>

results in:

CALCULATE, TX$="ABC
DEF
"

I tried both settings of disable-output-escaping, neither of which seemed to
make a difference.


There may also be a requirement to output as follows:

CALCULATE, TX$="ABC"+CHR$(13)+CHR$(10)+"DEF"+CHR$(13)+CHR$(10)


Can anyone offer any hints for either problem?

Thanks.

Dave McKay



**********************************************************************
IMPORTANT NOTICE

The information contained in this e-mail is confidential. It may also
be legally privileged. It is intended only for the stated addressee(s)
and access to it by any other person is unauthorised. If you are not
an addressee, you must not disclose, copy, circulate or in any other
way use or rely on the information contained in this e-mail. Such
unauthorised use may be unlawful.

If you have received this e-mail in error, please inform
Racal Instruments Group Ltd. immediately by
    emailing  postmaster@xxxxxxxxxxxxxxxxxxxxxxxxxxx
or
    phoning +44 (0)1202 872800  (ask for the I.T. Dept.)
and delete it and all copies from your system.

www.racalinstrumentsgroup.co.uk

**********************************************************************

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.