[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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:rlhamilton@frii.com] > 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 > rlhamilton@frii.com > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: > docbook-apps-help@lists.oasis-open.org > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]