Re: [docbook] Re: How to Xinclude an Introduction in a chapter (ie, no <section>)?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/21/2012 03:18 PM, David Cramer wrote:
> On 03/21/2012 10:35 AM, Norman Walsh wrote:
>> David Cramer <david@thingbag.net> writes:
>>> I'd love to read more about the xpath() scheme. Do you have 
>>> links? I tried googling, but found nothing that looked 
>>> promising.
> 
>> It's on the registry page:
> 
>> http://www.w3.org/2005/04/xpointer-schemes/
> 
>> And I implemented it in XML Calabash :-)
> 
> Ok, thanks Norm. I'll play with it in Calabash.

Hi there,
I'm still using Calabash 9.38 in case that matters, but I tried this:

    <xi:include href="test.xml"  xpointer="xpath1(//para[1])"/>

Where test.xml is:

  <section xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
    xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns:html="http://www.w3.org/1999/xhtml"
    version="5.0" xml:id="test-foo" status="DRAFT">
    <title>dslkfjsad</title>
    <para xml:id="blah">asdfasd</para>
  </section>

And it resulted in the following error:

[INFO] Processing input file: example.xml
Message: Entering xproc pipeline
Message: Performing xinclude
Mar 24, 2012 11:14:12 AM
com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: 114:16:err:XD0023:Expression could not be evaluated

Do I need a newer version of Calabash? Or did I do my xpath1()
expression wrong?

Thanks,
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPbfSlAAoJEMHeSXG7afUhTzEH/0aVurP25p76hgH5Q6zsEUeL
TskuDlK+Tt6JXHXy0/l78E3ycMPoD5b0giVDjHKIm05GELs4aliY8kVnQ7ydsENY
ARR8KF8sojZkEgMMrHGJhA1eMSPvOpxQh0QNL6BfMcXEeAMDb1zE5fAHs+0ptsNr
CZ++5CSppuH7/64St5fXoNaOla9k+OEd62GifaAoenpcP06pbGveVEgsaePB4NAC
oYKqU1nZucDMBPTM7M0xzei1T3WTwKji9uAhXUng3TI6IDRV7QI3wnQ7jdEencJ1
m9X8gXHpgms7cSL/AY3sukWxpejcHUtGN9adUaQ585PYwBigBFgGbAciUH6/u90=
=gRiC
-----END PGP SIGNATURE-----

Received on Saturday, 24 March 2012 16:22:24 UTC