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

using xsl to generate shell scripts

Subject: using xsl to generate shell scripts
From: Gary Frederick <gary.frederick@xxxxxxxxx>
Date: Wed, 25 Jul 2001 09:30:59 -0500
generate shell script
I realized that using XSL to generate scripts is a 'good' thing a few days ago.

I am generating html pages from an XML file. The XML has info to build 100 or so different pages. I pass a PARAM to say which page I want to generate. I was adding the info for each page a few pages at a time and then updating a script file to see the new pages. I was also generating a page that had pointers to all the pages.

As I was adding the most recent batch of pages and updating the script I realized the the difference between the output of the stylesheet that had pointers to all the html pages and the script was some literal text.

ding...

I spent upward of 47 seconds modifying the stylesheet and now have another stylesheet that generates the script file with ALL the web pages.

It's the kind of thing that we have done with perl or sed or awk in the past. The benefit of doing it with XSL for me is I usually have some XSL code that reads the XML I'm interested in. That makes it easy to generate scripts.


A simple thought that makes life a bit easier.


Gary



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.