xalan

Java/XSLT: Cannot find a matching 1-argument function

隐身守侯 提交于 2020-01-11 08:29:24
问题 I get the following error: javax.servlet.ServletException: Cannot find a matching 1-argument function named {http://exslt.org/dynamic}evaluate() at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774) The top of my xslt file is <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dyn="http://exslt

Error when running XSLT with eclipse

北城以北 提交于 2020-01-06 01:36:36
问题 When I use eclipse xsl development tools to run xsl transformation, it reports the following error. But using saxon there is no problem. SIt would be appreciated if some expert can provide possible solution. 12:44:14,714 INFO [main] Main - javax.xml.transform.TransformerFactory=null 12:44:14,725 INFO [main] Main - java.endorsed.dirs=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/endorsed 12:44:14,744 INFO [main] Main - launchFile: /gpfs/work01/work/scratch/users/feifan_liu/.metadata/

How to include a call to JavaScript within XSLT?

旧时模样 提交于 2020-01-04 13:25:23
问题 I am trying to call JavaScript inside XSLT but it keeps on failing. I am using the Xalan namespace. I'm calling Java as well and that works no problem, but for some reason the JavaScript doesn't. <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xalan/java" xmlns:xalan="http://xml.apache.org/xalan" xmlns:counter="MyCounter" extension-element-prefixes="counter"> <xsl:template match="/"> <xalan

Incremental/streaming XSLT transformations?

偶尔善良 提交于 2020-01-02 07:11:28
问题 I'm normally using the XSLT support in the JDK (JDK 7) for XSLT transformations. Recently I've come across a rather large XML document, and applying XSLT transformations to this (even very basic ones) causes a lot of memory to be used. I've been careful to do all my processing streaming, but it seems the XSLT engine in the JDK (which appears to be a modified Xalan) always builds up a DOM in memory first. Obviously this is not what I want. Now I found out that the Xalan which is available

Incremental/streaming XSLT transformations?

拜拜、爱过 提交于 2020-01-02 07:11:27
问题 I'm normally using the XSLT support in the JDK (JDK 7) for XSLT transformations. Recently I've come across a rather large XML document, and applying XSLT transformations to this (even very basic ones) causes a lot of memory to be used. I've been careful to do all my processing streaming, but it seems the XSLT engine in the JDK (which appears to be a modified Xalan) always builds up a DOM in memory first. Obviously this is not what I want. Now I found out that the Xalan which is available

Xalan Configuration JBOSS

和自甴很熟 提交于 2019-12-25 06:48:05
问题 In Using Xalan I get this error when I call a function of this library (For example : PrintTraceListener ptl = new PrintTraceListener(pw) ) I got this error in console Caused by: java.lang.ClassNotFoundException: org.apache.xalan.trace.PrintTraceListener from [Module "deployment.ReceptionPartenairesSATest.ear.sa.war:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) .... Caused by: java.lang.NoClassDefFoundError: org/apache/xalan

Increase in Metaspace with TransformerFactory's XSLT Transformer

僤鯓⒐⒋嵵緔 提交于 2019-12-25 01:41:46
问题 When I run the following code with multiple different requests, the java metaspace is getting increased. public String applyXsltOnXml(String xmlString, String xsltInput) throws TransformerException { String result = null; try (StringReader stringReader = new StringReader(xmlString); StringWriter writer = new StringWriter()) { TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(new StreamSource(new StringReader(xsltInput)));

Spring - web pages using XSLT

允我心安 提交于 2019-12-24 02:25:34
问题 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 questions here and here). In book: 'Spring in Action' is described solution by extending AbstractXsltView. Is better way than AbstractXsltView which would let me choose Saxon processor? Is better way than execute transformation from .jsp files?

passing xml nodes/documents/fragments as parameters to xslt

我的未来我决定 提交于 2019-12-21 11:35:15
问题 I tried to pass a w3c.dom.Document , Element and NodeList as parameters to a xslt transform. I want to be able to process it within the xslt: <xsl:param name="links" /> <xsl:template match="/"> <record> <xsl:for-each select="$links/*"> <test /> </xsl:for-each> </record> </xsl:template> I pass the parameter as: Document params = createLinksParams(links); transformer.setParameter("links", params); I get this exception: 'Invalid conversion from 'com.sun.org.apache.xerces.internal.dom

getting exception while doing xslt transformation through java [duplicate]

旧时模样 提交于 2019-12-20 07:42:40
问题 This question already has an answer here : getting error in xslt transformation through java (1 answer) Closed 4 years ago . I have the below java class in which i am using xstream rite now as you can see that in the below java class i am generating xml from the object InvoiceReferenceNotificationMessage invoiceReferenceNotificationMessage = new InvoiceReferenceNotificationMessage(); invoiceReferenceNotificationMessage.setInvoiceReference("SM/829709/0315"); invoiceReferenceNotificationMessage