I'd like to propose the creation of an XSLTransformService (or a more appropriate name), possibly having something of the following interface (Java):

package org.xmldb.api.modules;

public interface XSLTransformService extends Service {
   public static final String serviceName = "XSLTransformService";
   public static final String version = "1.0";

   // Namespace Manipulation (if XPath is to be used)
   void setNamespace(String prefix, String uri) throws XMLDBException;
   String getNamespace(String prefix) throws XMLDBException;
   void removeNamespace(String  prefix) throws XMLDBException;
   void clearNamespaces() throws XMLDBException;

void setTemplates(XMLResource templates) throws XMLDBException;

   // XSLT Bound Parameters
   void setParameter(String name, String value) throws XMLDBException;
   String getParameter(String name) throws XMLDBException;
   void removeParameter(String name) throws XMLDBException;
   void clearParameters() throws XMLDBException;

   // Query Invocation
   Resource query(String xpath) throws XMLDBException;
   Resource queryResource(String id) throws XMLDBException;
}

Just a thought.

--
Tom Bradford - http://www.tbradford.org/
CTO - The dbXML Group - http://www.dbxml.com/

----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to