<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Steve,<br>
<br>
If you only want to make the topic titles look smaller you can open the:<br>
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\resource\commonltr.css<br>
CSS file (which gets copied to the output directory when transforming
to XHTML) and modify the font-sizes for the:<br>
.topictitle1<br>
.topictitle2<br>
.topictitle3<br>
......<br>
selectors.<br>
<br>
If you still want imbricated topic titles to start from <h2>
instead of <h1> you can open the:<br>
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\xsl\xslhtml\dita2htmlImpl.xsl<br>
and search for "NESTED TOPIC TITLES". There is a template below the
comment which generates the headings depending on the topic's level of
imbrication.<br>
In that template there is a line:<br>
<xsl:otherwise><xsl:value-of
select="count(ancestor::*[contains(@class,' topic/topic
')])"/></xsl:otherwise><br>
which you can replace with:<br>
<xsl:otherwise><xsl:value-of
select="count(ancestor::*[contains(@class,' topic/topic ')]) +
1"/></xsl:otherwise><b><br>
</b>to make the topics start from <h2> instead of <h1>.<b><br>
</b><br>
Regards,<br>
Radu<br>
<pre class="moz-signature" cols="72">--
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
<br>
On 4/19/2010 8:51 PM, Steve Matlock wrote:
<blockquote
cite="mid:x2u486770971004191051nc90f0f72qc15fd08c195bc2b5@mail.gmail.com"
type="cite">
<pre wrap="">I realize I'm probably asking for someone to explain the equivalent of
string theory to a high school freshman, but I'm struggling to
understand how to modify the dita2htmlImpl.xsl file so that the
transformed files I get from Oxygen tag the <task> and <concept>
entries in my <composite> files are tagged as "H2" headings and not
"H3" headings.
Example of my composite topic file
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE dita PUBLIC "-//OASIS//DTD DITA Composite//EN"
<a class="moz-txt-link-rfc2396E" href="http://docs.oasis-open.org/dita/v1.1/OS/dtd/ditabase.dtd">"http://docs.oasis-open.org/dita/v1.1/OS/dtd/ditabase.dtd"</a>>
<dita>
<topic id="MyTopic">
<title>My Composite Topic</title>
<prolog>
<metadata>
<othermeta content="en_US" name="language"/>
<othermeta content="US" name="country"/>
</metadata>
</prolog>
<body>
<p>This is the general introduction to this concept and task.</p>
</body>
</topic>
<concept id="concept1" conref="../../shared/en-us/concept1.dita#concept1A">
<title>Concept title</title>
</concept>
<task id="task1 conref="../../shared/en-us/taskt1.dita#task1A"">
<title>Task title</title>
</task>
</dita>
Assuming that this "works" in the transform, I get content where each
concept and task comes in tagged as "H1" I need these to be tagged
"H2" instead.
I realize that I can use <section> tags to mark sections as
subordinate, but the <composite> type doesn't seem to support
<section> tags where I need them. Conceptually it would be like this:
<section>
<title>Major Concept</title>
<concept id="concept1" conref="concept1.dita#concept">
<conbody/>
</concept>
</section>
<section>
<title>Major Task</title>
<task id="task1" conref="task1.dita#task">
<taskbody/>
</task>
</section>
but of course this doesn't work. Also, I would end up getting the
Title from the Section as well as the Task or Concept.
So, do I somehow munge the dita2htmlImpl.xsl file to somehow make
Tasks and Concepts "H2" entries, or can I somehow get the idea of a
subordinate Concept or Task into a Topic/Composite Topic DITA file?
_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>