After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 442275 - Processing Instruction Tokenizer throws errors when processing DocBook
Processing Instruction Tokenizer throws errors when processing DocBook
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.20
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-30 09:27 UTC by Pavol Rusnak
Modified: 2007-05-31 05:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (628 bytes, application/x-compressed-tar)
2007-05-30 09:28 UTC, Pavol Rusnak
Details

Description Pavol Rusnak 2007-05-30 09:27:51 UTC
One of our reporters encountered a strange behavior in XSLT processor when trying to compile Lessons for Lizards. I reduced the files to minimal size and created simple testcase (attached).

File lessons4lizards.xml contains:

<bookinfo>
   <pubdate><?dbtimestamp?></pubdate>
</bookinfo>

When I run `xsltproc -o /dev/null docbook.xsl lessons4lizards.xml` following error appears:

runtime error: file file:///usr/share/xml/docbook/stylesheet/nwalsh/1.72.0/lib/lib.xsl line 212 element value-of
Internal error in xsltValueOf(): failed to cast an XPath object to string.

Everything is OK when <?dbtimestamp?> is changed into <?dbtimestamp ?> (space before second question mark).

Bug are reproducible libxml2-2.6.28 and libxslt-1.1.20. (libxml2-2.6.26 and libxslt-1.1.17 are OK).
Comment 1 Pavol Rusnak 2007-05-30 09:28:43 UTC
Created attachment 89045 [details]
testcase
Comment 2 William M. Brack 2007-05-31 05:09:32 UTC
Fixed problem with xpath's string-value for a PI node with no content.  Fixed code (libxml2/xpath.c) is in SVN.  Thanks for the report.