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

RE: Printer Control Characters (was untitled)

Subject: RE: Printer Control Characters (was untitled)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 9 Mar 2001 11:41:43 -0000
printer control characters
> I'm trying to insert a string into xsl which includes a
> printer escape code
> e.g.
> 	<input type="text" name="field1" id="field1"><xsl:attribute
> name="value"><xsl:value-of
> select="./PremisesOfLoading"/>&#x4D;</xsl:attribute></input><br></br>
>
> where &#x4D; is the hex code for 'Select 12cpi' for my Epson printer.
> The code appends this escape code to the text retreived from the
> "./PremisesOfLoading" branch in the xml but when I process
> this I'm still
> seeing M appended to the value in the "./PremisesOfLoading"
> branch(ESC M is &#x4D; in Hex)
>

No it isn't: x4D is simply "M", not "ESC M".

ESC is a C0 control character and as such is not a legal XML character, so
you can't produce it in XSLT output. You'll have to find a different
approach, e.g. output a processing instruction
 <?ESC M?> and write a ContentHandler to convert this at serialization time.

Mike Kay
Software AG


 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.