I would be inclined to write a custom serializer for this. Many
processors give you access to the result tree in the form of a SAX event
stream, which you can capture in a user-written SAX2 ContentHandler.
This allows your XSLT stylesheet to concentrate on generating the ASN.1
representation as a tree, and the serializer to contain all the
knowledge about the BER encoding of ASN.1
An alternative is that there is, I believe, an XML encoding of ASN.1,
and therefore presumably a converter from that to BER.
Michael Kay
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Reitberger Peter
Sent: 22 November 2002 14:02
To: 'XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com'
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list