<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
i found this example on <a href="http://wiki.docbook.org/Using XInclude">http://wiki.docbook.org/Using%20XInclude</a>
<div>
<pre style="border: 1pt solid rgb(174, 189, 204); background-color: rgb(243, 245, 247); padding: 5pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; font-size: 16px; "><xi:include href="path/to/source/file/source-docbook.xml"
<span class="anchor" id="line-7"></span>             xmlns:xi="<a href="http://www.w3.org/2001/XInclude">http://www.w3.org/2001/XInclude</a>"
<span class="anchor" id="line-8"></span>             xpointer="xpointer(//section[@id='IdOfTheSourceSection']/title/following-sibling::*)"/></pre>
<div><font color="#001e57">my version of this </font></div>
<div>
<div style="margin: 0px; font-size: 12px; "><font color="#001e57">    <xi:include href="../install-guide/basic-install-files/basic-install_architecture.xml"
<br>
      xpointer="xpointer(//chapter[@id='basic-install_architecture']/title/following-sibling::*)"/></font></div>
</div>
<div style="margin: 0px; font-size: 12px; "><font color="#001e57"><br>
</font></div>
<div><font color="#001e57">fails on build with same SEVERE: 100:40:err:XD0023:Expression could not be evaluated</font></div>
<div><br>
</div>
<div><b>David and Shaun: </b><b>Should we just dump trying to use xpointer and xpath?  I'd really like to be able to include and parse content, but maybe this "working draft" isn't the way to go.  </b></div>
<div><b><br>
</b></div>
<div><b>Shaun: should the training-guides just make it simple by using a solid release version of the install guide and scrape content while providing a backllink to the original?</b></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 Sep 16, 2013, at 9:44 PM, Sean Roberts <<a href="mailto:seanrob@yahoo-inc.com">seanrob@yahoo-inc.com</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I was able to get <span style="font-size: 12px; color: rgb(2, 29, 167); "><xi:include</span><span style="font-size: 12px; color: rgb(249, 151, 94); "> href</span><span style="font-size: 12px; color: rgb(255, 148, 80); ">=</span><span style="color: rgb(171, 69, 0); font-size: 12px; ">"../install-guide/basic-install-files/basic-install_architecture.xml"</span><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; ">"xmlns(db=<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>) xpath(//*[@xml:id = 'basic-install_architecture'])"</span><font color="#021da7">>
 to work where the xml:id matches an xml:id in the included file. </font>
<div><font color="#021da7"><br>
</font></div>
<div><font color="#021da7">but what I really like to do is something like </font></div>
<div>
<div style="margin: 0px; font-size: 12px; color: rgb(171, 69, 0); "><span style="color: #021da7"><xi:include</span><span style="color: #f9975e"> href</span><span style="color: #ff9450">=</span>"../install-guide/basic-install-files/basic-install_architecture.xml"<span style="color: #f9975e">
 xpointer</span><span style="color: #ff9450">=</span>"xmlns(db=<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>) xpath(//*[@xml:id = 'basic-install_architecture']/*[not(self:db:chapter)])"<span style="color: #021da7">></span></div>
<div style="margin: 0px; font-size: 12px; color: rgb(171, 69, 0); "><span style="color: #021da7"><br>
</span></div>
<div style="margin: 0px; font-size: 12px; color: rgb(171, 69, 0); "><span style="color: #021da7">where I could include content, but strip out the source path hierarchy and replace it with new. </span></div>
<div style="margin: 0px; font-size: 12px; color: rgb(171, 69, 0); "><span style="color: #021da7">The reasoning is to change source chapters or sections into just raw content that could be inserted into an existing section or chapter. </span></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="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 class="Apple-interchange-newline">
<br>
</span></span></div>
<div style="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 Aug 6, 2013, at 1:37 PM, David Cramer <<a href="mailto:david.cramer@rackspace.com">david.cramer@rackspace.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">On 08/06/2013 02:41 PM, Sean Roberts wrote:<br>
<blockquote type="cite">oxygen is complaining about pointer scheme xpath is not supported and<br>
that a well-formed document requires a root element<br>
maven fails with expression could not be evaluated.<br>
<br>
<chapterxmlns="<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>"<br>
 xmlns:xi="<a href="http://www.w3.org/2001/XInclude">http://www.w3.org/2001/XInclude</a>"<br>
 xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>"version="5.0"<br>
 xml:id="bk001-ch003-associate-general"><br>
 <title>Associate General</title><br>
<xi:includehref="../basic-install/src/basic-install_controller-common.xml"xpointer="xmlns(db=<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>)<br>
xpath(//*[@xml:id = 'controller-os']/*[not(self::db::title)])"><br>
</blockquote>
<br>
Ok, change self::db::title to self::db:title (just a single colon<br>
between the namespace prefix and the element name).<br>
<br>
You will see that warning in Oxygen, but it's just a warning (not a<br>
validation error). This is because Oxygen doesn't recognize the xpointer<br>
schemes. I'll contact Oxygen to ask if they plan to add support for the<br>
xmlns and xpath schemes.<br>
<br>
Btw., it looks like the content you're including uses conditional<br>
text/profiling. So you'll want to add to the configuration section of<br>
your pom a param to indicate which profile you want (e.g. ubuntu).<br>
Otherwise you get all conditions:<br>
<br>
<profileOs>ubuntu</profileOs><br>
<br>
David<br>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Openstack-docs mailing list<br>
<a href="mailto:Openstack-docs@lists.openstack.org">Openstack-docs@lists.openstack.org</a><br>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>