<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I am trying to follow your first example. What works with <font color="#ab4500">...</font><span style="font-size: 12px; color: rgb(249, 151, 94); "> xpointer</span><span style="font-size: 12px; color: rgb(255, 148, 80); ">=</span><span style="color: rgb(171, 69, 0); font-size: 12px; ">"element(controller-os)",
 fails with below</span>
<div><br>
</div>
<div>
<div style="margin: 0px; font-size: 12px; color: rgb(171, 69, 0); ">
<div style="margin: 0px; "><span style="color: #9e44d3"><?xml version="1.0" encoding="utf-8"?></span><span style="color: #000000"><br>
</span><span style="color: #021da7"><chapter</span><span style="color: #f9975e"> xmlns</span><span style="color: #ff9450">=</span>"<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>"<span style="color: #000000"><br>
</span><span style="color: #f9975e">  </span><span style="color: #00aad6">xmlns:xi</span><span style="color: #ff9450">=</span>"<a href="http://www.w3.org/2001/XInclude">http://www.w3.org/2001/XInclude</a>"<span style="color: #000000"><br>
</span><span style="color: #f9975e">  </span><span style="color: #00aad6">xmlns:xlink</span><span style="color: #ff9450">=</span>"<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>"<span style="color: #f9975e"> version</span><span style="color: #ff9450">=</span>"5.0"<span style="color: #000000"><br>
</span><span style="color: #f9975e">  xml:id</span><span style="color: #ff9450">=</span>"bk001-ch003-associate-general"<span style="color: #021da7">></span><span style="color: #000000"><br>
  </span><span style="color: #021da7"><title></span><span style="color: #000000">Associate General</span><span style="color: #021da7"></title></span></div>
</div>
<div style="margin: 0px; font-size: 12px; color: rgb(171, 69, 0); "><span style="color: #021da7"><section</span><span style="color: #f9975e"> id</span><span style="color: #ff9450">=</span>"controller-os"<span style="color: #021da7">><xi:include</span><span style="color: #f9975e">
 href</span><span style="color: #ff9450">=</span>"../basic-install/src/basic-install_controller-common.xml"<span style="color: #f9975e"> xpointer</span><span style="color: #ff9450">=</span>"xpointer(id('controller-os')/*)"<span style="color: #021da7">/></span><span style="color: #000000"><br>
  </span><span style="color: #021da7"><para><link</span><span style="color: #f9975e"> xlink:href</span><span style="color: #ff9450">=</span>"<a href="https://blueprints.launchpad.net/openstack-manuals/+filebug">https://blueprints.launchpad.net/openstack-manuals/+filebug</a>"<span style="color: #021da7">></span><span style="color: #000000">Submit
 a bug on<br>
    the section above</span><span style="color: #021da7"></link></para></section></span></div>
<div>...</div>
<div>source file </div>
<div>
<div style="margin: 0px; font-size: 12px; color: rgb(171, 69, 0); "><span style="color: #9e44d3"><?xml version="1.0" encoding="UTF-8"?></span><span style="color: #000000"><br>
</span><span style="color: #021da7"><section</span><span style="color: #f9975e"> xmlns</span><span style="color: #ff9450">=</span>"<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>"<span style="color: #000000"><br>
</span><span style="color: #f9975e">    </span><span style="color: #00aad6">xmlns:xi</span><span style="color: #ff9450">=</span>"<a href="http://www.w3.org/2001/XInclude">http://www.w3.org/2001/XInclude</a>"<span style="color: #000000"><br>
</span><span style="color: #f9975e">    </span><span style="color: #00aad6">xmlns:xlink</span><span style="color: #ff9450">=</span>"<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>"<span style="color: #f9975e"> version</span><span style="color: #ff9450">=</span>"5.0"<span style="color: #000000"><br>
</span><span style="color: #f9975e">    xml:id</span><span style="color: #ff9450">=</span>"basic-install_controller-common"<span style="color: #021da7">></span><span style="color: #000000"><br>
                </span><span style="color: #021da7"><title></span><span style="color: #000000">Common services</span><span style="color: #021da7"></title></span><span style="color: #000000"><br>
          <span class="Apple-tab-span" style="white-space:pre"></span></span><span style="color: #021da7"><section</span><span style="color: #f9975e"> xml:id</span><span style="color: #ff9450">=</span>"controller-os"<span style="color: #021da7">></span><span style="color: #000000"><br>
        </span><span style="color: #021da7"><title></span><span style="color: #000000">Operating System</span><span style="color: #021da7"></title></span></div>
</div>
<div apple-content-edited="true">
<div style="font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">
<span class="Apple-style-span" style="font-size: 13px; "><span style="font-family: Calibri; font-weight: bold; color: gray; margin: 0px; padding: 0px; "><br>
</span></span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">
<span class="Apple-style-span" style="font-size: 13px; "><span style="font-family: Calibri; font-weight: bold; color: gray; margin: 0px; padding: 0px; ">Sean Roberts</span></span><span class="Apple-style-span" style="font-size: 13px; "><br>
</span><span class="Apple-style-span" style="font-size: 13px; "><span style="color: gray; font-family: Calibri; margin: 0px; padding: 0px; ">Infrastructure Strategy</span></span></div>
<div style="font-size: 14px; "><span class="Apple-style-span" style="font-size: 13px; "><font color="#808080" face="Calibri"><a href="mailto:seanrob@yahoo-inc.com">seanrob@yahoo-inc.com</a> </font></span><span style="color: gray; font-family: Calibri; font-size: 13px; ">(925)
 980-4729</span></div>
</div>
</div>
<br>
<div>
<div>On Jul 31, 2013, at 8:36 AM, Shaun McCance <<a href="mailto:shaunm@gnome.org">shaunm@gnome.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">XInclude doesn't let you add child elements to the included element,<br>
but you can include multiple elements with XInclude, just not with<br>
the element() scheme. The xpointer() scheme allows you to use XPath,<br>
so you can put something at the end by manually duplicating the<br>
section element, then including the child content of the target<br>
section element:<br>
<br>
<section id="some_id"><br>
 <xi:include href="some_file.xml"<br>
            xpointer="xpointer(id('some_id')/*)"/><br>
 <para>Something at the end</para><br>
</section><br>
<br>
It's more complicated to put something at the beginning, because<br>
you have to account for things like title and info elements. Not<br>
accounting for titleabbrev and subtitle:<br>
<br>
<section id="some_id"><br>
 <xi:include href="some_file.xml"<br>
            xpointer="xmlns(db=<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>)<br>
                      xpointer(id('some_id')/db:title)"><br>
   <xi:fallback/><br>
 </xi:include><br>
 <xi:include href="some_file.xml"<br>
            xpointer="xmlns(db=<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>)<br>
                      xpointer(id('some_id')/db:info)"><br>
   <xi:fallback/><br>
 </xi:include><br>
 <para>Something at the beginning</para><br>
 <xi:include href="some_file.xml"<br>
            xpointer="xmlns(db=<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>)<br>
                      xpointer(id('some_id')/*<br>
                      [not(self::db:title or self::db:info)]<br>
                      )"/><br>
 <para>Something at the end</para><br>
</section><br>
<br>
Kind of messy, but still more long-term maintainable than manually<br>
including each child element of the target section.<br>
<br>
I wrote a howto on XInclude a couple years back, which you might<br>
find useful:<br>
<br>
<a href="http://blogs.gnome.org/shaunm/2011/07/21/understanding-xinclude/">http://blogs.gnome.org/shaunm/2011/07/21/understanding-xinclude/</a><br>
<br>
--<br>
Shaun<br>
<br>
On Wed, 2013-07-31 at 02:41 +0000, Sean Roberts wrote:<br>
<blockquote type="cite">Both actually. I want to place a submit bug link at the end of each<br>
section. Also want to add some text at the beginning for many of the<br>
included sections describing training objectives. <br>
<br>
<br>
I'd also be interested in ideas on using xslt to rip and replace tags.<br>
But that probably can wait a little bit. <br>
<br>
~sean<br>
<br>
On Jul 30, 2013, at 9:18, "Anne Gentle"<br>
<annegentle@justwriteclick.com> wrote:<br>
<br>
<br>
<blockquote type="cite">Hi Sean, <br>
Do you want some sort of "glue text" so that the guide can be read<br>
in a linear way? Or is it text that you'll use over and over, such<br>
as "Now go take the test." Let us know what you're trying to do. <br>
<br>
<br>
You can't really strip a tag at a time without XSLT (the transform<br>
code that lives in the Maven plugin).<br>
Anne<br>
<br>
<br>
On Tue, Jul 30, 2013 at 9:19 AM, Sean Roberts<br>
<seanrob@yahoo-inc.com> wrote:<br>
       Ideas on how to add text to the included section or final<br>
       page? Part of the problem may be from that I'm stuck using<br>
       the chapter or section of the original XML. If I could<br>
       include, strip the section tags, then I could add text no<br>
       problem. <br>
<br>
       ~sean<br>
<br>
       On Jul 30, 2013, at 6:54, "Anne Gentle"<br>
       <annegentle@justwriteclick.com> wrote:<br>
<br>
<br>
<blockquote type="cite">I think DocBook sees the markup as a closed section<br>
followed by a para whic is invalid.<br>
<br>
Anne Gentle <br>
Content Stacker<br>
anne@openstack.org<br>
<br>
<br>
<br>
On Jul 30, 2013, at 8:38 AM, Sean Roberts<br>
<seanrob@yahoo-inc.com> wrote:<br>
<br>
<br>
<blockquote type="cite">I am pulling in a section through <xi:include<br>
href="http.....xpointer="element(foobar)"></xi:include><br>
If I want to use additional text, I'm forced to make it<br>
a section as well. I want to add text to the beginning<br>
or end of the the included section. <br>
I tried <xi:include<br>
href="http.....xpointer="element(foobar)"><para>blah<br>
blah</para></xi:include><br>
, which shows up without error in oxygen, but maven<br>
seems to strip it out during HTML build. <br>
<br>
~sean<br>
<br>
On Jul 30, 2013, at 6:24, "Anne Gentle"<br>
<annegentle@justwriteclick.com> wrote:<br>
<br>
<br>
<blockquote type="cite">Hi Sean,  <br>
Post your XML code so we can take a closer look, or a<br>
link to the patch and the file name so we can look at<br>
it. <br>
Thanks!<br>
Anne<br>
<br>
<br>
On Tue, Jul 30, 2013 at 2:56 AM, Sean Roberts<br>
<seanrob@yahoo-inc.com> wrote:<br>
       I have another question. I'm bringing in the<br>
       sections which is the smallest page into the<br>
       built HTML. I'm trying to add text and links<br>
       within the final HTML page without success.<br>
       Oxygen shows the link and text fine, but the<br>
       maven built site only has the included<br>
       section. Perhaps some adjustment within the<br>
       pom file...<br>
<br>
       ~sean<br>
<br>
       On Jul 29, 2013, at 9:34, "Diane Fleming"<br>
       <diane.fleming@rackspace.com> wrote:<br>
<br>
<br>
<blockquote type="cite">I don't know if this will work, but this is<br>
</blockquote>
       how I used xpointer to pull in<br>
<blockquote type="cite">content from one file to another:<br>
<br>
<br>
Target file (pulls in content)<br>
<br>
<title>Overview</title><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over1)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over2)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over3)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over4)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over5)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over6)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over7)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over8)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over9)"/><br>
<xi:include href="ch_gs_overview.xml"<br>
              xpointer="element(over10)"/><br>
<xi:include href="section_virt_ext.xml"/><br>
<br>
<br>
<br>
Source file<br>
<br>
<br>
  <title>Overview</title><br>
  <section<br>
</blockquote>
       xml:id="cn_overview"><title>Cloud<br>
       Networks</title><br>
<blockquote type="cite">  <para xml:id="over1">Cloud Networks lets<br>
</blockquote>
       you create a virtual<br>
<blockquote type="cite">      Layer 2 network, known as an isolated<br>
</blockquote>
       network, which gives you<br>
<blockquote type="cite">      greater control and security when you<br>
</blockquote>
       deploy web applications.<br>
<blockquote type="cite"></para><br>
  <para xml:id="over2">When you create a<br>
</blockquote>
       next generation Cloud<br>
<blockquote type="cite">      Server, Cloud Networks enables you to<br>
</blockquote>
       attach one or more<br>
<blockquote type="cite">      networks to your server. You can<br>
</blockquote>
       attach an isolated network<br>
<blockquote type="cite">      that you have created or a Rackspace<br>
</blockquote>
       network. </para><br>
<blockquote type="cite">  <para xml:id="over3">If you install the<br>
</blockquote>
       &virt_ext;, you can create<br>
<blockquote type="cite">      a virtual interface to a specified<br>
</blockquote>
       Rackspace or isolated<br>
<blockquote type="cite">      network and attach that network to an<br>
</blockquote>
       existing server<br>
<blockquote type="cite">      instance. You can also list virtual<br>
</blockquote>
       interfaces for and delete<br>
<blockquote type="cite">      virtual interfaces from a server<br>
</blockquote>
       instance. For information<br>
<blockquote type="cite">      about the &virt_ext;, see <xref<br>
</blockquote>
       linkend="section_virt_ext"<br>
<blockquote type="cite">      />.</para><br>
<br>
<br>
etc.<br>
<br>
<br>
Diane<br>
<br>
<br>
</blockquote>
       ----------------------------------------------<br>
<blockquote type="cite">Diane Fleming<br>
Software Developer II - US<br>
<br>
diane.fleming@rackspace.com<br>
Cell  512.323.6799<br>
Office 512.874.1260<br>
Skype drfleming0227<br>
Google-plus diane.fleming@gmail.com<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 7/29/13 9:27 AM, "Sean Roberts"<br>
</blockquote>
       <seanrob@yahoo-inc.com> wrote:<br>
<blockquote type="cite"><br>
<blockquote type="cite">I'm working on reusing content from remote<br>
</blockquote>
</blockquote>
       XML formatted sources to<br>
<blockquote type="cite">
<blockquote type="cite">create new content. I'm using xi:include<br>
</blockquote>
</blockquote>
       xpointer to a section of an<br>
<blockquote type="cite">
<blockquote type="cite">existing XML file. Using the editor oxygen<br>
</blockquote>
</blockquote>
       I can see the remote content,<br>
<blockquote type="cite">
<blockquote type="cite">so I know my href is valid. But maven fails<br>
</blockquote>
</blockquote>
       to build the html from the<br>
<blockquote type="cite">
<blockquote type="cite">xml returning bad pointer.<br>
<br>
The remote content isn't using DTD or<br>
</blockquote>
</blockquote>
       XMLschema. I'm hoping I can figure<br>
<blockquote type="cite">
<blockquote type="cite">out how to walk the structure without<br>
</blockquote>
</blockquote>
       having to.<br>
<blockquote type="cite">
<blockquote type="cite">Any XML peoples that can help?<br>
<br>
~sean<br>
<br>
</blockquote>
</blockquote>
       _______________________________________________<br>
<blockquote type="cite">
<blockquote type="cite">Openstack-docs mailing list<br>
Openstack-docs@lists.openstack.org<br>
<br>
</blockquote>
</blockquote>
       http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs<br>
<blockquote type="cite"><br>
<br>
</blockquote>
<br>
       _______________________________________________<br>
       Openstack-docs mailing list<br>
       Openstack-docs@lists.openstack.org<br>
       http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Anne Gentle<br>
annegentle@justwriteclick.com<br>
</blockquote>
</blockquote>
</blockquote>
<br>
<br>
<br>
<br>
-- <br>
Anne Gentle<br>
annegentle@justwriteclick.com<br>
</blockquote>
_______________________________________________<br>
Openstack-docs mailing list<br>
Openstack-docs@lists.openstack.org<br>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs<br>
</blockquote>
<br>
<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>