Jack Bates schrieb am 10.11.2009 um 13:08:16 (-0800): > > When I pass a relative URL to the "document()" function, it resolved > to the wrong absolute URL, e.g. "/home/jablko/index.php" > > So I tried using xml:base, e.g.
> <xsl:apply-templates xml:base="http://ica-atom.org/docs/" > select="document('index.php?title=User_manual')/html:html"/> > ^ This works great with xsltproc, > - but not Xalan, > Is it a bug that Xalan appears to ignore xml:base? Xalan claims to support XPath 1.0 and XSLT 1.0. http://xml.apache.org/xalan-j/index.html As far as I can see, Xalan makes no claim to supporting xml:base, which is one of the add-ons to XML. There is a Xalan bug pertaining to incorrect base URIs as a result of failing to track the physical structure of an XML document (external entities), which seems to support the above assessment, which I trust the experts will correct if incorrect. http://issues.apache.org/jira/browse/XALANJ-2274 > Any advice on resolving relative URLs? See javax.xml.transform.URIResolver. Implement and register your own URI resolver. Best, -- Michael Ludwig