oXygen XML Editor Blog
///////////////////////////////////////////
DITA 1.3 Branch Filtering - Next Generation of Reuse
Posted: 02 Sep 2015 05:51 AM PDT
http://feedproxy.google.com/~r/AboutOxygenXmlEditor/~3/tZnLUSz5jiU/dita-13-…
Thanks to the hard working OASIS DITA TC Group the DITA 1.3 standard is
quite close to being released. Oxygen 17.1 which will be released
probably in September this year will have experimental DITA 1.3
support. This will include publishing using a custom build of the
latest DITA Open Toolkit 2.x engine in which the main
developer Jarno Elovirta has already added incipient support for key
scopes and branch filtering. In this blog post I'm going to give you a
small example of how branch filtering can benefit two cases of reuse
which could not be done previously. You can read more about branch
filtering in the DITA 1.3 specs. Case 1 - Combine Two Profiles in the
Same Publication Let's say you have a DITA Project about
preparing and cooking vegetables. And your DITA Map looks
like this:<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA
Map//EN" "map.dtd">
<map>
<title>Cooking vegetables</title>
<topicref href="cleaningTableArea.dita" audience="novice"/>
<topicref href="preparingVegetables.dita"/>
<topicref href="addingExtraFlavor.dita" audience="expert"/>
</map> You have some content common both for expert and novice
users but you also have content which is specific for a target
audience. You do not need to teach expert chefs how to clean the
table and you do not want to teach novice cooks about enhanced
flavoring techniques. All is fine until at some point you decide to
produce a publication which contains merged inside both the novice
and the expert map contents. And here's where branch filtering
comes for help. You can create a main DITA Map which reuses your
current DITA Map with two profiling contexts:<!DOCTYPE map
PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>Cooking Vegetables.</title>
<topichead navtitle="Cooking for Beginners" keyscope="novice">
<topicref href="vegetables.ditamap" format="ditamap">
<ditavalref href="novice.ditaval"/>
</topicref>
</topichead>
<topichead navtitle="Cooking for Experts" keyscope="expert">
<topicref href="vegetables.ditamap" format="ditamap">
<ditavalref href="expert.ditaval"/>
</topicref>
</topichead>
</map> Case 2 - Reusing Common Topics with Different Product
NamesLet's say you have a simple DITA task in which you have
described how a certain task can be performed for a certain
product. In our case, the task describes peeling potatoes: The
task works and at some point in your Vegetables Soup publication you
realise you need to write a similar task about peeling cucumbers. The
task is exactly the same, except the product name. So naturally you
want to reuse the existing written task. For this we re-write the
task so that instead of of the product potatoes it contains two
consecutive profiled product names:Peeling <ph
product="potatoes">potatoes</ph><ph
product="cucumbers">cucumbers</ph>and include the task in the main
DITA Map in two places with different ditaval filters
applied:<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>Peeling Vegetables.</title>
<topichead navtitle="Potatoes">
<topicref href="peeling.dita">
<ditavalref href="potatoes.ditaval"/>
</topicref>
</topichead>
<topichead navtitle="Cucumbers">
<topicref href="peeling.dita">
<ditavalref href="cucumbers.ditaval"/>
</topicref>
</topichead>
</map> This kind of usage will produce in the HTML output folder two
topic HTML files from the single peeling.dita, one for each filter
context. The DITA samples for this post can be downloaded from
http://www.oxygenxml.com/forum/files/branchFilteringBlogSamples.zip. As
usual any feedback is welcomed. If you would like to beta test Oxygen
XML Editor 17.1 with experimental DITA 1.3 support please contact us:
support(a)oxygenxml.com.
--
You are subscribed to email updates from "oXygen XML Editor Blog."
To stop receiving these emails, you may unsubscribe now:
https://feedburner.google.com/fb/a/mailunsubscribe?k=y_tRXtumvTurKTedh51Jnl…
Email delivery powered by Google.
Google Inc., 1600 Amphitheatre Parkway, Mountain View, CA 94043, United
States
I'm receiving the following e-mail from a testing server that I'm using
feedback on:
[73.53.13.170] - 2015-08-26 10:27:46: Unknown error type: [8] Undefined
property: RecordSet::$m_CurrentRow on line 200 in file
/var/www/html/PingID-API/oxygen-webhelp/resources/php/classes/db/RecordSet.php
, PHP 5.4.16 (Linux)
This happens when I submit a comment in the comment system. Doesn't seem to
matter if I'm authenticated or not.
I've tried this on CentOS 7.0 and SUSE Linux Enterprise 11 SP3, and both of
them are generating this message for some reason. The output was generated
with Oxygen 17.
I've got other webhelp with feedback that works OK (in fact, I can use the
same output set on another server and it works just fine). I've got mysql
installed and the php mysql extension is present as well. I've set up the
database fine, and I can see the comments in the UI, but the e-mails being
sent only contain this error.
I'm not even sure where to start to troubleshoot this - anyone have any
ideas?
Thanks,
Jim
--
[image: Ping Identity logo] <https://www.pingidentity.com/>
Jim Henderson
Technical Writer
@ jhenderson(a)pingidentity.com [image: phone] +1 720.390.3443 Connect with
us… [image: twitter logo] <https://twitter.com/pingidentity> [image:
youtube logo] <https://www.youtube.com/user/PingIdentityTV> [image:
LinkedIn logo] <https://www.linkedin.com/company/21870> [image: Facebook
logo] <https://www.facebook.com/pingidentitypage> [image: Google+ logo]
<https://plus.google.com/u/0/114266977739397708540> [image: slideshare logo]
<http://www.slideshare.net/PingIdentity> [image: flipboard logo]
<http://flip.it/vjBF7> [image: rss feed icon]
<https://www.pingidentity.com/blogs/>