Questions tagged [xalan]

Xalan is an open source XSLT 1.0 processor with implementations in Java and C++.

Xalan is an open source XSLT 1.0 processor with implementations in Java and C++.

409 questions
4
votes
1 answer

Unable to create XSLT extension in Javascript or Jython with Ant

I am using Ant 1.8 to run some XSLTs on documents in a folder. Ant uses Xalan to process the XSLT. The jobs run ok, I get a bunch of transformed output files corresponding to the input ones. The problem is when trying to extend XSL with either…
gotofritz
  • 3,341
  • 1
  • 31
  • 47
4
votes
5 answers

JUnit testing with exception expectations (multiple asserts)

I'm testing a WeekConverter for Xalan use and wondering what is my test exactly doing. :D Having the following test method: @Test(expected = IllegalArgumentException.class) public void testConvertTwoDigitYearWithWrongInput() { WeekConverter…
Ed Michel
  • 898
  • 1
  • 11
  • 23
4
votes
4 answers

How to prevent xalan.jar that has META-INF\services\javax.xml.transform.TransformerFactory from taking over JDK 1.6 built in Xalan implementation?

Consider this code (based entirely on flying saucer's "getting started" code, their rights reserved): package flyingsaucerpdf; import java.io.File; import java.io.FileOutputStream; import java.io.OutputStream; import…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
4
votes
1 answer

XSLT in java without using the JRE's XML utils

It looks as though the JDK provides its own shaded version of apache xalan. I have found a bug in producing XML with an XSLT (bug is a new line and indentation is added within some cdata sections). This is fixed in the unreleased jdk12. I would like…
Luke
  • 884
  • 8
  • 21
4
votes
2 answers

EXSLT: No more DTM IDs are available

I've been searching for an answer to this problem all day long. I'm creating a stylesheet for a moderate-sized XML document (~1.5MB, ~1000 elements), which is giving me a lot of trouble. It's about creating an event-time line graph for different…
Thor Jacobsen
  • 8,621
  • 2
  • 27
  • 26
4
votes
1 answer

How can I reference an XSD off the CLASSPATH for validating my XML?

As part of my XML transform (using XSL), I'm creating an attribute for the schema location so the the result of the transform can be validated. However, as I'm trying to run this as a self-contained test I want to be able to set the appropriate…
Martijn Verburg
  • 3,287
  • 21
  • 26
4
votes
1 answer

ERROR: 'The first argument to the non-static Java function 'evaluate' is not a valid object reference.' when using TrasformFactory

I am trying to transform an xsl + xml to xml (for later on transforming it into a pdf using FOP library). The JDK I am using is 1.5, and there is no way I can use another (that is what the company I work in is using). I read that the xalan jar of…
RBY
  • 101
  • 1
  • 2
  • 3
4
votes
3 answers

Splitting XML file into multiple at given tags

I want to split a XML file into multiple files. My workstation is very limited to Eclipse Mars with Xalan 2.7.1. I can also use Python, but never used it before. Doe
Roger Sánchez
  • 87
  • 1
  • 1
  • 8
4
votes
2 answers

Replace Xalan with Saxon for XSL with Java-Extension

I have several XSL-transformations in a business process with Xalan where one of these steps produces XSL-Stylesheets with static Java extension functions. I want to replace Xalan with Saxon (not only for performance issues but for the use of XSLT2…
HopFlash
  • 106
  • 1
  • 8
4
votes
3 answers

jboss 7.1 xalan issue?

I am attempting to create an Apache Jena based application on JBoss7. Apache Jena uses Xalan 2.11.0 JBoss 7 ships with 2.7.1 When I attempt to call the application I get an exception, the root of which…
cWarren
  • 453
  • 5
  • 11
4
votes
2 answers

XSLT: How to transform partially escaped XML with XSLT 1.0 and XALAN processor?

I have this: <![CDATA[<comprobante xmlns:xsi="http://www.w3.org/2001/XMLSchema"> <inicioCFD> <idArchivo>182NAI053402</idArchivo> …
jechaviz
  • 551
  • 1
  • 9
  • 23
4
votes
1 answer

Save data from XSLT generated from to an XML file

i have a trouble while trying to save some data to XML using XSLT. So the problem is that everything seems to be ok, no exceptions are thrown, log files are also clean, but I can't see any changes in XML file. And I can't Here is my code for saving…
edthehead
  • 145
  • 2
  • 9
4
votes
2 answers

java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI

I am executing a class in eclipse through main, and as I result I am getting this error java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI I am using jRE6. Please help me in solving this
Sashi Kant
  • 13,277
  • 9
  • 44
  • 71
4
votes
3 answers

Pass xml document as parameter to xsl

I have read a lot of post and tried a lot of things but still can't get the xsl to find values in the parameter. I started with java's sun xalan and never got it working so I switched to saxon to no avail. I want to combine two xml docs into one…
Justin Cox
  • 326
  • 4
  • 22
3
votes
2 answers

Calling Java function via XSLT in JBoss throws transformer exception (works in tomcat)

I have a public static 0 argument function in Java that I am trying to call through XSLT in a webapp. When I run it in tomcat (5.5.34), it works fine, but when I run it in JBoss (6.1 final) I get the error TransformerException: Instance method call…
user1111284
  • 886
  • 1
  • 6
  • 23
1 2
3
27 28