I modified it to:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:xalan="http://xml.apache.org/xalan"
extension-element-prefixes="write">
...
Now I get the error: Cannot resolve namespace prefix "write"
I searched for node sets at xalan but could only find more people who have
problems... Is this really working. I think I will shortly write a Java
program on my own who does that. XSLT seems not mature enought for this
rather simple operation...
Karl
--- Ursprüngliche Nachricht ---
Von: "Aron Bock" <aronbock(_at_)hotmail(_dot_)com>
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: RE: [xsl] Xalan question
Datum: Sun, 31 Jul 2005 15:22:51 +0000
You need to bind the xalan prefix. Google "xalan node-set" for an
example.
For details on "write", see
http://xml.apache.org/xalan-j/apidocs/org/apache/xalan/lib/Redirect.html ;
here the prefix used is "redirect"
--A
From: "Karl Koch" <TheRanger(_at_)gmx(_dot_)net>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: "Mulberry list" <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] Xalan question
Date: Sun, 31 Jul 2005 17:14:28 +0200 (MEST)
I am using Xalan J Version 2.5.2. I want to run the following 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="book">
<xsl:variable name="a"><xsl:number/></xsl:variable>
<xalan:write file="{concat($a,'.xml')}">
<xsl:copy-of select="*" />
</xalan:write>
</xsl:template>
</xsl:stylesheet>
I run Xalan with the following commandline:
set CLASSPATH=D:\xalan.jar;D:\bsf.jar
java org.apache.xalan.xslt.Process -IN input.xml -XSL SplittingUp.xslt
I get as an output: The prefix "xalan" for element "xalan:write" is not
bound.
What does that mean? Does somebody here use Xalan for processing with
XSLT
extension. I am despeatly looking for a solution....
Karl
_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--~------------------------------------------------------------------
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>
--~--
--
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>
--~--