- From: David Cramer <david@thingbag.net>
- Date: Thu, 12 Jun 2014 16:41:31 -0500
- To: xproc-dev@w3.org
On 6/12/14, 3:32 PM, Imsieke, Gerrit, le-tex wrote: > If you use doc(resolve-uri(/ol:book/@path, base-uri(.))) for the href > attribute, it’s no wonder that you’re seeing the files’ content there. > Just use resolve-uri(/ol:book/@path, > base-uri(.)) > ;) Indeed, I feel silly. I cut and paste the expression from my xslt without thinking. Now I have it working with the iteration. I can tell that it's getting the right value for each path: Message: Loading: file:/Users/david.cramer/rax/published/otter/docbook/src/docbkx/autoscale-gettingstarted.xml Message: Loading: file:/Users/david.cramer/rax/published/otter/docbook/src/docbkx/autoscale-devguide.xml But still the xslt fails when it tries to load an xinclude with xpointer="element(someId)": WARNING: org.xml.sax.SAXParseException: Include operation failed, reverting to fallback. Resource error reading file as XML (href='chapters/glossary.xml'). Reason: XPointer resolution unsuccessful. I've put the current pipeline here: http://pastebin.com/nqhia4x0 So what am I misunderstanding now? <p:for-each xmlns:ol="http://docs.rackspace.com/olink"> <p:iteration-source select="/ol:books/ol:book"/> <cx:message> <p:with-option name="message" select="concat('Loading: ', resolve-uri(//@path, base-uri(.)))"/> </cx:message> <p:load> <p:with-option name="href" select="resolve-uri(//@path, base-uri(.))"/> </p:load> <p:xinclude/> </p:for-each> Thanks, David
Received on Thursday, 12 June 2014 21:42:01 UTC