473,473 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with <xsl:document> using xalan (jdk 1.5)

Hi,

I was running the following in Netbeans 5.5:

sing com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl -
default JRE XSLT processor.
Creating
output/NcmiSigTest.java
Unsupported XSL element 'http://www.w3.org/1999/XSL/Transform:document'
Transformation finished.

Do I need an transformer that supports xslt 2.0? Or what am I missing ?

cheers,

//mikael

This is part of my xsl file:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
<xsl:output method="text" />

<!-- The main template loops over all of the
classes and creates a file for each one -->

<xsl:template match="/">
<xsl:for-each select="data/class">
<xsl:variable name="filename"
select="concat('output/',@name,'.java')" />
<xsl:message>Creating
<xsl:value-of select="$filename" /></xsl:message>
<xsl:document href="{$filename}" method="text">
<xsl:call-template name="junit-class">
<xsl:with-param name="class" select="." />
</xsl:call-template>
</xsl:document>
</xsl:for-each>
</xsl:template>

May 23 '07 #1
3 5035
Petterson Mikael wrote:
I was running the following in Netbeans 5.5:

sing com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl -
default JRE XSLT processor.
Creating
output/NcmiSigTest.java
Unsupported XSL element 'http://www.w3.org/1999/XSL/Transform:document'
Transformation finished.

Do I need an transformer that supports xslt 2.0? Or what am I missing ?
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
<xsl:output method="text" />
<xsl:document href="{$filename}" method="text">
<xsl:call-template name="junit-class">
<xsl:with-param name="class" select="." />
</xsl:call-template>
</xsl:document>

XSLT version 1.1 never made it to W3C recommendation (a standard) so
consider to move to Saxon 8 and XSLT 2.0 which has an
xsl:result-document instruction
<http://www.saxonica.com/documentation/xsl-elements/result-document.html>
--

Martin Honnen
http://JavaScript.FAQTs.com/
May 23 '07 #2
Martin Honnen wrote:
XSLT version 1.1 never made it to W3C recommendation (a standard) so
consider to move to Saxon 8 and XSLT 2.0 which has an
xsl:result-document instruction
Or a processor (such as Xalan) which supports the EXSLT redirect extension.

(EXSLT is a "standardized nonstandard" set of commonly supported
extension functions. If the thing you want to do is in EXSLT, most 1.0
processors which support it will do so via EXSLT so stylesheets using it
will be at least somewhat quasi-portable.)

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
May 23 '07 #3
Joseph Kesselman wrote:
Or a processor (such as Xalan) which supports the EXSLT redirect extension.
Documented here: <http://www.exslt.org/exsl/elements/document/index.html>
--

Martin Honnen
http://JavaScript.FAQTs.com/
May 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Johnny Lee | last post by:
Hi, I've met a problem while using anygui to create a GUI. Here is a brief example from Dave: ### def guidialog(): def ok(**kw): win.destroy() app.remove(win) #<snip>
1
by: ½Éº¸ÁØ | last post by:
Hello guys. I have a problem in using a public static library. The library file name is libminipar.a and it was written in c++. For using the public library, I first wrote test.c(and test.cpp)...
6
by: lgn | last post by:
I have test the following program, why the result is not 0 2 4 but 0 2 3? Can someone tell me why the same macro produce different result? Thanks! #include <stdio.h> #define max(a,b) ((a)>(b) ?...
2
by: henribastien | last post by:
I'm trying to return an array from a xalan extension but so far I have made no progress. What I would like to return is something like that <entry id="red">201</entry> <entry...
1
by: Anup | last post by:
In my form I and doing validations using 'Javascript' as I m using ASP1.1 and there is very less support for Validators there. //Code Behind private void Page_Load(object sender,...
2
by: lanegroups | last post by:
Dear experts, I'm trying to do the following using Xalan-C++ API 1. parse an XML document 2. evaluate an XML path 3. serialize the selected XML subtree 4. The new serialized XML fragment should...
6
by: palani12kumar | last post by:
hi everybody... I've a problem in using system() functions. my program was: int main() { clrscr() system("dir"); getch(); }
2
by: apoorva.groups | last post by:
Hi I am facing problem while using regexec function. Ex: String = "abc_def_hig" sub string = "def" regexc if I use regexec the it will find the sub string in string and it will return 0....
0
by: Developer111 | last post by:
Hi, I converted a VB6 application in VB.net 2008 by using VS 2008 conversion wizard I have encountered a problem in using Tab control in VB.net. I used “Microsoft TabStrip Control 6.0 (SP6)” in VB...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.