On Tue, 2007-10-30 at 15:30 +0100, Geert Verhaag wrote:
> Hi,
> 
> Well, I use version 1.2.5!
> 

I think the wiki page is for 1.4. Anyhow should no matter.

> Addition of xhtml namespace to page2xhtml-xhtml.xsl, resolved the
> error!
> 
> Okay, what about
> 
> <body> 
> <xsl:call-template name="toc"/>
> <xsl:apply-templates select="xhtml:[EMAIL PROTECTED]'body']"/>
> </body>
> 
> where has this part to go?

http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl?view=markup

...

<div id="main">
              <xsl:apply-templates select="xhtml:[EMAIL PROTECTED] = 
'breadcrumb']"/>
              <xsl:apply-templates select="xhtml:[EMAIL PROTECTED] = 
'search']"/>
              <xsl:apply-templates select="xhtml:[EMAIL PROTECTED] = 'body']"/>
            </div>

somewhere before body I guess, but that depends where you want the toc to 
appear.

salu2
> 
> Thanks!
> 
> Regards,
> Gerard
> 
> >>> [EMAIL PROTECTED] 30/10/2007 13:14 >>>
> On Tue, 2007-10-30 at 13:01 +0100, Geert Verhaag wrote:
> > Hoi Thorsten,
> > 
> > Thanks for your prompt response! I was already afraid that I had to
> > dive into XSLT and related stuff.
> > 
> 
> Well, in the end of the day you will need to dive for sure.
> 
> BTW which version of lenya are you using?
> 
> > Well, I added the template as described in step one to the
> > xhtml2xhtml.xsl transformation file. This resulted in no errors!
> > 
> > Introducing the template of step 2 in page2xhtml-xhtml.xsl resulted
> in
> > the following error:
> > 
> > Prefix must resolve to a namespace: xhtml.
> > 
> 
> Hmm, if you did included it there and are using 2.0 then the wiki is
> missleading since it is just including/importing another stylesheet:
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > 
> <xsl:import href="fallback://xslt/page2xhtml.xsl"/>
> </xsl:stylesheet>
> 
> So you need to add the matches in page2xhtml.xsl instead where you can
> find:
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns="http://www.w3.org/1999/xhtml";
>   xmlns:xhtml="http://www.w3.org/1999/xhtml";
>   ....
>   exclude-result-prefixes="page xhtml dc lenya"
>   >
> 
> or define the namespace (ns) in page2xhtml-xhtml.xsl like:
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns="http://www.w3.org/1999/xhtml";
>   xmlns:xhtml="http://www.w3.org/1999/xhtml";
> > 
> <xsl:import href="fallback://xslt/page2xhtml.xsl"/>
> 
> <!-- the match from the wiki -->
> </xsl:stylesheet>
> 
> > Any suggestions?
> 
> Please try this.
> 
> > Building pages with Lenya is working nicely, and I like its clear
> and
> > clean interface.
> 
> Thanks for the feedback.
> 
> > By the way, do you have any suggestions on good books regarding XSLT
> > and XML? I have worked through the basic O'Reilly book called
> "Learning
> > XML" by Erik T.Ray!
> 
> There are many stuff online that can get you started with xsl, e.g. as
> reference w3schools.com is not bad, but you know Google is your
> friend.
> 
> salu2
> 
> > Thanks, and sorry for being a bit impatient!
> > 
> > Regards,
> > Gerard
> > 
> > >>> [EMAIL PROTECTED] 30/10/2007 12:22 >>>
> > On Tue, 2007-10-30 at 10:03 +0100, Geert Verhaag wrote:
> > > Hi Lenya Users,
> > > 
> > > I tried earlier (another thread!) to get help about how to
> implement
> > > the TableOfContents feature in my publication! Unfortunately
> nobody
> > > responded to it. 
> > 
> > Hmm, it just had been a day. Most of the active folks are in
> Freiburg
> > on
> > the Hackathon so please be patient.
> > 
> > > I'm a newbie when it comes to using XML, XSLT and
> > > JavaScript, but would like to use the TableOfContents feature.
> > > 
> > 
> > You will need a basic understanding of this technologies otherwise
> > using
> > lenya will be very hard. Have a look around the web for tutorials to
> > xsl
> > and the other technologies.
> > 
> > > I already browsed through the Lenya documentation but didn't find
> > any
> > > explanation on how to actually implement the related JavaScript
> > function
> > > toggleLayer.
> > 
> > Let us do step by step. 
> > 
> > Did you get step 1 and 2 working?
> > 
> > If not do not even bother to try 3.
> > 
> > If it is working you need to create a javascript and link to it in
> > page2xhtml-xhtml.xsl.
> > 
> > salu2
> > 
> > > 
> > > I'm very much in need of any hints regarding this feature, and
> would
> > > very much appreciate any help! Thanks in advance!
> > > 
> > > Regards,
> > > Gerard
> > >  
> > > 
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > > For additional commands, e-mail: [EMAIL PROTECTED] 
> > > 
> -- 
> Thorsten Scherler                                
> thorsten.at.apache.org
> Open Source Java                      consulting, training and
> solutions
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> 
> ==========================================
> 
> Dit bericht is uitsluitend bestemd voor de geadresseerde.
> Het bericht kan vertrouwelijke informatie bevatten.
> Als u dit bericht per abuis hebt ontvangen, wordt u
> verzocht onmiddellijk de afzender te informeren. Ook
> verzoeken wij u het bericht te vernietigen en de inhoud
> niet onder derden te verspreiden of te gebruiken.
> 
> This message is intended exclusively for the addressee.
> It may contain information that is confidential.
> If you are not the intended recipient, we request that
> you notify the sender immediately. In that case, we
> also request that you destroy the message and that
> you neither use the contents nor disclose them in any
> manner to third parties.
> ==========================================
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


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

Reply via email to