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: xinclude xpointer not including with id


Some background I am using xsltproc to process modular documents to pdf.
I have a file where I just want the one element included.
It is not getting included and I am getting error messages, like:
 element include: XInclude error : could not load Version.xml
 
I would think it would be a xsltproc issue, but I am following the examples in the documentation and it is not working like that... so perhaps there is something obvious here I am overlooking.
 
so file Version.xml contains :
 
<chapter>
  <chapterinfo>
    <date id="DateVer">January 2012 Version 1.2.3</date>
    <releaseinfo id="RelInfo">12-002009-16.c</releaseinfo>
    <copyright id="Copyright">
      <year>2012. All rights reserved</year>
    </copyright>
  </chapterinfo>...
 
 
In my file Book.xml
I am tring to include the date info...
<!--Original xinclude should have worked per example in chapter 23-->
<!--xi:include href="" xpointer="DateVer"
                xmlns:xi="http://www.w3.org/2001/XInclude" / -->
 
<!--according to doc this way should also too, but does not-->
<xi:include href="" xpointer="xpointer(id('DateVer'))"
                xmlns:xi="http://www.w3.org/2001/XInclude" />
 
I have also tried :
<!--xi:include href="" xpointer="element(DateVer)"
                xmlns:xi="http://www.w3.org/2003/XInclude" / -->
and
<!--xi:include href="" xpointer="element(date)"
                xmlns:xi="http://www.w3.org/2003/XInclude" / -->
 
 
and none of these work, I am only interested in including the content of the <date> element from the Version.xml file.

Now were I to do, this,
 <xi:include href="" xpointer="element(/1)"
                xmlns:xi="http://www.w3.org/2001/XInclude" />
 
then I get the entire contents from the Version.xml, which is not what I am interested in.
Is there something that I am missing here?
Why is this not working as indicated? Any suggestions?
 
Thanks,
/Gregorio
 
 
 
 


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