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

RE: Application Design

  • From: Al Snell <alaric@a...>
  • To: Sean McGrath <sean.mcgrath@p...>
  • Date: Sat, 11 Aug 2001 17:50:22 +0100 (BST)

RE: Application Design
On Sat, 11 Aug 2001, Sean McGrath wrote:

> XSLT is an example of a 20/80 point technology:-) It
> gets you 80% towards a solution quickly but makes the remaining
> 20% either impossible or so hard that the time it takes to get
> that last 20% done, wipes out the gains you made on the
> first 80%!

Has to be said I've torn my hair out writing an XSLT that takes an input
document describing the configuration of a lot of machines, including the
IP address and netmask, and produce a document showing (amongst many,
many, other things) what networks there were with links to the machines on
each network. To do this, I had to mask the netmask with the IP address
to get the network address and then produce a table for each distinct
network address.

How did I do this?

With two XSLTs. One XPaths out the network config elements and outputs
CSV. Then some Perl munges this and outputs text-XML which is
entity-referenced into the original document (because we can't change the
input document on the fly, it always entity-refs this file, but the build
process starts by putting an empty file there so the first XSLT can work
without a parse error), whereupon the main XSLT finds the lists of which
machines should go in which tables nicely set up for it.


Boy did I wish I was doing that in something like PHP!

>
> Sean
>

ABS

-- 
                               Alaric B. Snell
 http://www.alaric-snell.com/  http://RFC.net/  http://www.warhead.org.uk/
   Any sufficiently advanced technology can be emulated in software


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.