Next in thread → Next in month →

Re: [docbook-apps] XInclude from sources different than Docbook or text files

From
Zbyszek Cybulski <>
Date
2006-05-30T06:48:25+00:00
ID
Thread
Re: [docbook-apps] XInclude from sources different than Docbook or text files
Unfortunately, this is not a solution.
I have a source of elements like this:

<Identity id="someID">
  <Description>Some text</Description>

</Identity>

and need to get the content of <Description>. Does this require defining another namespace? How should I deal with it?

Thanks,
-Zbyszek

 

On 5/26/06, Dalan Hurst <> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've had reasonable success with:

<xi:include href=""external-data.xml"" xpointer="id" xmlns:xi="http://

www.w3.org/2001/XInclude"/>

I generally only use use xml:ids and process with xsltproc.

hope that helps,
d

On May 26, 2006, at 8:26 AM, Zbyszek Cybulski wrote:

> Hi list,
>

> I have a need to include content that is in an XML file, which is not
> Docbook. I have tried to get it working in different ways, but finally
> failed. For example:
>
> <para>
> <xi:include href="""
external-data.xml" xpointer="element(/1/1/2)"
> xmlns:xi="http://www.w3.org/2001/XInclude"/>
> </para>
>
> works, but this is not satisfactory to me. I need to refer to external

> elements by their IDs. So, I have tried the following:
>
> <para>
> <xi:include href=""external-data.xml"> xpointer="element(/Name/Identity[@id='conRef']/Description)"

> xmlns:xi="http://www.w3.org/2001/XInclude"/>
> </para>
>
> and
>
> <para>
> <xi:include href=""../../../../terminology/terminology.xml""

> xpointer="element(conRef)"
> xmlns:xi="http://www.w3.org/2001/XInclude"/>
> </para>
>
> and
>
> <para>

> <xi:include href=""../../../../terminology/terminology.xml"> xpointer="xpointer(id('conRef'))"
> xmlns:xi="http://www.w3.org/2001/XInclude
"/>
> </para>
>
> and
>
> <para>
> <xi:include href=""../../../../terminology/terminology.xml"> xpointer="conRef" xmlns:xi="
http://www.w3.org/2001/XInclude"/>
> </para>
>
> None of them worked.
> Can I include such a content without running an XSLT transformation
> the external source to convert it to Docbook? Any help is appreciated.

>
> Regards,
>
> -Zbyszek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 

> For additional commands, e-mail: -
> open.org
>
>
>

-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEd0v48YQ3vbbmntMRArBPAJ47iv+0A9iycdR8Y1T0Uo8WFoYfxACfd8zV
f8IZK42xWB+5PyaI9GRqTAE=
=Fsh3
-----END PGP SIGNATURE-----
Next in thread → Next in month →