This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XSLT V 1.1




> XSLT engine knows what is the system id of anything.xml, so it
> should resolve the document(URI)  taking into account the
> system id of anything.xml ( not the system id of xsl stylesheet ).

but the XML document may be spread over many different URI (via external
entities)

If you want to get rid of the second argument of document() then xpath
needs functions to return the URI of a node as a string and a function
that takes two strings, a base URI and a URI reference and returns
the resulting URI. (This latter function is possibly writable in XSLT,
but not very simply, so having at as a function would help)

then
document("xxxx", node) would be more or less
document(uri-resolve("xxx",base-uri(node)))

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]