[xslt] Re: simpler testcase
- From: S Woodside <sbwoodside yahoo com>
- To: Daisuke Maki <daisuke wafu ne jp>, xslt gnome org
- Cc: "axkit-users axkit org" <axkit-users axkit org>
- Subject: [xslt] Re: simpler testcase
- Date: Fri, 28 Mar 2003 00:01:09 -0500
OK, I'm copying the xslt@gnome.org list so that Daniel sees it.
simon
On Thursday, March 27, 2003, at 11:35 PM, Daisuke Maki wrote:
>
>> <?xml version="1.0"?>
>> <?xml-stylesheet type="text/xsl" href="test2.xsl" ?>
>> <dummy xmlns:dyn="http://exslt.org/dynamic"><rngform
>> xmlns="http://simonwoodside.com/rng"><title>RNG
>> Form</title></rngform></dummy>
>
> I'm going to take a wild guess and say that your problem might be
> because you use the default xml namespace in the <rngform /> tag.
>
> AFAIK, XML::LibXML doesn't deal with default namespaces elegantly...
>
> use XML::LibXML;
> my $parser = XML::LibXML->new();
> my $xml = $parser->parse_string( <<EOM );
> <?xml version="1.0" encoding="iso-8859-1"?>
> <foo xmlns="urn:bar">
> <value>FOO!</value>
> </foo>
> EOM
>
> # you'd expect "FOO!", but...
> print "VALUE: ", $xml->findvalue( '/foo/value' ), "\n";
>
> XML::LibXML v1.54_3 and libxml2-2.4.26
>
> Try with an explicity namespace. If that works, AxKit isn't broken.
> XML::LibXML is.
>
>
> --d
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axkit-users-unsubscribe@axkit.org
> For additional commands, e-mail: axkit-users-help@axkit.org
>
>
--
anti-spam: do not post this address publicly
www.simonwoodside.com -- 99% Devil, 1% Angel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]