Next in thread → Next in month →

RE: [docbook-apps] Xinclusions without surrounding tags

From
Dick Hamilton <>
Date
2006-02-09T20:18:31+00:00
ID
007301c62db6$0728f3e0$6701a8c0@MILES
Thread
RE: [docbook-apps] Xinclusions without surrounding tags
Thanks to the several people who pointed out that
replacing * with node() in the xpointer statement
will do the job.  Obvious once I thought about it:-).

Thanks,
Dick

> -----Original Message-----
> From: Dick Hamilton [mailto:] 
> Sent: Wednesday, February 08, 2006 7:55 PM
> To: 'Docbook-Apps'
> Subject: [docbook-apps] Xinclusions without surrounding tags
> 
> 
> I've been playing around with Xinclude and some of the examples
> that Bob has in his DocBook XSL guide.  Mostly it is working well,
> but there is one thing I've been trying to do that I can't get
> to work.
> 
> How can I create an xpointer reference that will return the
> textual contents of an element without the surrounding element
> markup?
> 
> E.g., Suppose I have the following in a source file:
> 
> <article> ...
> <section><title>My Funny Valentine</title></section>
> ....
> </article>
> 
> and what I'd like to do is grab just the text "My Funny
> Valentine" and drop it into another context.  For example,
> I might want my result to be:
> 
> <varlistentry><term>My Funny Valentine</term> etc.....
> 
> If I use xpointer="xpointer(/article/section/title)"
> in my xi:include call, I'll get the title element
> along with the content.
> 
> If I use xpointer="xpointer(/article/section/title/*)"
> xmllint fails.
> 
> After poking around W3C and other sources I can't find
> a way to do this, nor does it look like the standard
> handles this situation.  Is that the case, or is there
> a way to do this that I've missed?
> 
> Thanks,
> Dick Hamilton
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
>
Next in thread → Next in month →