473,804 Members | 3,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<xsl:document > and xalan

I want to use the <xsl:document > XSLT command with xalan,
but I get the following error message

--------
XSLT Error (javax.xml.tran sform.Transform erConfiguration Exception):
javax.xml.trans form.Transforme rException:java x.xml.transform .TransformerExc eption:
xsl:document is not allowed in this position in the stylesheet!
--------

The same transformation works fine with saxon ! What should I do ?

Thanks,
--
Papastefanos Serafeim
Jul 23 '05 #1
1 1746


Papastefanos Serafeim wrote:
I want to use the <xsl:document > XSLT command with xalan,
but I get the following error message

--------
XSLT Error (javax.xml.tran sform.Transform erConfiguration Exception):
javax.xml.trans form.Transforme rException:java x.xml.transform .TransformerExc eption:
xsl:document is not allowed in this position in the stylesheet!
--------
XSLT 1.0 does not have xsl:document, see the commands listed at
<http://www.w3.org/TR/xslt#element-syntax-summary>
The same transformation works fine with saxon ! What should I do ?


so if Saxon supports that then probably as an extension or as part of
XSLT 1.1 (which never became a recommendation) .
Some of the Xalan extensions are listed here:
<http://xml.apache.org/xalan-j/extensionslib.h tml>
but I don't see anything like xsl:document there.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

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

Similar topics

3
3793
by: Rainer Herbst | last post by:
Hi *, please help me solving the following problem: I have an XML document containing elements like <dir:directory xmlns:dir="http://apache.org/cocoon/directory/2.0" name="pressemitteilungen" lastModified="1064833858000" date="29.09.03 13:10" size="4096" sort="name" reverse="false" requested="true"> <dir:file name="first.xml" lastModified="1064833858000" date="29.09.03 13:10" size="62"/>
0
1687
by: Sparko | last post by:
My Xml is as follows; <root> <st id="1"> <rt id="1"> <cr id="1" ca_w="" ca_x="" ca_y="" ca_z="" other attribs> <ct some attribs> <te some attribs /> <te some attribs />
1
1430
by: Vijay singh | last post by:
Hi wonder if anybody can clear by doubt XML file : <score id="1"> <film>A Little Princess</film> <composer>Patrick Doyle</composer>
3
1959
by: b0yce | last post by:
Hi Group, I think I have found a problem with the <xsl:element> when being transformed by the .NET xmlTransform class. When using XmlSpy for development and debugging, the <xsl:number> subsitutes the position of the node correctly as I expected. This is fine with MSXML 3.0 & MSXML 4.0 plus the XmlSpy internal engine. I have been able to reproduce using a simpler Xml and Xsl to demonstrate; XML
5
2337
by: Luke Vogel | last post by:
Hi all, Probably a really basic question, but I cant find an answer ... I have an xml file of books something like: <product> <isbn>0-735-61374-5</isbn> <title>Microsoft Visual Basic Step By Step</title> <author>Michael Halvorsen</author> <subject>Programming</subject>
5
3416
by: jhurrell | last post by:
I have been having some trouble getting my XSL style sheet to parse correctly. I have some XML outputted from an SQL-Server, that I then need to turn into multiple HTML files. This I have done with moderate success using Saxon and <xsl:result-document>, but Saxon is throwing an error and I don't know how to resolve it. Maybe someone can offer some advice? This is a long question, for which I apologise... OS= Windows XP Pro, Saxon=8.8 XML...
4
2114
by: C.W.Holeman II | last post by:
I am using Firefox 2.0.0.3 on MSWindows. I have an XML file http://emle.sourceforge.net/emle020000/testb.xml which invokes an XSLT file http://emle.sourceforge.net/emle020000/testb.xsl <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet href="testb.xsl" type="text/xsl"?> <z xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <x/> </z>
3
5064
by: Petterson Mikael | last post by:
Hi, I was running the following in Netbeans 5.5: sing com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl - default JRE XSLT processor. Creating output/NcmiSigTest.java Unsupported XSL element 'http://www.w3.org/1999/XSL/Transform:document' Transformation finished.
4
11543
by: Hoi Wong | last post by:
I have an XSLT script collection that converts messed up XML to usuable XML. Instead of generic template matching, I want to establish a context node for some branches so that I don't have to rely on absolute path. Here's a simplified version of my work: : <xsl:include href="common.xsl"/> <xsl:template match="/">
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9587
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.