Re: URI resolvers for XML and XSLT?
Petr Pajas <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
2009/8/26 Michael Ludwig <[email protected]>: > Does XML::LibXML support URI resolvers? I didn't find anything > about it in the man page. > > LibXML2 supports them in some form: > > http://xmlsoft.org/catalog.html > > I'm not sure how general that is. I'm also not sure catalogues > are the only scenario where URI resolvers are supported. > > The scenario I have in mind would be to register a URI resolver > that would kick in (with a registered SAX filter) when the URI > mysax://bla.xml is requested - for example using the document() > function in XSLT. > > Another possible scenario would be to register resolvers to act > on <xsl:include> and <xsl:import>. > > And of course external entities and other scenarios. Basically > all URIs :-) Have a look at XML::LibXML::InputCallback. -- Petr _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs