libxslt

Is there a way to call externals from an xsl stylesheet ?

I very often use the document() xslt function to access an external XML file and use that in the transformation. If I provide a URL within the function I can also access RESTfull web service from the xslt and use the XML this service returns in my xslt. But now i have a local program that returns XML and I would like to address it the sa...

Python packages depending on libxml2 and libxslt

Apart from lxml, is anyone aware of Python packages that depend on libxml2 and libxslt? ...

Order of execution in xslt stylesheet

Lets say I have a xslt stylesheet like the following: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exslt="http://exslt.org/common" exclude-result-prefixes="exslt" version="1.0"> <xsl:output method="html" encoding="utf-8" indent="no" /> <xsl:variable name="foo"...

How do I install libXSLT for Perl's XML::LibXSLT?

When I run a Perl script I get Can't locate XML/LibXSLT.pm in @INC So I try doing this in cpan: cpan> install XML::LibXSLT CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Fri, 02 Oct 2009 13:28:24 GMT Running install for module XML::LibXSLT Running make for P/PA/PAJAS/XML-LibXSLT-1.68.ta...

XSLT 1 Plain Text Spacing

Using Perl's XML::LibXSLT necessitates that I use XSLT 1.0, which means that I am stuck without XSLT 2.0 features. Is there a way that I can still pad text cleanly in a plain-text output from my processing? What I want is: <values> <headers> <header>Header 1</header> <header>Header 2</header> </headers> <va...

PHP and XSLTProcessor Misbehavior

Hi all, Simple question: Why is a PHP function called from an XSL Stylesheet just returning the last argument passed: foo.xsl: <xsl:template match="/"> <xsl:value-of select="php:function('date','c')" /> </xsl:template> PHP: ... $xsl = new XSLTProcessor(); $xsl->registerPHPFunctions(); $xsl->importStylesheet($fooStylesheet); e...

Does libxslt have a feature for splitting a document into multiple documents?

Looks like libxslt does not support XSLT 2.0, and xsl:result-document. Is there a way to mimic xsl:result-document using libxslt, or xsltproc? ...

Building libxslt for iPhone

I just had an app rejected for linking to libxslt using this technique. I'd really like to use XSLT in my app, so it looks like my only shot is to compile it myself. I don't want to use a UIWebView because I want to store the resulting HTML, not just display it. Has anyone done this -- compiled libxslt for the iPhone? After some Go...

How do I include libxslt in my iPhone app?

I've heard that including libxslt.dylib is grounds for getting your app rejected. I don't know how accurate that is. Nevertheless, I would like to include the latest version of libxslt. I'd like to do the same thing with libxml2, as well as other libraries in the future. What is the correct way to include a code library like this in my...

passing configure options to rake gems:build

On the server (where I am not root), I have compiled libxslt into /home/foo/sw. So I can install my gem like so: gem install nokogiri -- --with-xslt-dir=/home/foo/sw However, this same technique doesn't work with rake: $ rake gems:build -- --with-xslt-dir=/home/foo/sw (in /home/foo/fooapp/releases/20100915071151) If I try to forc...