Re: [docbook-apps] support for xpointer

2014-09-19 Thread Stefan Seefeld
On 2014-09-14 16:36, Richard Hamilton wrote: Hi Stefan, I didn't say it was elegant:-). I agree that DocBook transclusion may be the way to go. I need to look into it further for our book process. And a multi-stage process works well for us. Maybe it's my long experience with Unix, but

Re: [docbook-apps] support for xpointer

2014-09-19 Thread Thomas Schraitle
Hi Stefan, On Fri, 19 Sep 2014 09:53:33 -0400 Stefan Seefeld ste...@seefeld.name wrote: [...] Ideally I would like to be able to encode the query in an attribute, much as I would have preferred with xpointer, such as listitem my:ref=*[@xml:id='foo']//d:listitem / However, I can't manage

Re: [docbook-apps] support for xpointer

2014-09-19 Thread Stefan Seefeld
Hi Thomas, On 2014-09-19 10:17, Thomas Schraitle wrote: Hi Stefan, On Fri, 19 Sep 2014 09:53:33 -0400 Stefan Seefeld ste...@seefeld.name wrote: [...] Ideally I would like to be able to encode the query in an attribute, much as I would have preferred with xpointer, such as listitem

Re: [docbook-apps] support for xpointer

2014-09-16 Thread davep
On Sun, 14 Sep 2014 16:01:27 -0400 Stefan Seefeld ste...@seefeld.name wrote: On 09/14/2014 02:02 PM, Richard Hamilton wrote: Regarding the question of pulling the second listitem from a section with a particular id, I think the following will do the trick (I don't claim it's the most

Re: [docbook-apps] support for xpointer

2014-09-14 Thread Jirka Kosek
On 14.9.2014 3:22, Stefan Seefeld wrote: Can anyone confirm the state of xpointer support in xsltproc, or any other Free XSLT processor for that matter ? (For example, what about saxon ?) Are there any (free) test suites that I could use to get a sense of what is supported and what not ?

Re: [docbook-apps] support for xpointer

2014-09-14 Thread Stefan Seefeld
On 09/14/2014 05:09 AM, Jirka Kosek wrote: On 14.9.2014 3:22, Stefan Seefeld wrote: Can anyone confirm the state of xpointer support in xsltproc, or any other Free XSLT processor for that matter ? (For example, what about saxon ?) Are there any (free) test suites that I could use to get a

Re: [docbook-apps] support for xpointer

2014-09-14 Thread Richard Hamilton
I have had success using xmllint to access nodes using xpath. I can't tell you how well it supports xpath, but I am able to do things like the example below, which turns a chapter into a preface and changes the title. preface titlePreface/title xi:include href=ebook-intro.xml

Re: [docbook-apps] support for xpointer

2014-09-14 Thread Stefan Seefeld
On 09/14/2014 02:02 PM, Richard Hamilton wrote: Regarding the question of pulling the second listitem from a section with a particular id, I think the following will do the trick (I don't claim it's the most elegant way to do this, but it works with xmllint): xi:include href=filename.xml

Re: [docbook-apps] support for xpointer

2014-09-14 Thread Richard Hamilton
Hi Stefan, I didn't say it was elegant:-). I agree that DocBook transclusion may be the way to go. I need to look into it further for our book process. And a multi-stage process works well for us. Maybe it's my long experience with Unix, but I use multi-stage processes all the time. They let

[docbook-apps] support for xpointer

2014-09-13 Thread Stefan Seefeld
Hello, Sorry if the following is slightly off-topic. I'm trying to refactor a large docbook document (an API specification) into multiple documents, including relevant chunks of content from a meta-model document into a language-bindings document via xinclude / xpointer. I played a bit with the