Re: [xml-dev] Help with XInclude...

From
Oleg Tkachenko <>
Date
2006-11-01T10:57:56Z
ID
<>
Thread
Re: [xml-dev] Help with XInclude...
Richard Tobin wrote:
> In article <> you write:
>>     <xi:include href="b.xml"
>> xpointer="/VULNERABILITIES/VULNERABILITY[ID_NUMBER=1070]/DESC"/>
> 
> That's an XPath, not an XPointer.
> 
> Try 
> 
>  xpointer="xpointer(/VULNERABILITIES/VULNERABILITY[ID_NUMBER=1070]/DESC)"/>
> 
> but there's no guarantee that your XInclude implementation supports
> the "XPointer xpointer()" scheme.

I'd suggest also trying
xpointer="xpath1(/VULNERABILITIES/VULNERABILITY[ID_NUMBER=1070]/DESC)"/>

Some XInclude implementations support xpath1() scheme as XPath is much 
easier to implement than full xpointer() scheme.

-- 
Oleg