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

Load external Java method from inside of a XSL stylesheet with JDK internal Xalan and SecurityManager

In our project we currently moved to Java 8 and want to use now the internal XML libraries instead of additional ones. For that we removed e.g. our xalan.jar from our classpath. This leads to ClassNotFoundExceptions when trying to render our XML…
3
votes
2 answers

dead class loaders not garbage collected from permgen

I see the following from "jmap -permstat": 0x000000077736cce0 12 173472 0x00000007723425d0 dead com/sun/org/apache/xalan/internal/xsltc/trax/TemplatesImpl$TransletClassLoader@0x00000007c83bea70 0x0000000777168a20 12 …
fruitJuice
  • 1,281
  • 2
  • 11
  • 22
3
votes
2 answers

Leave entity intact in XML + XSLT

I transform XML to (sort of) HTML with XSL stylesheets (using Apache Xalan). In XML there can be entities like —, which must be left as is. In beginning of XML file I have a doctype which references these entities. What should I do for entity…
Kuroki Kaze
  • 8,161
  • 4
  • 36
  • 48
3
votes
3 answers

error: failed to read artifact descriptor for xalan

I am getting an error "failed to read artifact descriptor for xalan:serializer:jar 2.7.1 while creating a domain class using "grails create-domain-class Employee" command on command prompt. I am currently using Grails 2.3.7 . Please help me to…
user3725659
  • 31
  • 1
  • 2
3
votes
0 answers

Xalan Transformer factory not found in JBoss eap 6.1

We have an ear application with a singleton ejb which sets up JAXP configuration. We set the TransformerFactory system property via code, with System.setProperty(): System.setProperty("javax.xml.transform.TransformerFactory",…
landal79
  • 1,520
  • 1
  • 11
  • 26
3
votes
4 answers

Search XML files with xalan in Java

I need to write a java application that does a keyword search within the tags and the actual data from many xml files. From my research online I get the feeling i have to use xalan, but I can't figure out how to use it or what it does. Could…
Shanon
  • 31
  • 2
3
votes
1 answer

Xalan-c++: returning a node with XPath (reference to local pointer)

I am new to Xalan and Xerces and I try to select one specific node by an XPath. It should be possible to return the xml data by reference but also need to be changed - thats why I saved it as DOMDocument to be able to access the data via xerces to…
KaHo
  • 33
  • 4
3
votes
2 answers

How to call an external java function with Xalan processor

I'm having trouble to call an external java function in my XSL code with Xalan processor. The error I get is : Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodException: For extension function, could not find method…
Jean-François Savard
  • 20,626
  • 7
  • 49
  • 76
3
votes
2 answers

XSLT output is verbose and messy

I'm starting to use XSLT to temporarily support the current 1.0 version of our webservice while clients transition to 1.1, converting old calls to the new format. For such change, I need to change the namespace, include a node and rename another.…
user2479523
  • 103
  • 1
  • 1
  • 5
3
votes
1 answer

XSLT 2.0 xsl:value-of separator attribute not working in Java 1.7 with apache.xalan

The XSLT 2.0 xsl:value-of element separator attribute appears to not be working with the built-in Java 1.7 XSLT processor. Here's the example (slightly edited from Chapter 4 of XSLT 2nd ed. to reduce size): XML file
Marcus Junius Brutus
  • 26,087
  • 41
  • 189
  • 331
3
votes
1 answer

how to switch jasper reports from xalan to saxon?

We use jasperreports 4.1.1 in our project and it works fine but recently we've decided to switch to xslt 2.0 and the first thing i did - i changed xalan (which doesn't have xslt 2.0 implementation) to saxon. But the first report i run threw me…
mykola
  • 1,736
  • 5
  • 25
  • 37
3
votes
2 answers

Using a different HTML template for the same XSL stylesheet

Is it possible to use a different HTML layout for the same XSLT stylesheet? I have been reading up on XSLT and most examples i see show that the HTML code is actually embedded within the stylesheet. Is it possible to use the same stylesheet for…
ziggy
  • 15,677
  • 67
  • 194
  • 287
3
votes
2 answers

Work with java collections in XSL using xalan extension

I want to iterate ArrayList and put all strings to output tree, but have no any idea how to do it. java method: public ArrayList getErrorList(String name) { if (errorMap.containsKey(name)) { return errorMap.get(name); …
bsiamionau
  • 8,099
  • 4
  • 46
  • 73
3
votes
2 answers

How can I add jar files to the CLASSPATH in Linux?

I am pretty new with this, I need to install an application (XSLTC) on a Linux machine (I am using PuTTy). I read the instructions here. I quote: To use XSLTC, simply put xalan.jar, serializer.jar, xml-apis.jar, and xercesImpl.jar on your…
user1567604
  • 41
  • 1
  • 1
  • 2
3
votes
1 answer

Looking options for xalan TransformerFactoryImpl

I m using SAX based XML parser, things are working fine but I'm getting the following warning message in log com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl is Sun proprietary API and may be removed in a future release …
Chinmay
  • 180
  • 1
  • 2
  • 13