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

RE: Converting a Batch File to XML

Subject: RE: Converting a Batch File to XML
From: Deirdre Saoirse Moen <deirdre@xxxxxxxxxxx>
Date: Fri, 23 Jul 2004 17:02:03 -0700 (PDT)
deirdre saoirse moen email
On Fri, 23 Jul 2004, Michael Kay wrote:

> This kind of thing is very much easier using XSLT 2.0
> * use the unparsed-text() function to read the text file
> * split it into individual lines using the tokenize() function
> * parse each line using xsl:analyze-string
> * arrange it into a hierarchical structure using xsl:for-each-group

You know, I think you may just have offered a light into an alternate from
perl maintenance hell. :) OK, it's as well-behaved as perl gets, but I
just can't think in that language.

Right now, I'm using a variant of this perl script:

http://www.extraneous.org/wiki/ProseML_text2chapter.pl

But it seems that the .txt -> .xml translation *could* be done with XSLT
2.0 given your above statement.

-- 
_Deirdre  web: http://deirdre.net    blog: http://deirdre.org/blog/
"Memes are a hoax! Pass it on!"

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.