xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Rousse <rou...@ccr.jussieu.fr>
Subject bug returh: document() URI resolved relative to stylesheet location
Date Fri, 04 Jan 2002 20:49:23 GMT
>From release notes page:
Committed by morten@apache.org on 10/25/2001
Modified: java/src/org/apache/xalan/xsltc/compiler ApplyImports.java 
DocumentCall.java Stylesheet.java SyntaxTreeNode.java 
java/src/org/apache/xalan/xsltc/dom LoadDocument.java
Committer's log entry: Fixed the document() function so that it will load 
documents relative to either the currently loaded document, or if that fails, 
relative to the location of the original stylesheet. PR: n/a Obtained from: 
n/a Submitted by: morten@xml.apache.org Reviewed by: morten@xml.apache.org

However, using current release 2.2.D14, document() URI argument is resolved 
against stylesheet location...
[guillaume@baader xml-spec]$ xml-transform data/packages.xml 
style/packages-list.xsl
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Packages list</title>
</head>
<body>
<h1 align="center">Packages list</h1>
<h2>free</h2>
<table border="1" width="100%">
<tr>
<th>name</th><th>summary</th><th>version</th><th>release</th>
org.apache.xml.utils.WrappedRuntimeException
        at 
org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:398)
        at org.apache.xpath.XPathContext.getDTM(XPathContext.java:169)
        at 
org.apache.xpath.SourceTreeManager.parseToNode(SourceTreeManager.java:367)
        at 
org.apache.xpath.SourceTreeManager.getSourceTree(SourceTreeManager.java:338)
        at 
org.apache.xalan.templates.FuncDocument.getDoc(FuncDocument.java:316)
        at 
org.apache.xalan.templates.FuncDocument.execute(FuncDocument.java:235)
        at org.apache.xpath.Expression.asIterator(Expression.java:273)
        at 
org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:156)
        at 
org.apache.xpath.axes.WalkingIteratorSorted.reset(WalkingIteratorSorted.java:292)
        at 
org.apache.xpath.axes.LocPathIterator.setRoot(LocPathIterator.java:373)
        at 
org.apache.xpath.axes.WalkingIteratorSorted.setRoot(WalkingIteratorSorted.java:170)
        at 
org.apache.xpath.axes.LocPathIterator.asIterator(LocPathIterator.java:267)
        at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:253)
        at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
        at 
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:438)
        at 
org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:299)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2186)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
        at 
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:438)
        at 
org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:299)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2186)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2186)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
        at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:420)
        at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2186)
        at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2012)
        at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1175)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:642)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1092)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1070)
        at org.apache.xalan.xslt.Process.main(Process.java:904)
file:///home/guillaume/dev/work/xml-spec/style/packages.xsl; Line 36; Column 
85; Can not load requested doc: free/ant.xml
org.apache.xml.utils.WrappedRuntimeException

[guillaume@baader xml-spec]$ xml-transform data/packages.xml 
data/packages-list.xsl
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Packages list</title>
</head>
<body>
<h1 align="center">Packages list</h1>
<h2>free</h2>
<table border="1" width="100%">
<tr>
<th>name</th><th>summary</th><th>version</th><th>release</th>
</tr>
<tr>
<td>ant</td><td>Ant build tool for java</td><td align="center">1.4.1</td><td

align="center">4</td>
-- 
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html

Mime
View raw message