Re: Standardizing help paths



Elliot Lee <sopwith@redhat.com> writes:


> How does docbook map subsection names into HTML? If I have a <sect2
> id="blah"> inside a <sect1 id="foo">, will the <a name="..."> tag to get
> to section2 be #foo_blah or #blah or what?


Here's an example:

SGML source: 

<sect1 id="foo">
   <title>Intro to Foo</title>
   <para>
    foo rules
   </para>
   
    <sect2 id="bar">
        <title>Intro to Bar</title>
        <para>
         bar rules more
        </para>
    </sect2>
</sect1>


HTML source:

<div class="SECT1">
  <h1 class="SECT1"><a name="FOO">Intro to Foo</a></h1>

      <p> foo rules </p>

      <div class="SECT2">
        <h2 class="SECT2"><a name="BAR">Intro to Bar</a></h2>

        <p> bar rules more </p>

      </div>
</div>


Dave

-- 

          David Mason
        Red Hat AD Labs

        dcm@redhat.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]