Hello, I'm new to this XSLT and Xalan, so I'm sorry if there something basic missing in this message.
I'm having difficulty getting the Document() function to work the way I expect it. There are two main issues: i. Returning the whole document instead of a fragment When I try to load a document with a Fragment Identifier in the URL such as : http://taxonomies.xbrl.us/us-gaap/2009/elts/us-gaap-2009-01-31.xsd#us- gaap_EarningsPerShareDiluted It returns the whole document. In checking the XSLT spec (http://www.w3.org/TR/xslt#document) I see the following statement: If the URI reference does contain a fragment identifier, the function returns a node- set containing the nodes in the tree identified by the fragment identifier of the URI reference. In the O'Reilly Book "XSLT" by Doug Tidwell, section 8.6 includes the following statement: The final difference between doc( ) and document( ) is that the document( ) function supports fragment identifiers in the URL, whereas the doc( ) function does not. If your processor uses fragment identifiers, the document( ) function can return specific nodes in a document rather than simply returning the document node. ii. Retrieving the same file for every Document() call Xalan doesn't appear to be caching the main document, but treating each call with a relative URL as a request for a new document. With this application (XBRL), the result is hundreds of requests for the same large (1.3 Mb) file. Am I making a mistake here? Thanks for helping me understand. Regards, Mark Gannon
signature.asc
Description: This is a digitally signed message part.