xsl-list
[Top] [All Lists]

Re: Writing to a text file

2004-04-13 09:07:54
Newer processors support the xsl:document tag (xsltproc), which I use to
output multiple documents from one transform.
You'll want to call one template that matches graphic in a different "mode",
and then continue on with the rest of the transformation, I haven't found a
way to append to an existing file, maybe with an extension....

-Jeff

----- Original Message ----- 
From: "Naomi Gronson" <naomi_gronson(_at_)yahoo(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, April 13, 2004 9:43 AM
Subject: [xsl] Writing to a text file


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?

Thanks,

Naomi




__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




<Prev in Thread] Current Thread [Next in Thread>