OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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 <d@webbscreek.us> 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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-
> open.org
>
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEd0v48YQ3vbbmntMRArBPAJ47iv+0A9iycdR8Y1T0Uo8WFoYfxACfd8zV
f8IZK42xWB+5PyaI9GRqTAE=
=Fsh3
-----END PGP SIGNATURE-----



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]