XSL transform sort problem in 1.5
I am having problems applying an XSL transform to some XML data I have under the 1.5 JRE.
Under 1.4.2 (and in several tools and browsers), the transform works correctly. In 1.5,
<xsl:sort...> directives don't seem work correctly. Here's a simplified version of my
code. Assume that the generateXMLReport outputs an XML document to a stream.
public void generateHTMLReport( OutputStream out, String strXslSheet ){
File f = new File( strXslSheet );
if( f.exists() ){
ByteArrayOutputStream bos = new ByteArrayOutputStream();
// Generate the XML data we will work from
generateXMLReport( bos );
bos.flush();
// Convert the XML to HTML by applying an XSL transform
ByteArrayInputStream bis = new ByteArrayInputStream( bos.toByteArray() );
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer( new StreamSource( strXslSheet ) );
transformer.transform( new StreamSource( bis), new StreamResult( out ) );
}Here's an XSL template:
<xsl:template name="totalTable">
<xsl:param name="matchSet"/>
<xsl:variable name="maxValue">
<xsl:for-each select="$matchSet">
<xsl:sort select="total" data-type="number" order="descending"/>
<xsl:if test="position() = 1">
<xsl:value-of select="number( total )" />
</xsl:if>
</xsl:for-each>
</xsl:variable>
</xsl:template>If I remove the sort directive, I get the first value in the list, as I would expect.
Other 'for-each' loops behave similarly. The problem in 1.5. When I run against 1.4.2,
the transformation works fine.
Show us the code please. Not the WHOLE code, just an example that demonstrates what you're seeing. I've never seen the problem you're encountering, but I rather doubt that it's a failing in the api. More than likely it's a semantic of how you're doing the listener but that's a guess on my part. Let's see what you have and go from there.
PS.
Similar Messages
-
XSL Transformation enconding problem?
Hi everybody.
I have a strange problem with JDev 9.0.2.829 concerning XSL Transformation:
I just tried to make the step from JDev 3.2.3 to 9i, imported my existing project and set up JDev 9 for use with XalanJ2 and Xerces2. Everything works fine except:
If I transform XML data to HTML that contains characters with an ASCII code >127 the whole string appears multiple times (2x or 3x) in the generated HTML.
The data is read from an Oracle DB with UTF8 encoding, all my stylesheets and JSPs are UTF-8 encoded. JDev9 is set to use UTF-8 encoding.
No compilation errors, no warnings.
The same code and stylesheets work perfectly in JDev 3.2.3, deployed into Topmcat 4.0.4 and IBM WebSphere 3.5.4.
What am I missing?
Thanks in advance!
Ralf SteppacherOK, I found the culprit.
The JSPWriter is broken and produces the faulty output when fed with UTF-8 encoded character data. The problem disappears when all character data is buffered in a ByteArrayOutputStream first (without a special encodung schema given) and then written as a string through the JSPWriter.
Ralf -
Weblogic 6.0 XSL Transformation whitespace Problem
I am having a problem with the HTML that is coming out of my XSL
transformation in Weblogic 6.0, service pack 2.
The problem occurs in a place where the </TD> tag is preceded by a
carriage return in the HTML code that is generated. This causes an
extra blank line in the browser (the famous "whitespace bug" in the
browsers).
I was able to control this when I created my own HTML by moving the
</TD> tag up to the previous line. I no longer have this control
since I am using XML and XSL - Weblogic is doing the transformation to
HTML for me. Even if I move the </TD> tag in the XSL, the HTML that
is outputted reformats it and puts the </TD> tag on the next line.
Has anyone else seen this problem? I'm wondering if there is some way
that you can tell the transformer to concatenate the HTML?
Any info would be appreciated.
Thanks,
Larry[att1.html]
-
Hey guys, this is one of my xml-elements:
Jaspreet Sohi 12 18 Juliane Lenz 11 17 Sophie Charlotte Stender 10 15 Rosbeh Hamidzadeh Khayyat 12 17 Lion Stoldt 12 17 Mats Lucas Meincke 6 8 Bero Luke Vincent Ernst 6 8 Cedric Roth 6 8 Soner Cantay 6 8 The following XSL Transformation I use once for transforming all "m" tags and once in order to transform all "j" tags. Please imagine the CSL-code below to be duplicated exactly. Only the "jungs"-table-Tag is replaced by "mädchen" and all underscores _j are replace by _m. As well all "select="j[@..." parts are replaced by "select="m[@...". 1 2 3 The code is very easygoing I think and not difficult to understand. As I said, I use it twice - for both transformations. The very, extremely weird thing, my problem, is that one transformation works perfectly in InDesign and a table is created for all "kategorie"-tags (all is set within a for-each loop). But the second script does not work! I simply do not get this I can't understand it. I've tried more than anything. InDesign sais (in German, so translated based on assumption) "jungs is an invalid table element or is displayed in wrong order". The second strange thing is that I can replace my "aid:trows" attribute by any number, e.g. "10" and immediately the script works fine (as there are never more than 6 "j" tags in my XML so that never the table has more than 6 rows"). But it does not want to work correctly with the actual number, my variable "rows_j". These are my variables: They are all defined before the tables for m and j are created. So finally, why (the heck) is one table created and interpreted perfectly whereas the second - immediately following the first in the XSL.script as an EXACT copy of the first - results in an error? As i've already said, I've tried really everything. For example the script works also when one of the parts "" is randomly deleted from the script. Removing one of these parts directly makes the script working. Just one of my attempts to understand the thing but this has only shown that none of these parts "cell to end-for-each" includes an error. I'm really desperate and looking forward to being rescued by one of you geniuses :)Hah, No worries. The forum software is, well, different.
What would be better, though, would be a sample ID file, any XSLT/XLT files you use, and a bit of data exactly as you have it (pre-transform state). ZIP it up, upload to say dropbox.com and feel free to send me a private message for the download link.
Too many times there is something different between samples pasted into a post and the real thing that it is sometimes less useful time-wise. I'll keep it private, of course. Then we can communicate via PMs or email until we can (hopefully) arrive together at a solution, then post what that solution is in the forum to benefit others.
Thank you, Mike -
Problems with xsl transformation
Hi,
I have an XSL to transform an XML to HTML code.
I want my HTML to be ACCESSIBLE.
All is working ok, but the <html> tag have two or three attributtes that make de code no ACCESSIBLE.
This is a part of the XSL code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
<xsl:output method="xhtml" version="1.0" encoding="UTF-8" indent="yes" standalone="no"/>
<xsl:include href="barraSuperior.xsl"/>
<xsl:include href="cabecera.xsl"/>
<xsl:include href="menu.xsl"/>
<xsl:include href="enllacosDestacats.xsl"/>
<xsl:include href="contenido.xsl"/>
<xsl:include href="barraBanners.xsl"/>
<xsl:include href="pie.xsl"/>
<xsl:variable name="homeWeb">http://172.16.67.119:8080/Biblioteques/xslt/V53CapSetmana</xsl:variable>
<xsl:variable name="idioma"><xsl:value-of select="xmlData/config/idioma"/></xsl:variable>
<xsl:variable name="literals" select="document(concat($homeWeb,'/traduccions/',$idioma,'.xml'))"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$idioma}" lang="{$idioma}">
<head>
<title>
<body>
<xsl:call-template name="barraSuperior"/>
<xsl:call-template name="cabecera"/>
<div id="wrapper">
<div id="columna0">
<xsl:apply-templates select="xmlData/menuLateral/contingutVignette/contingut/llista"/>
</div>
<xsl:call-template name="contenido"/>
</div>
<xsl:call-template name="pie"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
This is a part of the HTML result:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="ca" lang="ca">
<head>
<title>B cap de setmana</title>
</head>
<body>
</body>
I want the <html> to be like this:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ca" lang="ca">Use the exclude-result-prefixes attribute in your xsl:stylesheet element.
-
XSL:SORT not supported in current XSL-transformator
In iCS 5.1 the use of the xsl element sort (<xsl:sort>) in an xsl stylesheet does not sort the set of processed nodes (<xsl:for-each ...>) as we would expect it, but simply copies the xsl element <XSL:SORT> to the output stream at every location, where it is defined in the stylesheet (at the start of the output of each processed node) . This behavior is not according the W3C XSLT 1.0 specification. Are there any solutions available?
Thanks in advance,
Jakob.This question is related to xsl rathar than java/xml.Then it would be better if you asked it in a place where experts in XSL answer questions. Check out the Mulberry mail-list.
This sort DOES NOT work (used xsl variable in xsl:sort)
<xsl:for-each select="PerformanceVO">
<xsl:sort data-type="number" select="$sortColumn"
order="ascending"/>
</xsl:for-each> I am pretty sure that must be an XSLT FAQ. I haven't looked but I bet you will find it in Dave Pawson's FAQs. -
XSL transformation with xsl:import generates exceptions
I am using the Schematron's basic XSL file basic-schematron.xsl to validate the XML format of one of our data files. The XSL file looks something like this
================
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias">
<xsl:import href="skeleton1-5.xsl"/>
<xsl:template name="process-prolog">
<axsl:output method="text" />
</xsl:template>
==================
But, the validation fails while trying to run the transformation on my Schematron input file using this basic-schematron.xsl with java.lang.NoSuchMethodError:
======= OUTPUT ============
Markup Error: no match attribute on <key> outside <rule>
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: GregorSamsa.process$dash$root(Lcom/sun/org/apache/xalan/internal/xsltc/DOM;Lcom/sun/org/apache/xml/internal/dtm/DTMAxisIterator;Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;ILjava/lang/Object;)V
at GregorSamsa.applyTemplates()
at GregorSamsa.applyTemplates()
at GregorSamsa.transform()
at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:594)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:640)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
at com.solipsa.xsdvalidator.XSDValidator.validateSchematron(XSDValidator.java:137)
at com.solipsa.xsdvalidator.XSDValidator.validate(XSDValidator.java:181)
at com.solipsa.xsdvalidator.XSDValidatorUI.jButton1ActionPerformed(XSDValidatorUI.java:244)
at com.solipsa.xsdvalidator.XSDValidatorUI.access$300(XSDValidatorUI.java:21)
at com.solipsa.xsdvalidator.XSDValidatorUI$4.actionPerformed(XSDValidatorUI.java:140)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
============= OUTPUT ==============
I tried the individual JAXP 1.3 for J2SDK 1.4.2 (Using the -Djava.endorsed.dirs JVM param) and tried the JDK 1.5.0_02 which has JAXP 1.3 inbuilt and they all fail.
I tried the above with separate Xalan/Xerces jar files, and then it works fine.
The problem seems to be somthing specific to the JAXP 1.3 environment. I can provide more details, if required. Any help is highly appreciated.One morning your code woke up and found it had been transformed into a giant insect.
But seriously, here's the name of the method that doesn't exist:GregorSamsa.process$dash$rootIs GregorSamsa your class? Maybe your server has an old version of it which is missing that method? (Or: those $ signs look strange to me, maybe they are a mistranslation of some other character?) -
XSL Transformation between arrays
Dear all
I create to XSD for my variables:
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="http://www.asre-andishe.com/Inspec/General"
targetNamespace="http://www.asre-andishe.com/Inspec/General"
elementFormDefault="qualified">
<xsd:complexType name="AgentArrayType">
<xsd:sequence>
<xsd:element name="Agent" type="ns:AgentType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AgentType">
<xsd:sequence>
<xsd:element name="user" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Agent" type="ns:AgentType"></xsd:element>
<xsd:element name="AgentsArray" type="ns:AgentArrayType"></xsd:element>
</xsd:schema>
and the other one:
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="http://www.asre-andishe.com/Inspec/DetermineInspec/retrive/relam"
targetNamespace="http://www.asre-andishe.com/Inspec/DetermineInspec/retrive/relam"
elementFormDefault="qualified">
<xsd:complexType name="RelamAgentType">
<xsd:sequence>
<xsd:element name="user" type="xsd:string" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RelamAgents" type="ns:RelamAgentType"></xsd:element>
</xsd:schema>
I create two empty variable and then initialized the second variable
<RelamAgents>
<user>john</user>
<user>david</user>
<user>jack</user>
</RelamAgents>
after that i use a transformation XSL and the second variable has been filled without no problem.
<AgentsArray>
<ns0:Agent>
<ns0:user>john</ns0:user>
</ns0:Agent>
<ns0:Agent>
<ns0:user>david</ns0:user>
</ns0:Agent>
<ns0:Agent>
<ns0:user>jack</ns0:user>
</ns0:Agent>
</AgentsArray>
but when i fill the first variable by receiving the output parameter from a service call, the XSL transformation did not work at all and the second variable remains empty.
I have checked the first variable and i am sure that it is not null and it has the same vale:
<RelamAgents>
<user>john</user>
<user>david</user>
<user>jack</user>
</RelamAgents>
Would anybody please help me with this problem?
Thank you very muchHi,
receiving the output parameter from a service call, the XSL transformation did not workNamespaces... Check the namespaces the service call is using and see if they match with the XSL is expecting...
Cheers,
Vlad -
XSL Transformation error source
I am using MII 12.0 and I am getting the following error in the log file:
javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: An attempt to write after the stream had been closed.
The problem is that I am not using and XSL transforms that I know of. What BLS action might generate this error other than the obvious XSL Transformation Action?
Thanks.
...SparksI found this thread:
[Re: IDOC error|Re: IDOC error]
Is your system set up to receive any idocs?
Edited by: Christian Libich on Feb 8, 2010 10:00 PM -
XSL Transformation Design View
Hello together,
we find an issue with design view of xsl transformation. When we use the design view serveral configurations and mappings where edited and deleted. For example <xsl:stylesheet version="2.0" change to version="1.0" and the call of EBMHeader-Template was deleted.
Has anybody the same problem? Our are everybody a "h a r d c o r e" coder and use the source view ;-)
Greetings from Karlsruhe
Marcel
PS: It's a little bit tricky to show the design view. We must switch between diffent xslt to see the design.when you open the imported xsd in the browser, you do get a xsd shown up ?
and when you download the xsd locally and validate it, it is valid? -
XSL Transformation - cut asx:abap and asx:values
Hey all,
I'm using a XSL Transformation to create a XML-File from an internal table.
My problem is, that the transformation automatically puts the two tags "<asx:abap xmlns:asx="http://www.sap.com/abapxml">" and "<asx:values>" at the beginning of my file (or string):
<?xml version="1.0" encoding="iso-8859-1" ?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml">
<asx:values>
<ROOT>
</ROOT>
</asx:values>
</asx:abap>
Does anyone have any idea how I can easily suppress these lines?
The best course would be of course an XSL statement.
Thanks and regards,
Martin.Will using a Simple Transformation help your case ?
-
XSL transformation not working
Hi!
I am having problems when trying to generate XSL transformation from XML to XML (where XML output is actually XHTML). It always fails executing <xsl:callTemplate name="something", when <xsl:callTemplate /> is executed from another <xsl:template> which is also called with <xsl:callTemplate. Version of database is 10.2.0.4.0, received error is: ORA-00604: invalid character value 'burek' for attribute 'name'.
Transformation is working in Java and Altova XMLSpy.
PL/SQL code:
procedure process_xsl(p_xml in clob, p_xsl in clob, p_result out clob) is
w_xsl_proc dbms_XSLProcessor.Processor;
w_xsl_ss dbms_XSLProcessor.Stylesheet;
w_dom_xsl dbms_xmldom.DOMDocument;
w_dom_xml dbms_xmldom.DOMDocument;
w_parser dbms_xmlparser.Parser;
begin
--xml in xsl iz cloba v DOMDocument
w_parser := dbms_xmlparser.newParser;
dbms_xmlparser.parseClob(w_parser, p_xml);
w_dom_xml := dbms_xmlparser.getDocument(w_parser);
dbms_xmlparser.freeParser(w_parser);
w_parser := dbms_xmlparser.newParser;
dbms_xmlparser.parseClob(w_parser, p_xsl);
w_dom_xsl := dbms_xmlparser.getDocument(w_parser);
dbms_xmlparser.freeParser(w_parser);
--xsl procesiranje
w_xsl_proc := dbms_XSLProcessor.newProcessor;
w_xsl_ss := dbms_XSLProcessor.newStylesheet(w_dom_xsl, null); <-- Here error is received
END;
Stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></xsl:output>
<xsl:decimal-format name="dec" decimal-separator="," grouping-separator="."/>
<!-- Predefined constants from einvoice xml schema -->
<xsl:variable name="einvoiceIssuerCode" select="'II'"></xsl:variable>
<xsl:variable name="einvoiceRecipientCode" select="'IV'"></xsl:variable>
<xsl:variable name="einvoiceIssueLocationCode" select="91"></xsl:variable>
<xsl:variable name="einvoiceIssueDateCode" select="137"></xsl:variable>
<!-- Constants directly from document which is a part of transformation -->
<xsl:variable name="einvoiceNumber" select="/IzdaniRacunEnostavni/Racun/GlavaRacuna/StevilkaRacuna/text()"></xsl:variable>
<!-- Intro template -->
*<xsl:template name="burek"> <!-- Second template called with xsl:call template -->*
<xsl:text>TEST</xsl:text>
</xsl:template>
<!-- Template in which we create html structure including css -->
<xsl:template name="einvoice">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vizualizacija e-računa št. </title>
<xsl:call-template name="burek"></xsl:call-template>
</head>
<body>
</body>
</html>
</xsl:template>
<!-- Intro template -->
<xsl:template match="/">
* <xsl:call-template name="einvoice"></xsl:call-template> <!-- This call is OK -->*
</xsl:template>
</xsl:stylesheet>
XML document
<?xml version="1.0" encoding="UTF-8"?>
<IzdaniRacunEnostavni>
<Racun Id="data">
<GlavaRacuna>
<VrstaRacuna>380</VrstaRacuna>
<StevilkaRacuna>1205019908211</StevilkaRacuna>
<FunkcijaRacuna>9</FunkcijaRacuna>
</GlavaRacuna>
<DatumiRacuna>
<VrstaDatuma>137</VrstaDatuma>
<DatumRacuna>2012-05-07T00:00:00.0Z</DatumRacuna>
</DatumiRacuna>
<DatumiRacuna>
<VrstaDatuma>263</VrstaDatuma>
<DatumRacuna>2012-04-28T00:00:00.0Z</DatumRacuna>
</DatumiRacuna>
<DatumiRacuna>
<VrstaDatuma>263</VrstaDatuma>
<DatumRacuna>2012-05-27T00:00:00.0Z</DatumRacuna>
</DatumiRacuna>
<DatumiRacuna>
<VrstaDatuma>263</VrstaDatuma>
<DatumRacuna>2012-03-28T00:00:00.0Z</DatumRacuna>
</DatumiRacuna>
<DatumiRacuna>
<VrstaDatuma>263</VrstaDatuma>
<DatumRacuna>2012-04-26T00:00:00.0Z</DatumRacuna>
</DatumiRacuna>
<DatumiRacuna>
<VrstaDatuma>263</VrstaDatuma>
<DatumRacuna>2012-04-27T00:00:00.0Z</DatumRacuna>
</DatumiRacuna>
<Lokacije>
<VrstaLokacije>91</VrstaLokacije>
<NazivLokacije>Ljubljana</NazivLokacije>
</Lokacije>
</Racun>
</IzdaniRacunEnostavni>
Edited by: 938026 on 01-Jun-2012 00:35Hi,
I think your problem lies in the <title>. You are using non UTF-8 characters in the title (š), but you marked your XML as UTF-8. So change the title to have unicode charaters and it will work.
Herald ten Dam
http://htendam.wordpress.com -
XSL Transformation crashes DW CS3
Whenever I select XSL Transformation from any of the menus,
it crashes DW CS3 asking the typical, "do you want to tell
microsoft about this error."
Anyone have this problem with using XSL Transformations? I'm
thinking about reinstalling DW to see if it fixes the problem.
ThanksForgot to mention that this is a Windows XP SP2 machine.
-
XSL Transformation (XSLProcessor) doesn't work on WebSphere 3.5.4
XSL-1013: (Error) Error in expression: '/'
I have encountered this problem. The problem seems to be the same as running the oraxsl in the command line using java. I tried using jre instead of java and including the -nojit (Disable JIT Compiler) and it worked. The problem now is how can I do the same thing in Websphere (like how can I disable the JIT compiler and why does it affect the XSL transformation?). Take note that my servlets works (XSL transformation) in my local workstation uing JSWDK 1.0.1 and JDK 1.2.2 but when migrated to Websphere 3.5.4 the XSL transformation doesn't work anymore.
I would gladly appreciate if somebody can give me a concrete answer.
Thanks,
NDCXSL-1013: (Error) Error in expression: '/'
I have encountered this problem. The problem seems to be the same as running the oraxsl in the command line using java. I tried using jre instead of java and including the -nojit (Disable JIT Compiler) and it worked. The problem now is how can I do the same thing in Websphere (like how can I disable the JIT compiler and why does it affect the XSL transformation?). Take note that my servlets works (XSL transformation) in my local workstation uing JSWDK 1.0.1 and JDK 1.2.2 but when migrated to Websphere 3.5.4 the XSL transformation doesn't work anymore.
I would gladly appreciate if somebody can give me a concrete answer.
Thanks,
NDC -
XSL Transformation won't run in Web Start
Hello,
I am using the javax.xml.transform.Transformer implementation built into Java 1.5.x to transform an XML document into HTML using an XSLT transformation source. This code works perfectly if I run the app outside of Java Web Start. However, if I run the app in web start, the output is partial. More specifically, the XML and the XSLT load just fine in web start (I've confirmed this), but the end result of the Transformation is a properly formatted HTML document with only part of the data -- a bunch of data is missing.
I have some loops in the XSLT that print out rows in an HTML table with the data I want to see. These loops don't seem to run when I'm in web start, but the rest of the transformation does run.
I've confirmed this is not working on both Mac OS and Windows, version 1.5.0_06 and 1.5.0_09. So I don't think it is a bug on any particular platform. I am totally stumped by this. The XSL transformation process is doing something different in web start than it does when run from the command line (either different jars are in play, or system properties are different, etc).
Has anyone else experienced this?
Thank You,
EricOne thing I'd like to mention...
My XML document has no namespace defined, and neither does my XSLT transform document. I am just referencing plain old string element names that simply match between the XML and XSLT. This all works fine when the Transform is run from a java app that is started on the command line. Things break down when the app is run via Java Web Start. Could the namespace issue be the problem, however? I don't see how that could be as the code works from a 'normal' java app, but maybe I'm missing something.
Maybe you are looking for
-
System recovery from partition fails after first boot
I just purchased and recieve the following notebook: Pavilion DV7-6C95DX. I went through setup and then created recovery DVDs. After playing with it for a short while, I decided to try restoring it to factory condition using the recovery partiton an
-
I-tunes 10.2 will not Launch, but appears in Task Manager Processes
Hi all, apologies for the repost here, but i have yet to find a solution and im new to the boards (i hope im not breaking etiquette!) My problem is with Itunes not launching in windows 7 64 bit. * I have uninstalled/reinstalled all itunes/quicktime c
-
No content in body of Yahoo Mail when using FF 8.0
I have No content in body of Yahoo Mail when using FF 8.0 but is OK when using IE. Have cleared cache, disabled extension and add ons and Java is enabled. Even went to FF 7, but no content in email?
-
My iTunes library is too large for my iPod classic--can I create a separate library so that I can split the current library and sync the distinct libraries onto separate iPods?
-
My ipad suddenly blocks all wi-fi access with this notice: "Web Page Blocked"
I've ensured my time is on auto, have reset setting, etc. but nothing works to-date. Here's the full error notice I receive: "Web Page Blocked. An error ocurred while trying to rate the website using the web filtering service. Web filter service