[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Printer Control Characters (was untitled)
> 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"/>M</xsl:attribute></input><br></br> > > where M 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 M 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|