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

Re: advocating XML

  • From: "Thomas B. Passin" <tpassin@h...>
  • To: xml-dev@l...
  • Date: Wed, 14 Mar 2001 01:30:43 -0500

Re: advocating XML
Paul T wrote -

> Now if you map the A.xml into *regex*line*oriented* file, I bet
> you be surprised how *trivial* the overall task becomes if doing
> it in python or perl or any other scripting language that inherits
> from UNIX.
>
 When I started working with xml files, I used scripts with REs, and I tried
to keep my files line-oriented as well.  Of course, I used functions and
methods to produce the output, usually html.  I tried to avoid stylesheets and
parsers.  I thought I didn't need them and they were too complicated.

After awhile, I noticed that it was getting harder and harder as my xml tasks
became more complex.  I had to keep track of a lot of context, and the REs
were harder to get working right.  I also noticed that that it was getting
really hard to change the html output and make sure it was right.

Then I tried writing simple little parsers, both with REs and without.  I knew
they wouldn't work for general xml files, but I said to myself that I would
mostly work with my own files anyway, and I could make sure I didn't use the
more complicated features, especially DTD-related stuff.

That was OK for a little while, then I realized that 1) this wasn't all that
fast, and 2) I was using other people's xml more, and 3) I started wanting to
use more of those features I had disdained before.  (Len Bullard must be
loving this, it's like a recapitulation of 10 years of markup history!)
That's when I started using "real" parsers.    I also started using
stylesheets.

At each step of the way, I got more reliable results that were easier to
develop and change and extend, and I could handle a larger range of documents
and problems.  Any, yes, there are still times where the three lines of REs
are really good.

Now, I haven't tried to use xslt to maintain large and complex web site for
long periods of time, so I can't say how they scale for those purposes.  But
I'm quite sure that trying to maintain such a site with (the old classic) perl
scripts, for example,  can be a real bear.

I have a few Cold Fusion sites, too - it's very good, especially for
displaying data from databases.  So I don't say xml/xslt is the one answer for
everything.

Cheers,

Tom P


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.