that's not correct. <xsl:document/> is not usable. It first appears in the XSLT 1.1 working draft which is a dead end. I will probably be available in XSLT 2.0. But you can't use it in Cocoon, because the current version of Xalan delivered with Cocoon does neither support XSLT 1.1 nor XSLT 2.0. I don't know what you use, at least you seem to work with <xsl:document/>. The alternative for Xalan is the proprietary extension xalan:redirect.
Regards,
Joerg
Laurent Trillaud wrote:
Have a look on the <xsl :document>. I guess that it should be useful for you. This tag is like a fork for a stream. In your XSL file, when you use this tag you redirect the output.
... <p>some text redirect to the standard stream</p> <xsl:document href="request{$id}.xml" method="xml"> <!-- all inside document is redirected to href --> <xsl:apply-templates select="MyContentTag"/> </xsl:document> <p>another text redirect to the standard stream</p>
Laurent Trillaud
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : samedi 22 mars 2003 19:15
À : [EMAIL PROTECTED]
Objet : How to serialize a XML file to disk?
Hi all :)
We're doing a college work on cocoon and xml harvester potencial, and we
would like to know if we can grab a given XML file (on the web) to a
location on harddisk for a repository then work with it..
TIA
--
System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]