cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From icewind <>
Subject truncated text using xinclude with xpointer expression
Date Fri, 10 Dec 2004 14:03:52 GMT

I'm seeing text truncated when I'm using an xinclude
tag with a href that includes an xpointer expression.

More details.

At a point in my pipeline, I have the following xml
(call it XML-ENTRIES):







I have a separate pipeline that handles
/files/*/title. That pipeline correctly produces the
following xml:

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
  <titleproper>Title of Extract Here</titleproper> 
  <publisher>some publisher name here</publisher> 
  <extent>some extent here</extent> 
  <abstract>blah blah blah blah blah.</abstract> 

Ok, so I have an extract xml snippet for each file and
a pipeline to return that XML to me. My objective for
XML-ENTRIES is to get XML that will list just text in
the title proper tag of each individual entry after
passing XML-ENTRIES through the xinclude transformer.
However, what actually seems to be happening is that
the xinclude with the xpointer expression is pulling
out only some of the text in the titleproper tags. So,
if I send XML-ENTRIES through the xinclude transformer
I may get something like this:

<entry>Title for Entry 1</entry>
<entry>Title fo</entry>
<entry>Title for Entr</entry>

Note how the text is truncated in some of the <entry>
tags. Also note that I always request the
/files/*/title pipeline for file1, file2, or file3 and
never see the truncation so the problem is happening
in the xinclude transformer. I've notices that If I
change my xpointer expressions from




then I get the following XML that gives me all of the
text, but also includes the titleproper tags, which I
do not want. I just want the text.

<entry><titleproper>Title for Entry
<entry><titleproper>Title for Entry
<entry><titleproper>Title for Entry

Is my xpointer expression incorrect? Is there a bug in
the parser? in the xinclude transformer?

My setup is java 1.4.2_02, Tomcat 5.0.x and Cocoon

Any suggestions appreciated.

Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message