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

Re: Bash scritp

Subject: Re: Bash scritp
From: Beatriz Langiano <bialangiano@xxxxxxxxxxxx>
Date: Tue, 8 Mar 2005 12:46:32 -0300 (ART)
bash read
Hi Hardy,


Thanks by your help, but what I need read some
specifics  elements of a XML document, as I do in
XSLT, for example:

<date>
<xsl:value-of select= "." />
</date>

<creator>
<xsl:value-of select= "." />
</date>


My script must read these elements values and insert
them in a database.

Thanks, Beatriz



--- Hardy Merrill <HMerrill@xxxxxxxxxxxxxxxx> wrote:
> This is a bit (a lot) off topic for this list, but
> I'll humor you since
> I like Linux :)
> 
> I'll give this a shot, but please know that I
> haven't done anything in
> Linux and Bash in quite a while, so take this with a
> grain of salt ;-)
> 
> Not sure if this is what you're looking for, but if
> all you want to do
> is "read" the XML document, I think(?) you could
> pipe the XML file to
> your bash script, and have the bash script read it
> line by line from
> standard input (STDIN).  I can't remember how to set
> up the read loop in
> bash, but it shouldn't be too hard to figure out.  I
> think you could
> probably find all you need by doing
> 
>     man bash
> 
> at a command prompt.
> 
> HTH.
> 
> Hardy Merrill
> 
> >>> kevin.rodgers@xxxxxxx 03/08/05 10:25 AM >>>
> Beatriz Langiano writes:
> > I was writing a bash script (in linux), and I'd
> like
> > to  to read a XML document, like in XSLT.
> > Does somebody know how I could do this?
> 
> I haven't tried it, but William Park maintains a
> souped-up version of
> bash that includes XML support (nothing like
> XPath/XSLT though):
> 
>
http://freshmeat.net/projects/bashdiff/index.html#xml
> 
> http://home.eol.ca/~parkw/index.html#xml 
> 
> -- 
> Kevin Rodgers
> 
> 

Beatriz Langiano
Mestrado em Informatica
Universidade Federal do Parana - Brasil

__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger 
http://br.download.yahoo.com/messenger/ 

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.