Re: [xslt] Using external resources



On Sat, Aug 04, 2007 at 12:17:16PM +0200, Mark Howe wrote:
> Hi,
> 
> I'm using LibXSLT for a web project via perl CPAN packages. At various 
> points I need to access external resources, eg databases, or do the sort 
> of calculations at which XSLT doesn't excel, eg crypting passwords. I'm 
> currently using the document() function to call local CGI scripts, which 
> works, but I was wondering what other options exist, specifically any 
> supported document() protocols other than http and any ways to link to 
> external scripts or libraries without recompiling LibXSLT. The answer 
> appears to be implementation-dependent in the XSLT 1.0 spec, and I 
> haven't found any LibXSLT documentation that addresses this sort of 
> issue. All information appreciated.

  Libxml2 at the C API has multiple ways to hook in the loading of
external resources. This is defined at the C level. I can't magically
guess how this is mapped at the Perl bindings level, but it's likely
to be found in XML::LibXML

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]