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
2
votes
1 answer

How to use XSL functions with Xalan?

This is my XSL:
yegor256
  • 102,010
  • 123
  • 446
  • 597
2
votes
1 answer

syntax highlighting in docbook

I use xalan-j_2_7_1 and docbook-xsl-1.76.1 to generate documentation. I saw in hibernate documentation, that they use syntax highlighting in there code. How can i do it in my doc?
Daniel
  • 417
  • 1
  • 7
  • 14
2
votes
1 answer

Alternative XSLT processor to Apache Xalan

I am currently using the Apache Xalan XSLT processor in my Java application, but I would like to use some alternative solution which supports use of extension functions. Xalan seems to be out of date and buggy. I know of Saxonixa Saxon, but it is…
mstaal
  • 590
  • 9
  • 25
2
votes
1 answer

Getting org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR adding root node to document

I'm trying to create a simple XML document and am receiving the above error when adding the root element to the document. I only have the one root element (the first element created for the document) and the error throws on the first append_child()…
stu33
  • 33
  • 3
2
votes
1 answer

Spring - web pages using XSLT

I'm new in XSLT and I would know what is the best solution to integrate XSLT into Spring web application. I found quick example here, but all in all I had troubles with proper character encoding and switching to Saxon processor (I refer to my former…
bontade
  • 3,194
  • 6
  • 48
  • 75
2
votes
2 answers

TransformerFactory.newInstance().newTransformer(streamSource) returns null

How could that be that TransformerFactory.newInstance().newTransformer(streamSource) returns null. According to javadoc this is not…
Archer
  • 5,073
  • 8
  • 50
  • 96
2
votes
1 answer

Reusing xalan transformer causing its extension functions break

I am using xalan 2.7.1 to validate my xml docs with xslt style sheet. It works fine for the first document and returns error message in case of error along with correct line and column number of xml source by making use of NodeInfo.lineNumber and…
WSK
  • 5,949
  • 8
  • 49
  • 74
2
votes
0 answers

org.apache.xalan.processor.TransformerFactoryImpl not found

I am getting the below error while trying to deploy my application on a Apache Tomcat server. I am using Apache Tomcat 8.0.32 and JDK 1.8.0_131. SEVERE: Servlet [portalsim] in web application [/portalsim] threw load()…
ASG
  • 41
  • 1
  • 3
2
votes
1 answer

Capturing an exception from Xalan

I have a Java program (running in JDK 1.5 for now) which is getting a strange exception while processing an XSLT stylesheet using Xalan. I'm not looking for how to fix the exception: there's plenty of information online about that. I just want to…
Dan
  • 10,990
  • 7
  • 51
  • 80
2
votes
0 answers

Javax XSLT transformer setParameter() not working for custom types

I have a very simple XSLT transformer in Java: this.transformer = TransformerFactory.newInstance().newTransformer(xsltTransformerSource); this.transformer.setParameter("testobject", new MyClass()); Here's my XSLT:
bluegene
  • 21
  • 2
2
votes
2 answers

XSL Transform cannot invoke user defined Java Method

I have the following XSL which defines a namespace for my Java Class. In a nutshell I'm trying to point to a different resource bundle depending upon a value in my XML file (I know Resource Bundles are really for internationalization but why…
Anna Jones
  • 21
  • 1
  • 2
2
votes
1 answer

Using Java to perform XSLT which calls Java function

I am new to XSLT. Previously, I was used to using commandline to perform XSLT. Just like this: @echo off set XALAN_JAR=%OPENCCG_HOME%\lib\xalan.jar java -classpath .;%XALAN_JAR% org.apache.xalan.xslt.Process -IN recommend_person.xml -XSL planner.xsl…
Zhao
  • 2,043
  • 1
  • 17
  • 36
2
votes
2 answers

Prevent dex core-library error for xalan with gradle 2.0.0

I try to get xalan 2.7.2 working with Android using gradle 2.0.0 (gradle wrapper 2.10) I have added xalan 2.7.2 and also tagsoup 1.2.1 to my gradle dependencies in order to get a valid SAX2DOM document from sloppy HTML sources But: If I run the…
devnull69
  • 16,402
  • 8
  • 50
  • 61
2
votes
1 answer

Using xslt 1.0 I want to add days to current date when is less than current date. I'm using java SimpleDateFormat for comparison

Is this valid using java syntax for xslt? I do not have an xml transformation tool that supports java for my validation so I'm not sure if the syntax is correct. If not could anyone please let me know if there is any other approach that I can…
Max
  • 45
  • 1
  • 7
2
votes
1 answer

Select Child of a Variable in XSLT2

I am trying to select a child node of a variable with this XSLT2 script: en
Christoph Walesch
  • 2,337
  • 2
  • 32
  • 44