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

Re: Writing to a text file

Subject: Re: Writing to a text file
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 13 Apr 2004 12:02:43 -0400
xml write text file
Hi Naomi,

At 11:43 AM 4/13/2004, you wrote:
I'm using a preformatting xsl sheet that I run on an
xml file prior to its transformation in to html.  I'd
like to be able to create a separate text file listing
all the included graphics so I can move them.

<xsl:template match="graphic">
<xsl:copy>
<xsl:copy-of select="@*" />
--Write @fileref to a text file
<xsl:apply-templates />
</xsl:copy>
</xsl:template>

Most examples I've seen have shown how to switch the
entire transformed output to a new file--I'd like to
use something that closer resembles the xsl:message
feature.  Any ideas?

IIRC, Xalan has a feature you can use to direct stuff to a separate file without having to have a distinct file for every subtree you want to siphon off. And the open source processors like Saxon can always be extended to provide this functionality (so for example you could redirect xsl:message yourself if you are willing and able to hack Java).


But why not do this in a completely separate pass? Is there a reason this stylesheet has to be the same as your preformatter? It seems to me that keeping it separate allows more flexibility on when and how the filename-extractor is used.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

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.