<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Thanks for the heads up
<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 class="Apple-interchange-newline">
<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 Aug 5, 2013, at 2:10 PM, David Cramer <<a href="mailto:david.cramer@rackspace.com">david.cramer@rackspace.com</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Unfortunately, the (confusingly named) xpointer scheme was only ever<br>
supported by libxml (xsltproc/xmllint). We're using Calabash to process<br>
the xml which supports the xpath() scheme. In my other post I provide<br>
examples of how to grab all the children of an element or all except for<br>
the title.<br>
<br>
In my experiments, I haven't gotten Calabash to be namespace-aware when<br>
handling the xpath expressions. I've posted a question to xproc-dev<br>
about this to find out what's up.<br>
<br>
Regards,<br>
David<br>
<br>
On 07/31/2013 10:36 AM, Shaun McCance wrote:<br>
<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>
<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>
</blockquote>
<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>