Hi Robert, Robert Koberg <[EMAIL PROTECTED]> wrote on 08/20/2005 08:51:15 AM:
> Hi, > > What handles URI/href resolution for XInclude? > > I want to provide an implementation like JAXP's > javax.xml.transform.URIResolver to "turn off" the ability to include > "http://..." and basically "jail" a webapp user to a certain directory. Register an entity resolver [1] with the parser. The entity resolver will be called before opening the href. > I also want to provide a way to fallback in my app from the href before > it goes to the fallback element. A warning message is emitted before the fallback path is taken. I suppose you could detect this warning and do whatever is required for your app before the fallback is processed. > any advice is appreciated, > -Rob > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Thanks. [1] http://xml.apache.org/xerces2-j/javadocs/api/org/xml/sax/EntityResolver.html Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
