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

RE: Returning the file name of the input file

Subject: RE: Returning the file name of the input file
From: "bryan" <bry@xxxxxxxxxx>
Date: Wed, 28 Aug 2002 14:19:59 +0200
html input file

Jeni wrote:

><xsl:template match="file">
>  <xsl:variable name="href" select="@href" />
>  <saxon:output href="{$href}">
>    <xsl:apply-templates select="document($href, .)" mode="process" />
>  </saxon:output>
></xsl:template>

>I'll note that it's probably a bad idea to read and write to/from the
>same file -- if something goes wrong during the transformation you'll
>probably end up losing all your data...

yes there was an argument about this a long time ago, okay a few months,
in which I caught the worst of it From Mr. Kay and Mr. Trevor Nash.
Although I've never really used this model it does seem to me to be
reasonably useful that one can do it if need be. It never really
thoroughly got through to me why it should be such a great sin as to
raise 'side effects', in the functional programming sense of the term,
but it seemingly does.
You can follow the chain below
http://sources.redhat.com/ml/xsl-list/2002-01/msg01337.html
they kicked me awful bad :¨| (just joking)

question: If one wanted to update a document using such a model should
one use a pipeline?
Load in document x, output to document y, load in document y, copy over
document x?


 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.