Hi,

 As of now, xerces doesn't not provide the support for  XPointer Framework 
[http://www.w3.org/TR/xptr-framework/] and XPointer element() 
[http://www.w3.org/TR/xptr-element/] schema which are required to be fully complaint 
for XInclude. I am planning to provide the support 
for XPointer into xerces-java. As per XInclude spec element() schema and 
XPointerFramework needs to be supported. XPointerFramework 
insist that any schema should be processed by the XPointer processor. 
 
Proposed Design :  XPointer support will be provided on top of  the XInclude which is 
designed by Peter,IBM.

    XPointer processor will be initialized only if XInclude processor identifies the 
pointer part in the URI to be included.  If 
XInclude processor recognizes the pointer part in  URI then it will  spawn a new 
partial xpointer pipeline  which will have xpointer 
schema component to process the schema pointer. If sub-resource is not identified by 
schema then Xpointer processor will re-open's the 
inputsource for next schema in pointer part. XPointer Schema will be a XNI component 
which implements the XPointerSchema interface.
 
   Application developer can register his  Xpointer schema into XPointer processor 
with the help of property shown below
      
   Property Name: http://xml.apache.org/xerces/xpointerschema.
   Property Value: XPointerSchema [].    
                 It may be possible that user wants to register multiple Xpointer 
schema's into a XPointer Processor.


   
 /**
  *  Application developer should extends XPointerSchema to define its own Xpointer 
schema.
  * 
  */
public interface XPointerSchema extends XMLDocumentFilter{

     
     /**
      * This function  return the Schema  name which is used by the XPointer Processor 
to identify schema object.
      *
      * @return The name of XPointerSchema Component.
      */     
     public String getXPointerSchemaName();     
          
     /**
      * set the schema pointer for Schema to process.
      */
     public void setSchemaPointer(String pointer);
     
     /**
      * return true if sub-resource is identified by the schema component.
      */
     public boolean isSubResourceIdentified();
      
 }

Your valuable comments and queries are welcome. 

Thanks,
Arun.

Sun Microsystems, India.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to