Subjects
Home
Xalan extension functions
Fomatting question serializing DOM with pretty print
xalan with pull parser
Cannot find the declaration
Apache Xalan drop support to run on JRE 1 1 x
Why does Doctype change processing of a document
Node set to XML string via Java extensions in Xalan J: possible?
Templates/Transformers + thread safety???
Problem evaluating xpath with muliple prefix with different namespace
remove an arbitrary attribute from xsl output
Xalan3 XSLT 2 0 XPath 2 0 support?
Problem using compiled translets with Xalan !!
Xalan and jstl 1 1 problem with transform tag
NullPointer in DOM2DTM getLocalName
URIResolvers base parameter with xsltc and cascaded imports
Performance problem for Xalan J on intel dual core
Standard libraries in JAXP?
Serializing a DOM tree to XML file, customize entities replacement
Library Conflict Involving BCEL Library
A question on how users are using <xsl:message >
Kevin Cormier as a new Apache Xalan J committer
Struggling to iterate over tokenized string
Xalan count() trouble
Problem with recursive xpath
Error when switching to java 1 5
document( ' ')
Problem with Xalan2 7 0 transformation
cr/lf options
entity encoded XML
can xalan transform 2 xml using one xslt?
Xalan J JIRA defect review Monday October 16, 2006 from 2:00 to 3:30 pm ED
xsl transform with cdata section elements
xslt parameters not expanded
Weird behavior of XPath evaluate()
How to avoid <xsl:message > instruction prints stylesheet file informations ?
Cannot find SimpleTransform subdirectory after installing Xalan J
recover from document not found exceptions
jdk1 5 and Xalan jar differences?
Performance Issue
Error/Bug adding floating point numbers
XPathAPI: eval exp using nodes with default namespace
modifying xalan to output invalid XML
NullPointerException
mege two separate xml nodes into one
Is this a XALAN document identification bug?
is StylesheetRoot really java io Serializable ?
transform() fails for DOMSource but succeeds for StreamSource
Thoughts on Transformer parameter passing
HELP, Xalan and jstl 1 1 problem with transformer
Problem with XPath namespace axis?
string utils:replace deleting search string if replacement string is an HTML
help with enumeration values pls
xalan 2 5 1 vs 2 7 performance question
How to insert/update in XML document
HTML Serialization and Handling of Ampersands in HREF Attributes
XHTML link tag stripping
SystemId Unknown; Line #24; Column #49; java lang NullPointerException
xpath text() help
Apostrophe problem with xalan 2 7 0
How to set variables in XML document?
Links
Home
Oracle database error code ...
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
setSystemId not recursive for included stylesheets?

setSystemId not recursive for included stylesheets?

2003-02-06       - By Martin Gainty
Reply:     1     2     3     4  

<html><div style='background-color:'><DIV>
<P>Phillip-<BR>the solution seems to be a merge of the 2 Stylesheets into 1<BR
>e.g.<BR><BR><FONT size=2>&lt;xsl:apply-templates&gt; and &lt;xsl:apply-imports
&gt; tags are for<BR>including multiple XSLs in one.<BR><BR>suppose you have
style sheets a.xsl and b.xsl defining different<BR>templates:<BR><BR>&lt;!-- a
.XSL --&gt;<BR>&lt;?xml version="1.0"?&gt;<BR>&lt;xsl:stylesheet version="1.0"
<BR>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;<BR>&lt;xsl:template
match="abc"&gt;<BR>&lt;!-- some transformation --&gt;<BR>&lt;/xsl:template&gt;
<BR>&lt;/xsl:stylesheet&gt;<BR><BR>&lt;!-- b.XSL --&gt;<BR>&lt;?xml version="1.0
"?&gt;<BR>&lt;xsl:stylesheet version="1.0"<BR>xmlns:xsl="http://www.w3.org/1999
/XSL/Transform"&gt;<BR>&lt;xsl:template match="xyz"&gt;<BR>&lt;!-- some
transformation --&gt;<BR>&lt;/xsl:template&gt;<BR>&lt;/xsl:stylesheet&gt;<BR>
<BR>both can be combined in a single stylesheet using import /<BR>include
directives:<BR><BR>&lt;!-- c.XSL --&gt;<BR>&lt;?xml version="1.0"?&gt;<BR>&lt
;xsl:stylesheet version="1.0"<BR>xmlns:xsl="http://www.w3.org/1999/XSL/Transform
"&gt;<BR>&lt;xsl:import href="a.xsl"/&gt;<BR>&lt;xsl:include href="b.xsl"/&gt;
<BR>&lt;/xsl:stylesheet&gt;<BR><BR>c.XSL sort of acts like an aggregation of
stylesheets a.XSL and<BR>b.XSL. so the foll statement stands:<BR><BR>XML(1) +
XSL(1) --&gt; XML(1)<BR><BR>where the single stylesheet itself is composed of
multiple<BR>stylesheets:<BR><BR>XSL(1) + XSL (1) + .. + XSL (1) --&gt; XSL (1)
<BR><BR>the big advantage is modularizing stylesheets.<BR><BR>the difference is
2 directives ( import/include ) is precedence<BR>of template rules in case of
conflicts. this is a big topic and<BR>you may take a look at<BR></FONT><A href=
"http://www.arbortext.com/xsl/tutorial/foil26.html"><FONT size=2>http://www
.arbortext.com/xsl/tutorial/foil26.html</FONT></A><BR><BR>reprised from <A href=
"http://forum.java.sun.com/thread.jsp?forum=34&amp;thread=68850">http://forum
.java.sun.com/thread.jsp?forum=34&amp;thread=68850</A>&nbsp;by rohitd<BR><BR
>Hope this helps,</P></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV><FONT face="Lucida Handwriting, Cursive" color=#000000 size=4>Martin
Gainty<BR><FONT face="Verdana, Geneva, Arial, Sans-serif" size=3></DIV>
<DIV></DIV>
<DIR><FONT color=#0000ff size=1>
<DIV></DIV>
<P>______________________________________________</FONT><FONT face=Arial size=1
><B><FONT face=Arial size=2></FONT></B></FONT></P>
<DIV></DIV>
<P><FONT face=Arial size=1><B><FONT face=Arial size=2>Disclaimer and
confidentiality note</B></FONT></FONT></P>
<DIV></DIV>
<P><FONT face=Arial size=1><FONT face=Arial size=2>Everything in this e-mail
and any attachments relating to the official business of Laconia Data Systems<
/FONT><FONT face=Arial color=#0000ff size=2> </FONT><FONT face=Arial size=2>(LDS
) is proprietary to the company. It is confidential, legally privileged and
protected by law.&nbsp;</FONT><FONT face=Arial color=#0000ff size=2><FONT color
=#000000>LDS</FONT> </FONT><FONT face=Arial size=2>does not own and endorse any
other content. Views and opinions are those of the sender unless c
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "Rhodes, Phillip C." <PHILLIP.RHODES@(protected)>
<DIV></DIV>&gt;To: "'xalan-j-users@(protected)'" <XALAN-J-USERS@(protected)
.ORG>
<DIV></DIV>&gt;Subject: setSystemId not recursive for included stylesheets?
<DIV></DIV>&gt;Date: Thu, 6 Feb 2003 16:18:06 -0500
<DIV></DIV>&gt;MIME-Version: 1.0
<DIV></DIV>&gt;Received: from apache.org ([208.185.179.12]) by mc1-f36.law16
.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 6 Feb 2003 13:18:33
-0800
<DIV></DIV>&gt;Received: (qmail 20762 invoked by uid 500); 6 Feb 2003 21:17:58
-0000
<DIV></DIV>&gt;Received: (qmail 20727 invoked from network); 6 Feb 2003 21:17
:57 -0000
<DIV></DIV>&gt;Received: from noaadc-msw03.noa.alcoa.com (147.154.9.220) by
daedalus.apache.org with SMTP; 6 Feb 2003 21:17:57 -0000
<DIV></DIV>&gt;Received: from noaadc-mxi03.NOA.Alcoa.com (unverified) by NOAADC
-MSW03.NOA.Alcoa.com (Content Technologies SMTPRS 4.2.10) with ESMTP id
<T604056CE82939A09DC45C@(protected)>for <XALAN-J-USERS@(protected)
.ORG>; Thu, 6 Feb 2003 16:18:11 -0500
<DIV></DIV>&gt;Received: by noaadc-mxi03.NOA.Alcoa.com with Internet Mail
Service (5.5.2653.19)id <DS7HG6BF>; Thu, 6 Feb 2003 16:18:11 -0500
<DIV></DIV>&gt;X-Message-Info: dHZMQeBBv44lPE7o4B5bAg==
<DIV></DIV>&gt;Mailing-List: contact xalan-j-users-help@(protected); run by
ezmlm
<DIV></DIV>&gt;Precedence: bulk
<DIV></DIV>&gt;list-help: <mailto:xalan-j-users-help@(protected)>
<DIV></DIV>&gt;list-unsubscribe: <mailto:xalan-j-users-unsubscribe@(protected)
.org>
<DIV></DIV>&gt;list-post: <mailto:xalan-j-users@(protected)>
<DIV></DIV>&gt;Delivered-To: mailing list xalan-j-users@(protected)
<DIV></DIV>&gt;Message-ID: <F5404180FA3C3942AFB38E30F2E553B1038BF79B@(protected)
-MXU16.NOA.ALCOA.COM>
<DIV></DIV>&gt;X-Mailer: Internet Mail Service (5.5.2653.19)
<DIV></DIV>&gt;X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
<DIV></DIV>&gt;Return-Path: xalan-j-users-return-2941-mgainty=hotmail.com@(protected)
.apache.org
<DIV></DIV>&gt;X-OriginalArrivalTime: 06 Feb 2003 21:18:33.0767 (UTC) FILETIME=
[4E022370:01C2CE25]
<DIV></DIV>&gt;
<DIV></DIV>&gt;I am doing a transformation in jaxp, underlying it is xalan 2.4
.1
<DIV></DIV>&gt;
<DIV></DIV>&gt;I have several stylesheets, all have includes that are relative
to a base
<DIV></DIV>&gt;(e.g. /usr01/h3/rhodepc/d/jrun-16981/default-app/) There is an
xsl
<DIV></DIV>&gt;subdirectory here.
<DIV></DIV>&gt;
<DIV></DIV>&gt;All my includes in my stylesheets begin with the path "xsl/"
<DIV></DIV>&gt;
<DIV></DIV>&gt;I have a master stylesheet, that will include one stylesheet,
which in turn
<DIV></DIV>&gt;includes another stylesheet, and so on...
<DIV></DIV>&gt;
<DIV></DIV>&gt;I set the systemId on the first stylesheet, so that when it does
an include
<DIV></DIV>&gt;of the first stylesheet, the stylesheet is found.
<DIV></DIV>&gt;
<DIV></DIV>&gt;However, this second stylesheet does an include (also relative).
This
<DIV></DIV>&gt;include is resolved relative to the second stylesheet's location
, not the
<DIV></DIV>&gt;original location of the stylesheet, hence the document root
moves from
<DIV></DIV>&gt;stylesheet to stylesheet.
<DIV></DIV>&gt;
<DIV></DIV>&gt;It seems that setSystemId is not used recursively for resolving
the
<DIV></DIV>&gt;stylesheets that are included...
<DIV></DIV>&gt;
<DIV></DIV>&gt;Any help and guidance would be appreciated!
<DIV></DIV>&gt;
<DIV></DIV>&gt;Here is more detail:
<DIV></DIV>&gt;java.io.FileNotFoundException:
<DIV></DIV>&gt;/usr01/h3/rhodepc/d/jrun-16981/default-app/xsl/purchasing/xsl
/util/jsp/xmlui
<DIV></DIV>&gt;.xsl (No such file or directory)
<DIV></DIV>&gt;
<DIV></DIV>&gt;The file is located at
<DIV></DIV>&gt;/usr01/h3/rhodepc/d/jrun-16981/default-app/xsl/util/jsp/xmlui
.xsl
<DIV></DIV>&gt;
<DIV></DIV>&gt;The include was (in the 2nd included xsl)
<DIV></DIV>&gt;
<DIV></DIV>&gt;<?xml:namespace prefix = xsl /><xsl:include href="xsl/util/jsp
/xmlui.xsl"></xsl:include>
<DIV></DIV>&gt;
<DIV></DIV>&gt;I had set the systemid on the first stylesheet to point to
<DIV></DIV>&gt;"/usr01/h3/rhodepc/d/jrun-16981/default-app/"
<DIV></DIV>&gt;So the first stylesheet is found.
<DIV></DIV>&gt;The master stylesheet (the first one called) is located at
<DIV></DIV>&gt;/usr01/h3/rhodepc/d/jrun-16981/default-app/xsl/purchasing/ebiz
<DIV></DIV>&gt;
<DIV></DIV>&gt;Thanks very much. Fighting this all day!
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;Phillip Rhodes
<DIV></DIV></mailto:xalan-j-users@(protected)></mailto:xalan-j-users
-unsubscribe@(protected)></mailto:xalan-j-users-help@(protected)></FONT><
/FONT></DIR></FONT></FONT></div><br clear=all><hr>MSN 8 with <a href="http://g
.msn.com/8HMOENUS/2740">e-mail virus protection service: </a> 2 months FREE*<
/html>