xsl-list
[Top] [All Lists]

Re: Saxon 8.4 Question

2005-07-31 12:16:24
If you are trying to write out a file with XSL 2.0, you want
xsl:result-document, not xsl:document.

Jay Bryant
Bryant Communication Services

----- Original Message ----- 
From: "Karl Koch" <TheRanger(_at_)gmx(_dot_)net>
To: "Mulberry list" <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Sunday, July 31, 2005 12:47 PM
Subject: [xsl] Saxon 8.4 Question


Hello all,

still stuggeling with the same problem I finally installed Saxon 8.4 which
is XSL 2.0 enabled. Here the stylesheet:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
  <xsl:output method="xml" omit-xml-declaration="yes"/>

  <xsl:template match="event">
    <xsl:variable name="eventNumber"><xsl:number/></xsl:variable>
    <xsl:document  href="{$eventNumber}.xml">
      <xsl:copy-of select="*" />
    </xsl:document>
  </xsl:template>

</xsl:stylesheet>

I got an error saying that "href" is not allowed in <xsl:document>. I
checked the Saxon documentation but could not find information about valid
paramters for xsl:document. I also had a look to the XSL 2.0 standard
document at W3C but I am still browing through it (as you all know it is
not
that short ;). Perhaps somebody knows what I need here in order to write
those files?

Any help would be greatly appreciated.

Kind Regards,
Karl

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
http://www.gmx.net/de/go/dsl

--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>