473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

xsl:import not working when using relative path on AIX 5.2

Hi,
I have a very strange problem with xsl:import when usig RELATIVE path
on AIX 5.2 server.

I have two XSL files in the same directory: "ists_xslt3.xsl" and
"ists_xslt3_layout.xsl". This is what the beginning of "ists_xslt3.xsl"
looks like:

--------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:import href="ists_xslt3_layout.xsl"/>
--------------------------------------------------------

I'm using these stylesheets to transform XML files into PDF and its a
Java based application running on IBM WebSphere 5. When the
transformation is executed I get this error:

--------------------------------------------------------
; SystemID:
file:////usr/WebSphere/AppServer/installedApps/scube11Network/ISTS_v20010.ear/ists.war/ists/templatesCR/ists_xslt3.xsl;
Line#: 4; Column#: 43
[9/19/05 15:30:07:063 CEST] 3749da83 SystemErr R ; SystemID:
file:////usr/WebSphere/AppServer/installedApps/scube11Network/ISTS_v20010.ear/ists.war/ists/templatesCR/ists_xslt3.xsl;
Line#: 4; Column#: 43
[9/19/05 15:30:07:063 CEST] 3749da83 SystemErr R
javax.xml.transform.TransformerException: Had IO Exception with
stylesheet file: ists_xslt3_layout.xsl
[9/19/05 15:30:07:063 CEST] 3749da83 SystemErr R at
org.apache.xalan.processor.StylesheetHandler.error (StylesheetHandler.java:884)
[9/19/05 15:30:07:063 CEST] 3749da83 SystemErr R at
org.apache.xalan.processor.StylesheetHandler.error (StylesheetHandler.java:927)
[9/19/05 15:30:07:063 CEST] 3749da83 SystemErr R at
org.apache.xalan.processor.ProcessorInclude.parse( ProcessorInclude.java:277)
[9/19/05 15:30:07:063 CEST] 3749da83 SystemErr R at
org.apache.xalan.processor.ProcessorInclude.startE lement(ProcessorInclude.java:146)
[9/19/05 15:30:07:063 CEST] 3749da83 SystemErr R at
org.apache.xalan.processor.StylesheetHandler.start Element(StylesheetHandler.java(Compiled
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.parsers.AbstractSAXParser.startE lement(AbstractSAXParser.java(Compiled
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.parsers.AbstractXMLDocumentParse r.emptyElement(AbstractXMLDocumentParser.java(Comp iled
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.sc anStartElement(XMLNSDocumentScannerImpl.java(Compi led
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(XMLDocument FragmentScannerImpl.java(Compiled
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(XMLDocumentFragmentScannerImpl.ja va(Compiled
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.parsers.DTDConfiguration.parse(D TDConfiguration.java(Compiled
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.parsers.DTDConfiguration.parse(D TDConfiguration.java(Compiled
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.parsers.XMLParser.parse(XMLParse r.java(Compiled
Code))
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xerces.parsers.AbstractSAXParser.parse( AbstractSAXParser.java:1125)
[9/19/05 15:30:07:064 CEST] 3749da83 SystemErr R at
org.apache.xalan.processor.TransformerFactoryImpl. newTemplates(TransformerFactoryImpl.java:795)
--------------------------------------------------------
And now the fun part:

This application was first running on AS/400 server and the XSL
transformation worked fine. The transformation works fine when I run
the application on my local Win2000 machine. But on AIX 5.2 it only
works when I use ABSOLUTE path to import the XSL file:

--------------------------------------------------------
<xsl:import
href="file:/usr/WebSphere/AppServer/installedApps/scube11Network/ISTS_v20010.ear/ists.war/ists/templatesCR/ists_xslt3_layout.xsl"
/>
--------------------------------------------------------
I've seen a few posts describing similar problem, but none of the
advices worked for me (a very common one was to change the current
working directory to the location of XSL files but I used
System.getProperty("user.dir") and it returns path to the directory
whare my stylesheets are located).

Thanks for any help!
Martin

Sep 22 '05 #1
0 2123

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rupa | last post by:
Hi, I'm trying to write an xslt to convert an email in xml format to a new xml format. <descr> <xsl:choose> <xsl:value-of select="body"> </xsl:value-of select> <xsl:when test=" <xsl:value-of...
5
by: Shiju Rajan | last post by:
Hi, I have one transformation called transform1.xsl. transform1.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="transform2.xsl"/>...
2
by: gimme_this_gimme_that | last post by:
What xpath expression would return the category-item having uid sps002 ? <category-list> <category> <uid>GRIDS_MAIN_CATEGORY_UID</uid> <uid-type>Categories</uid-type> <category-item-list>...
4
by: renderman | last post by:
Hi, I looked through a computergenerated code because I had to edit something manually. I found this line: <xsl:when test="''='FALSE'"> I don't get what this means.
4
by: Keith Chadwick | last post by:
I have 3 individual ASP.NET applications that make up the overall web application. Each of these websites share some common styles, scripts and xslt files. These are all placed in a single...
2
by: Keith Chadwick | last post by:
I have been running some tests with regards to xsl:include and xsl:import with the same results on both and I am wondering if someone can explain this behavior to me! First off the xslt file is...
2
by: Doug | last post by:
I've been researching the answer to this without luck. I need to use <xsl:when and use an OR condition. Either it can't be done or I just haven't figured out the syntax. <xsl:when test="xyz =...
2
by: Kniffel | last post by:
Hi Is there a possibility to make an <xsl:whenon more than one Selection? Not that way: <xsl:choose> <xsl:when a=test> Do this <xsl:when a=test2>
2
Dormilich
by: Dormilich | last post by:
Hi, my goal is to have a stylesheet, where I can change the encoding attribute of the <xsl:output> element (one shall have utf-8 and the other latin-1). is there any way to set this via a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.