[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Modeling matrices in an XML environment

Subject: Re: Modeling matrices in an XML environment
From: "Dr. Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 16 Jul 2020 16:11:56 -0000
Re:  Modeling matrices in an XML environment
This is a really fascinating discussion. Thank you.

Michael Kay wrote this interesting sentence:

> It's an argument against using XML trees for
> working data structures when implementing
> complex algorithms - which is why XSLT 3.0
> provides an alternative.

But, but, but, ...

Algorithms require data structures, right? Even complex algorithms require
data structures. Isn't the XSLT map construct a data structure? Are you saying
that some data structures should be used in certain algorithms while other
data structures should be avoided? When is an appropriate use of an "XML data
structure" and when is it inappropriate?

/Roger


From: Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, July 16, 2020 7:01 AM
To: xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [EXT] Re:  Modeling matrices in an XML environment


Liam wrote this really interesting paragraph:


The benefit to using maps or arrays over
elements in XSLT or XQuery is that element
nodes are too heavyweight, and too prone
to turning their content back into strings.
In XQuery in particular, constructors by
default do a terrible and dismal thing:
<x>3</x> makes a text node inside an x
element. And XDM element nodes have
a ton of properties, such as next, previous,
parent, schema type, is_happy, none  of
which are needed for a matrix of numbers.

Yikes! Isn't that an argument against using XML and XSLT?
It's an argument against using XML trees for working data structures when
implementing complex algorithms - which is why XSLT 3.0 provides an
alternative.

Michael Kay
Saxonica

http://www.mulberrytech.com/xsl/xsl-list
http://lists.mulberrytech.com/unsub/xsl-list/673357 ()

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.