From: firstname.lastname@example.org [mailto:email@example.com] On Behalf Of Premal Desai
Sent: 09 October 2005 22:02
Subject: [saxon] Is there a visible SAXOn API to load Library modulesI am trying to write a piece of java code that can load xquery library modules, parse it to retrieve function defintions and validate the same library modules. But I am facing issues with the Saxon library. The methods provided by Saxon are invisible (protected/package access). See description below.Any help will be highly appreciatedI am looking for API in the SAXON 851 package that can help me do the following:1. Load a library module - This is so that I can determine the number of functions, obtain the function finger print etc.There is method
protected StaticQueryContext loadModule(java.lang.String namespaceURI,
throws XPathException.StaticBUT this method is protected and hence, invisible at compile time.2. Validate a library module while i load it -I found a class in the saxon package called QueryParser() under net.sf.saxon.Query that has a method parseLibraryModule(java.lang.String queryString, StaticQueryContext env, int firstSlot) but this is NOT visible as the class is visible to the package only (although the parseLibraryModule is a public method). Hence, i get a compile time error when i attempt to access it.
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.