Re: [xslt] Transformation result DOM document does not honor xml:id

On Thu, Sep 17, 2009 at 02:59:14PM +0200, Michael Ludwig wrote:
> Daniel Veillard schrieb:
>>   I changed the way this is done, I think this will fix things and
>> speed them up too, it's in git head now.
> Great, thanks for looking into this!
>>   But I wasn't able to make your tests run:
>> paphio:~/XSLT -> php xmlid-xsl.php xmlid-xsl.xsl
>> PHP Parse error:  syntax error, unexpected T_STRING in
>> /u/veillard/XSLT/xmlid-xsl.php on line 6
> I copied the test from my mail and it just works. Could you post line 6
> of your copy of my script?
> Do you have the PHP extension for LibXSLT enabled? This can be checked
> very easily by typing:
>   php --re xsl
> On my machine, the extension is:
>   /usr/lib/php5/20060613+lfs/

  nope, not there
    Exception: Extension xsl does not exist

>> paphio:~/XSLT -> perl xmlid-xsl.xsl
>> Can't locate XML/ in @INC (@INC contains:
> You don't have the Perl extension to your library installed :-) If you
> happen to be on Debian or related, do:
>   apt-get install libxml-libxslt-perl
> Else, use RPM or similar to locate the module. If you can't find it,
> install the module using the CPAN shell:
>   cpan XML::LibXSLT
> Then, repeat the test.

  yum install perl-XML-LibXSLT

  and fixing all the scrambling done on the test data by your mail
agent did it, I was finally able to reproduce, and fix.

But really using those encapsulated languages relying on the system
libraries makes testing and debugging harder.

Anyway fixed in git now,

 thanks !


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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