Re: [xslt] xsl:value-of a CDATA section is empty
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] xsl:value-of a CDATA section is empty
- Date: Wed, 30 May 2001 11:29:27 -0400
On Wed, May 30, 2001 at 04:34:29PM +0200, Stephan Otte wrote:
> Hello,
> In my xml input file there is a CDATA section:
> ....
> <data>
> <next><![CDATA[from=20.05.2001&to=21.05.2001&name=donald]]</next>
> </data>
> ...
>
> I want to output the content of this section with the following xsl fragment:
> ...
> <xsl:output method="html"/>
> ...
> <a href="/cgi-bin/data.pl?{/data/next}">next page</a>
> ....
>
> But in the output of xsltproc nothing is inserted from the CDATA section.
> Same result with use of "<xsl:value-of ..>".
> The example works with xalan xslt-processor, so what is wrong?
Could you try the enclosed patch to tree.c for libxml-2.3.9 ?
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
*** tree.c 2001/05/22 16:57:14 1.137
--- tree.c 2001/05/30 15:28:41
***************
*** 3308,3313 ****
--- 3308,3314 ----
while (tmp != NULL) {
switch (tmp->type) {
case XML_ELEMENT_NODE:
+ case XML_CDATA_SECTION_NODE:
case XML_TEXT_NODE:
if (tmp->content != NULL)
#ifndef XML_USE_BUFFER_CONTENT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]