Support for XInclude

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Support for XInclude

mjgraham
Hi,

Does OPS offer full support of XInclude? I have a document:

<model>
  <resource>
    <vr:Resource xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10">
...

and I just want to include the vr:Resource section in my instance so:

<xforms:model>
  <xforms:instance id="resource">
    <xi:include href="input:data"
xpointer="xmlns(vr='http://www.ivoa.net/xml/VOResource/0.10)xpointer(/model/resource/vr:Resource)"/>
  </xforms:instance>
...

but this just inclides the whole document
(/model/resource/vr:VOResource) and just the fragment I asked for.

    Cheers,

    Matthew



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Support for XInclude

Ross Horne
Matthew,

The xpointer element of xinclude is not yet supported.

I'm currently working in an elaborate work around involving url generating the documents to be included and feeding them, aggregated into one document, into an XSLT transform which extracts the appropriate fragments and places them in the resulting document. Not pretty and probably not efficient but possibly works.

Ross.

On 31/03/06, Matthew Graham <[hidden email]> wrote:
Hi,

Does OPS offer full support of XInclude? I have a document:

<model>
  <resource>
    <vr:Resource xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10 ">
...

and I just want to include the vr:Resource section in my instance so:

<xforms:model>
  <xforms:instance id="resource">
    <xi:include href="input:data"
xpointer="xmlns(vr='http://www.ivoa.net/xml/VOResource/0.10)xpointer(/model/resource/vr:Resource)"/>
  </xforms:instance>
...

but this just inclides the whole document
(/model/resource/vr:VOResource) and just the fragment I asked for.

    Cheers,

    Matthew




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto: [hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Support for XInclude

Erik Bruchez
Administrator
In reply to this post by mjgraham
Matthew Graham wrote:

> Does OPS offer full support of XInclude? I have a document:

No, the xpointer attribute is not supported yet.

-Erik



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws