Also, I wonder if this should be one module, or rather separate
modules for each formats under a common base namespace
http://expath.org/ns/conversion/<thing> e.g.
http://expath.org/ns/conversion/csv and
http://expath.org/ns/conversion/json
> --
> You received this message because you are subscribed to the Google Groups "EXPath" group.
> To post to this group, send email to exp...@googlegroups.com.
> To unsubscribe from this group, send email to expath+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/expath?hl=en.
>
>
--
Adam Retter
skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk
I will sit tight and see what it is that you are proposing as the
details emerge, and then comment when things are a bit less ethereal
On 2011-11-03 22:45, Rositsa Shadura wrote:
> serialization and transformation of XML. Having these two sets of
> functions - one for input to XML and one for output from XML, it will
> be really convenient to have also functions which independently from
> the data format can convert data to XML and vice versa. Such a module
> will not be associated with any particular data format or set of
> formats and thus will not be influenced when new formats appear.
�which independently from the data format can convert data to XML and
vice versa�
Frankly, I don�t get it. Any converter from XML and to XML has to
convert to/from /some/ format. If your planned module doesn�t cater to
concrete existing formats such as CSV, JSON etc., what�s its
target/source representation then?
Another important area for a module that is going to cover common XML
input/output tasks: reading and writing binary data (that is carried
along in a base64 representation while in XML documents).
Geert Josten just had a related question on the XProc list (writing
base64 encoded inline images found in Word files). And I was surprised a
while ago when I learned that I couldn�t check the mere existence of a
binary file from within an XSLT processor, without reverting to Java
extension functions.
Gerrit
> Besides it will not cause processors to rewrite their existing logic
> on parsing or serializing or transforming but can be used as a wrapper
> around it.
>
> What do you think about such a module?
>
> I will be glad to receive your feedback!
>
> Regards,
> Rositsa
>
--
Gerrit Imsieke
Gesch�ftsf�hrer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit....@le-tex.de, http://www.le-tex.de
Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930
Gesch�ftsf�hrer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard V�ckler
On 2011-11-04 00:30, Matthias Brantner wrote:
> This, for example, matches very nicely with the file and http module.
> Those provide
> the corresponding read and write functions (one for text and one for
> binary). See
> - file
> <http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/expath.org_ns_file.html>
Ok, this answers my request for reading/writing binary files.
But given that both the file and http modules perform I/O and won�t be
obsoleted by what Rositsa suggested, I think what she suggested should
rather be called 'dataformat' or 'converter' instead of input/output.
--
You received this message because you are subscribed to the Google Groups "EXPath" group.
To view this discussion on the web visit https://groups.google.com/d/msg/expath/-/j35eA82qzHkJ.