xsl-list
[Top] [All Lists]

RE: Can XSLT produce binary output: ASN.1-BER

2002-11-22 09:12:08
You might find some useful code in the Pears project at OCLC's Office of
Research: http://www.oclc.org/research/software/pears. Pears (a database
that uses BER internally) has record handlers that convert XML records to
ASN.1/BER, using a configuration file to map XML tag names to BER tag
numbers. It's Java and open source, so could be integrated with XSLT fairly
easily.

Peter



-----Original Message-----
From: Michael Kay [mailto:michael(_dot_)h(_dot_)kay(_at_)ntlworld(_dot_)com] 
Sent: Friday, November 22, 2002 8:54 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Can XSLT produce binary output: ASN.1-BER


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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list