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

Re: Build applications using the "simplicity stack"

  • From: Hans-Juergen Rennau <hrennau@yahoo.de>
  • To: Arjun Ray <arjun.ray@verizon.net>, "xml-dev@l..." <xml-dev@l...>
  • Date: Thu, 3 Apr 2014 09:35:06 +0100 (BST)

Re:  Build applications using the "simplicity stack"
[a re-posting, made on request]

Arjun, you write: "XML may be useful at the periphery, to move data between systems."

I take a different view.

Did you sufficiently take into consideration that XML-encoded information is addressable, down to the smallest item, in a unified way which could not be more concise and at the same time more intuitive? XML-encoded information can be submitted to powerful operations, effecting extraction, transformation, aggregation. XML turns information into a substrate with which to work, in a way which reminds me of numbers (the substrate) and mathematics (the operations).

Therefore your statement would make sense to me if there were XML, but not XPath, XQuery, XSLT. I think that to speak about the "usefulness" of XML forgetting the existence of these technologies makes little sense, similar to speaking about the usefulness of relational databases without considering the existence of SQL.

Little example. You have two XML files and you are interested in the differences. The following 9 lines of XQuery code, written in two minutes, lists added/removed data paths (see below). Of course it is generic - any two documents can be used. Can you give me examples of how this could be achieved equally easily after leaving XML format?

Kind regards,
Hans-Juergen

declare variable $doc1 external;
declare variable $doc2 external;
let $paths1 := distinct-values(doc($doc1)//*/string-join(ancestor-or-self::*/local-name(), '/'))
let $paths2 := distinct-values(doc($doc2)//*/string-join(ancestor-or-self::*/local-name(), '/'))
return
  <diff>
    <new>{for $p in $paths2[not(.=$paths1)] order by $p return <loc p="{$p}"/>}</new>
    <del>{for $p in $paths1[not(.=$paths2)] order by $p return <loc p="{$p}"/>}</del>
  </diff>

Arjun Ray <arjun.ray@verizon.net> schrieb am 2:43 Dienstag, 1.April 2014:
On Sun, 30 Mar 2014 10:21:13 +0000, "Costello, Roger L."
<costello@m...> wrote:

|     (Paul Tyson) In my role as webapp developer, nothing but
|     XML+XSLT will do.
|
| What is your simplicity stack?

I'm not a 'webapp devloper", so as far as XML enters into the picture,
my simplicity stack starts with getting data _out_ of XML as soon as
possible.

XML may be useful at the periphery, to move (structured) data between
systems.  But I keep the business end of the logic XML-free. 


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.