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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ingolf Steinbach

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

    On 21 Apr., 22:00, Jürgen Kahrs <Juergen.KahrsD ELETET...@vr-web.de>
    wrote:
    Such output is probably easier to generate with
    a tool like XMLgawk:
    >
    http://home.vrweb.de/~juergen.kahrs/...ml#How-to-trav...
    Thank you, Jürgen, for the pointer. The examples in that document seem
    to suggest that xmlgawk is used mainly for rearranging data (replacing
    tags by other text but leaving the actual data mostly as is) rather
    than *transforming* the data. Is this observation correct?

    Kind regards
    Ingolf
  • Philippe Poulard

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

    Ingolf Steinbach a écrit :
    On 21 Apr., 22:00, Jürgen Kahrs <Juergen.KahrsD ELETET...@vr-web.de>
    wrote:
    >Such output is probably easier to generate with
    >a tool like XMLgawk:
    >>
    > http://home.vrweb.de/~juergen.kahrs/...ml#How-to-trav...
    >
    Thank you, Jürgen, for the pointer. The examples in that document seem
    to suggest that xmlgawk is used mainly for rearranging data (replacing
    tags by other text but leaving the actual data mostly as is) rather
    than *transforming* the data. Is this observation correct?
    Perhaps a more suitable tool would be a SAX parser : you read the input
    XML and you write whatever suitable for your application. SAX parsers
    are available in every popular language and your own part would consist
    for example when you match the <temperatureele ment on buffering the
    text content, parse it as a float, and dump it. Most languages supply
    such basic tools and you just have to put them all together.

    Regards,

    --
    Cordialement,

    ///
    (. .)
    --------ooO--(_)--Ooo--------
    | Philippe Poulard |
    -----------------------------

    Have the RefleX !

    Comment

    • =?ISO-8859-1?Q?J=FCrgen_Kahrs?=

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

      Hello Ingolf,
      >Such output is probably easier to generate with
      >a tool like XMLgawk:
      >>
      > http://home.vrweb.de/~juergen.kahrs/...ml#How-to-trav...
      >
      Thank you, Jürgen, for the pointer. The examples in that document seem
      to suggest that xmlgawk is used mainly for rearranging data (replacing
      tags by other text but leaving the actual data mostly as is) rather
      than *transforming* the data. Is this observation correct?
      No, transforming data is also possible. For example,
      I have written AWK scripts for doing linear regression
      (statistics) or a simple recursive-descent compiler.
      Just look at the other examples. For example the one
      that transforms an XML file into a graph drawing:




      XMLgawk is based on a SAX parser and handles each
      tag separately. If you prefer to work with a DOM
      parser (because you need access to the complete
      DOM tree), then XMLgawk is not as convenient as
      you might need a tool.

      Comment

      Working...