xsl-list
[Top] [All Lists]

Multiple output files

2003-03-05 11:21:38
Hi again!

I'm sure this must be a FAQ, but I don't seem to be finding anything anywhere.

I'm trying to use <xalan:write> to redirect part of my XSLT output to a separate file.
The stylesheet (in part) looks like this:

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
...
        xmlns:xalan="org.apache.xalan.xslt.extensions.Redirect"
        extension-element-prefixes="xalan" ...>

<xsl:template match="wmeta">
        <xalan:write file="about-dak.html">
                <div class="copyrights">
<h1 class="logo"><b><xsl:text>AUTHOR</xsl:text></b></h1>
                        <h3 class="logo"><xsl:text>TITLE</xsl:text></h3>
                        <b><xsl:apply-templates select="tle" /></b><br />
                <xsl:apply-templates select="ack" /><br />
                <hr class="half" /><a id="about"></a>
                <xsl:apply-templates select="about" /><br />
                <hr class="half" />
<i><xsl:text>MS Reader for DAK ISBN </xsl:text><xsl:apply-templates select="isbn" /></i><br />
                <xsl:apply-templates select="cpy" /><br />
                <xsl:apply-templates select="pubhistory" /><br />
                <hr class="half" />
                </div>
        </xalan:write>
</xsl:template>

The wmeta material is no longer appearing in my main output file, which is good, but I'm not seeing any "about-dak.html" file being created at all. My guess from perusing the xalan site is that it's supposed to show up in my output directory, but it's not there, nor do I seem to be able to find it anywhere else. I thought I was following the example from Michael Kay's invaluable resource (2nd ed., p. 818) pretty exactly, but something isn't flying. Does anyone have a suggestion? Thank you so much!


--Chris

----------------------------------------------------------------------------------------
Texterity ~ XML and PDF ePublishing Services
----------------------------------------------------------------------------------------
Chris Loschen, XML Developer
Texterity, Inc.
144 Turnpike Road
Southborough, MA 01772 USA
tel: +1.508.804.3033
fax: +1.508.804.3110
email: loschen(_at_)texterity(_dot_)com
http://www.texterity.com/

XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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