<div dir="ltr">Thanks Sorin. I ended up using a different plugin anyway. It would be great if a future version of the OxygenXML webhelp output incorporated this mini-TOC feature by default. <div><br></div><div>Here are details on how I integrated the plugin: <a href="http://idratherbewriting.com/2014/11/13/add-a-mini-toc-to-your-oxygenxml-webhelp-topics/">http://idratherbewriting.com/2014/11/13/add-a-mini-toc-to-your-oxygenxml-webhelp-topics/</a></div><div><br></div><div>By the way, when will I be able to associate specific jQuery scripts with specific transforms? Right now it's inefficient to hack the Oxygen source code's JS file to add the scripts I want. They end up getting applied to every OxygenXML transform. The setup should parallel how you've done it with custom styles, right?</div><div><br></div><div>Tom</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">---------------------<div>801-822-2241<br>blog: <a href="http://idratherbewriting.com" target="_blank">idratherbewriting.com</a><br>twitter: tomjohnson</div></div></div></div>
<br><div class="gmail_quote">On Tue, Nov 11, 2014 at 2:34 AM, Oxygen XML Editor Support (Sorin Ristache) <span dir="ltr"><<a href="mailto:support@oxygenxml.com" target="_blank">support@oxygenxml.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
You can use the class attribute when you call the plugin:<br>
<br>
<script type="text/javascript" charset="utf-8"><br>
$(document).ready(function(){ $(".toc_plugin").<u></u>tableOfContents(); })<br>
</script><br>
<br>
Did you call the plugin on an empty container element? For example:<br>
<br>
<div class="toc_plugin"></div><br>
<br>
or:<br>
<br>
<ul class="toc_plugin"></ul><br>
<br>
<br>
Best regards,<br>
Sorin<br>
<br>
<oXygen/> XML Editor<br>
<br>
<a href="http://www.oxygenxml.com" target="_blank">http://www.oxygenxml.com</a><span class=""><br>
<br>
<br>
Tom Johnson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there any way to get an ID on a page using DITA and transforming with the DITA OT? For example, I want to add something like this:<br>
<br>
<p id="toc"/><br>
<br>
Even if I hack the Oxygen source to allow IDs to pass through, as I described here (<a href="http://idratherbewriting.com/wpdita/toc_publishing/jquery_side_panel/" target="_blank">http://idratherbewriting.com/<u></u>wpdita/toc_publishing/jquery_<u></u>side_panel/</a>), the ID gets prepended with the topic ID. This makes it difficult to trigger the jQuery script, which has a trigger of #toc. Each page's p id will change based on the page's topic ID. <br>
I tried using a class with the jquery plugin instead, but it doesn't seem to work. This is the TOC plugin: <a href="http://fuelyourcoding.com/scripts/toc/index.html" target="_blank">http://fuelyourcoding.com/<u></u>scripts/toc/index.html</a>.<br>
<br>
Thanks,<br>
<br>
Tom<br>
</blockquote>
<br></span>
______________________________<u></u>_________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a><br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/<u></u>mailman/listinfo/oxygen-user</a><br>
</blockquote></div><br></div>