I
Ingolf Steinbach
Hi,
I am searching for an XSLT which takes an input XML file like for
instance
<!-- preamble etc -->
<xPosition>3572</xPosition>
<yPosition>12345</yPosition>
<temperature>3.142</temperature>
<!-- ... -->
and creates a hex dump (for instance S-Record format) using rules
specifying that the number in xPosition shall be encoded as an
unsigned 16-bit integer in big-endian byte order, the same for
yPosition, and that <temperature> shall be encoded as a 32-bit IEEE
floating point, again big-endian? The example above should generate a
line like
S10B00000DF430394049168764
in the output.
Any pointers to solutions to this problem are welcome. If the output
is not S-Record but some other hex-dump like format, that is ok, too.
Do you think that this is possible with an XSLT at all? Would it be
possible without float or endianess support?
Kind regards
Ingolf
I am searching for an XSLT which takes an input XML file like for
instance
<!-- preamble etc -->
<xPosition>3572</xPosition>
<yPosition>12345</yPosition>
<temperature>3.142</temperature>
<!-- ... -->
and creates a hex dump (for instance S-Record format) using rules
specifying that the number in xPosition shall be encoded as an
unsigned 16-bit integer in big-endian byte order, the same for
yPosition, and that <temperature> shall be encoded as a 32-bit IEEE
floating point, again big-endian? The example above should generate a
line like
S10B00000DF430394049168764
in the output.
Any pointers to solutions to this problem are welcome. If the output
is not S-Record but some other hex-dump like format, that is ok, too.
Do you think that this is possible with an XSLT at all? Would it be
possible without float or endianess support?
Kind regards
Ingolf