Hi Users,
Gregor and solprovider, thanks for the tips. I would like to try Gregor's
suggestion first because it is targeted more to calls of H2 tags.
I am using the wyona.org pubs called unizh and unitemplate with 1.2.1. I
then follow instructions from
http://wiki.apache.org/lenya/ProposalXIncludeAggregation and add the
XInclude Transformer into unizh/publication-sitemap.xmap. I also create
unizh/xslt/mount-href.xslt and declaring xi:include in there. Also, inside
unizh/xslt/doctypes/xhtml-standard.xsl, I created a template called
"DefaultTemplate".
What, exactly, should I do next so that whenever I create a new document
using DefaultTemplate, the table of content will be displayed? I tried
using xi:include by entering <xsl:apply-templates select="xi:include"/>
inside the DefaultTemplat, but that seems to take no affect. I tried some
other way calling xi:include, but none seems to work. How exactly do I use
xi:include? Should I call xi:include to be able to display the table or I
have to do it in some other way, if so, can you give me some idea of what I
need to next that is not mentioned from
http://wiki.apache.org/lenya/ProposalXIncludeAggregation?
I know that the XInclude Aggregation Proposal is incomplete, but I guess
that if you directed me there to find my solution it must work somehow. But
I need more step by step instructions to get it to work to reach the
solution you suggested.
Thanks in advance for your help!
From: "Gregor J. Rothfuss" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: how to make site map or table of contents for entire site
Date: Fri, 27 May 2005 14:23:17 -0400
Johnny Jones wrote:
When you say, "run it through xinclude" where is the xinclude? Is it in
the sitemaps or is it somewhere else? For example, is it in the following
files:
lenya/pubs/blog/xslt/feed/xinclude.xsl
lenya/pubs/blog/xslt/archive/xinclude.xsl
yeah, 1.2 has a clunkier way: it uses an xslt transform and then the xlink
transformer. ths xinclude xslt prepares the aggregation, and the xlink
transformer pulls it in. try it out by commenting out parts of the
pipeline. this is the ATOM feed pipeline from the blog
http://svn.apache.org/viewcvs.cgi/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/sitemap.xmap?rev=170255&view=markup
<map:match pattern="*/feeds/*/index.xml">
<map:act type="resource-exists">
<map:parameter name="url" value="content/{1}/entries"/>
<map:generate type="directory" src="content/{../1}/entries">
<map:parameter name="depth" value="4"/>
<map:parameter name="reverse" value="true"/>
</map:generate>
<map:transform src="xslt/feed/xinclude.xsl">
<map:parameter name="feedid" value="{../2}"/>
</map:transform>
<map:transform type="xlink">
<map:parameter name="href" value="content/{../1}/dummy.xml"/>
</map:transform>
<map:serialize type="xml"/>
</map:act>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee�
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]