Subject: RE: [xsl] Can XSLT produce binary output: ASN.1-BER From: "Yates, Danny (ANTS)" <danny.yates@xxxxxxxxxx> Date: Fri, 22 Nov 2002 14:23:56 -0000 |
Hi Peter, I doubt you can do this. XSLT can not generate PDF directly, but rather it can generate XSL-FO. You then need another engine (such as FOP) to turn your XSL-FO into PDF. XSL-FO is an XML dialect for describing page layouts. You might be able to get close by being very careful about using the text output mode, but you run into problems if you need to generate certain bytes in the output. The difficulty is that XML is character based, not byte-based. This means you output the character 'A', not the byte 65 (being the ASCII representation of 'A'). Sure, if you need byte 65 and you are using an ASCII (or ASCII-like) output encoding, you could get away with telling XSLT to output an 'A', but this won't always work. Certain characters (notably most of the "control" character which come before "space" in the ASCII character set and are represented by byte codes less than 32) are illegal in XML documents. This means that you have absolutely no way of telling your XSLT processor to output the byte value '0' (null), or the byte value '1', etc. I hope that clears things up a little. Dan. -- Danny Yates Technical Architect Abbey National Treasury Services E-mail: Danny.Yates@xxxxxxxxxx Phone: +44 20 7756 5012 Fax: +44 20 7612 4342 -----Original Message----- From: Reitberger Peter [mailto:peter.reitberger@xxxxxxxxxxx] Sent: 22 November 2002 14:02 To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx' Subject: [xsl] Can XSLT produce binary output: ASN.1-BER I have a XML document and would like to transform it to ASN.1-BER. How would I do this with XSLT? The BER is a binary format but so is PDF. Therefore it should be possible? Has anyone done that already? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list *************************************************************************** This communication (including any attachments) contains confidential information. If you are not the intended recipient and you have received this communication in error, you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error. Internet communications are not necessarily secure and may be intercepted or changed after they are sent. Abbey National Treasury Services plc does not accept liability for any loss you may suffer as a result of interception or any liability for such changes. If you wish to confirm the origin or content of this communication, please contact the sender by using an alternative means of communication. This communication does not create or modify any contract and, unless otherwise stated, is not intended to be contractually binding. Abbey National Treasury Services plc. Registered Office: Abbey National House, 2 Triton Square, Regents Place, London NW1 3AN. Registered in England under Company Registration Number: 2338548. Regulated by the Financial Services Authority (FSA). *************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Can XSLT produce binary o, Michael Kay | Thread | Re: [xsl] Can XSLT produce binary o, Sorin Marti |
RE: [xsl] The beginning of xslt?, Andy Joslin | Date | Re: [xsl] Can XSLT produce binary o, David Carlisle |
Month |