[xsl] newbie: multiple output files with xsl:document

Subject: [xsl] newbie: multiple output files with xsl:document
From: Heather Adler <HeatherAdler@xxxxxxxxxxxxx>
Date: Thu, 6 Jun 2002 10:06:27 -0600
> Hi,
> Please excuse my general lameness I'm new to this fun world of xml. I'm
> trying to parse an XML file that has SVG tags and I want to take each of
> these SVG blocks and write each one into a file of SVG format so I can
> then use them as embedded objects that can be displayed in browsers. I'm
> not entirely clear on weather xsl:document can be used to write files
> other than of type txt/html/xml? I need to be writing SVG files
> eventually.
> Also, just in trying to accomplish this I keep getting parsing errors
> under IE 6 such as "Keyword xsl:template may not contain xsl:document."
> Here is my silly little xsl file that aims to just make a link and create
> another html file, but produces the above error:
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"; version="1.1">
> <xsl:template match="xbk">
>     <xsl:document href="preface.html">
>         <html><body bgcolor="#00eeee"><center>
>             <xsl:apply-templates/>
>         </center><hr/></body></html>
>     </xsl:document>
>     <a href="preface.html">Preface</a>
> </xsl:template>
> </xsl:stylesheet>
> 
> Any help is muuuch appreciated! Thanks,
>   ~Heather.
> 

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


Current Thread