Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


xinclude / xpointer problem (validation by Altova XML Spy 2008 Sp1)

From: RolfK <Rolf.Kemper@--.-----.--->
To: NULL
Date: 2/6/2009 9:31:00 AM
Dear ALL,

may be someone can help me on an xpointer issue.
I'm doing sucessfully xinclude but I got stuck with xpointer.
Im including an xml file which holds
<mtsi:SpecItems>
      <SpecItem ....
     <SpecItem ...
   ....
</mtsi:SpecItem/>


Working example:
<SpecItems>
	<xi:include href="SpecItems_Regulator.xml" xpointer="element(/1/1)  /
>
</SpecItems>

The pity here is that I need to include all items below the root node.
I tried  <xi:include href="SpecItems_Regulator.xml" xpointer="element(/
1/*)  />
But with no success. In case I run all with saxon the parts which
should be included are not there.
Hence I guess the error from XMLSpy">XMLSpy is right.

Additional the xpath like approch does not work too
<SpecItems>
	<xi:include href="SpecItems_Regulator.xml" xpointer="//SpecItem"  />
</SpecItems>

In all case except the very first wirking example I get an error
message during validation
E.g for the last one described here:
File myfile.xml is not valid.
	XPointer '//SpecItem' doesn't resolve to an information item.
		Error location: eedoc:EEDoc / eedoc:Content / mgt:MPTest /
SpecItems / xi:include / @xpointer
		Details
			XPointer: 3.1 Syntax: '//SpecItem' is no valid xpointer.
			XInclude: 3.2 xi:fallback Element: XPointer '//SpecItem' doesn't
resolve to an information item.


Any idea how to make this right is highly welcome

Thanks

Rolf


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent