[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: [xsl] newbie: multiple output files with xsl:document
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 6 Jun 2002 19:11:16 +0100

Microsoft WD-xsl doesn't even support XSLT 1.0, let alone the XSLT 1.1
draft which introduced xsl:document.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Heather Adler
> Sent: 06 June 2002 17:06
> To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: [xsl] newbie: multiple output files with xsl:document
> 
> 
> > 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
> 


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



Current Thread
Keywords