470,849 Members | 1,141 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Re: Hex dump (e.g. S-Record) from XML via XSLT?

Do you think that this is possible with an XSLT at all? Would it be
possible without float or endianess support?
XSLT is a turing-complete programming language, so it's certainly
possible. People have done obscene things like writing
eight-queens-problem solvers in XSLT, or rendering a series of chess
moves as board grids, just to prove that it's possible.

Whether it's *reasonable* is a separate question. XSLT is not the
langauge I would select for this task.
Jun 27 '08 #1
4 2120
On 21 Apr., 21:41, "Joseph J. Kesselman" <keshlam-nos...@comcast.net>
wrote:
Whether it's *reasonable* is a separate question. XSLT is not the
langauge I would select for this task.
Can someone recommend a tool* (other than XSLT) suitable for this
task?

Hopefully, interpreting a binary file and displaying the result in XML
-- as well as the other way round (like in my situation) -- is not too
uncommon...

Kind regards
Ingolf

* Any tools (commercial, free ware, ...) are welcome.
Jun 27 '08 #2
Ingolf Steinbach wrote:
On 21 Apr., 21:41, "Joseph J. Kesselman" <keshlam-nos...@comcast.net>
wrote:
>Whether it's *reasonable* is a separate question. XSLT is not the
langauge I would select for this task.

Can someone recommend a tool* (other than XSLT) suitable for this
task?
Any decent programming language. C is the obvious choice.
Hopefully, interpreting a binary file and displaying the result in XML
-- as well as the other way round (like in my situation) -- is not too
uncommon...
No indeed, but I would imagine your chances of finding a prewritten
system for doing your precise task are virtually nil -- unless it
happens to be a common format of data in your particular industry, in
which case your industry's own web sites and forums are a more likely
place to find it than here.

///Peter
Jun 27 '08 #3
On 21 Apr., 23:20, Peter Flynn <peter.n...@m.silmaril.iewrote:
No indeed, but I would imagine your chances of finding a prewritten
system for doing your precise task are virtually nil -- unless it
happens to be a common format of data in your particular industry,
[...]

The idea was to have a tool which allows
- describing the format of a binary file and
- specification of the contents in (human readable) text based form
(both preferably in XML) and doing the conversion from text based
contents to binary.

I would expect this to be quite a general task not limited to a small
and specialized area of applications.

Kind regards
Ingolf
Jun 27 '08 #4
Websearch on "data binding", which is the general term for mapping
standard representations such as XML over arbitrary back-end data such
as your binary dump.

Various tools have been proposed. It's been a while since I've looked at
this, so I'm not sure where the current state of the art stands.
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Colin Fox | last post: by
1 post views Thread by Justin Woodcock | last post: by
reply views Thread by Mike | last post: by
2 posts views Thread by Pete G. | last post: by
reply views Thread by R | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.