Hi Users,

I am trying to create a Site Map (or Table of Contents for an entire site). I would like to make it similar to the menu with all levels and links displayed. If possible, I would also like to include the information from H2 or H3 tags inside the pages, similar to what is described here:
http://wiki.apache.org/lenya/HowToTableOfContents

I have tried putting something like this insude my XML file:
        <xhtml:body>
                <xhtml:h3>Welcome page</xhtml:h3>
        </xhtml:body>

Also, inside my xsl file, I tried to read all of h3 header by entering:
        <xsl:for-each select="//xhtml:body//xhtml:h3">.

However, the problem that I am having right now is that I was able to see only headers within my current XML page, but I was not able to see header from other pages. Can you give me some suggestions of what I can do so that I would be able to query all of the h3 headers that I have created on all pages so that I can put them into table of content?

I have read documentation, the wiki and studied the menu.xsl file but I'm still stuck. For example, in the wiki HowToTableOfContents, it says I am supposed to query the header as follow:
        <xsl:for-each select="//xhtml:[EMAIL PROTECTED]'body']/xhtml:h3">

I think the way I set my XML page is different from the intended way it appears in the document because the table of content becomes blank if I use that code. If I am going to use the above code to access all of the header inside my publication, what are the changes that I need from my current templates and XML pages?

Another thing that I noticed is that the publication that I downloaded from wyona (unicms) has a feature to create a new Table of Contents. However, after the table was being created, the only header that being display is the header of the current page but not from any others.

I also notice that menu.xsl did a very good job querying all created documents and put them into a menu. However, I tried to apply the same concepts into my table of contents, but I also seem to be a litle bit lost on how the hierarchy are being set up so that all they did is saying "ancestor" or "descendant" and they were able to get all the name of the documents they need.

I have tried many different methods that I mentioned above, but in the end, I was never able to see headers beyond the current pages that I am at.

Thanks in advance!

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar � get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to