Another newbie question that I could not
find an answer for in the archives.
Part of my web site needs to generate
dynamic content based on database queries. I intend to write my
own logicsheets to get that functionality (I am not using ESQL because I
need to talk to my java model, not directly to the database ).
I used Bonebreaker application as the
learning tool so far; my web page is divvied up into a few sections in terms of
layout:
To provide static content, I pass
the name of the file to be shown in the request (e.g. http://<myAppBase>/current/welcome.html?show=content/current/featuredArticle).
In the xsl style sheet which processes this (menupage.xsl in bonebreaker), I use
the (pre-existing) xsl:copy-of call to just get everything from the static xml
file featuredArticle.xml.
So far, this works
fine.
Now, to provide the dynamic content,
I put in a call to a custom tag in the featuredArticle.xml file, like
so:
<singertags:get-name/>
The tag <singertags:get-name/> takes no parameters; it is just
supposed to print "Elvis Presley".
I registered the tag file in
cocoon.xconf. It seems to be loading fine (from what I see in
core.log)
The trouble is: I don't know how to
make cocoon actually process the tag. This has something to do with Sitemap, but
I don't know what I should put in there. What I have now is this:
Sitemap:
Tag in the
Logicsheet:
FeaturedArticle.xml:
Menupage.xsl: The Problem: Instead of printing "Singer Name: Elvis Presley", it just prints nothing. If I take out the <xsp:page> tags from featuredArticle.xml, it prints "Singer Name:" and leaves a blank in place of the tag. Obviously I am doing something wrong (or not doing something) and this must be a fairly dumb question... I would appreciate if someone can point me in the right direction... (I try to compensate for my lack of originality with copying skills ;)) Best Regards,
Sreedhar Chintalapaty __________________________________________________________________________________________ A
computer is like an Old Testament god, with a lot of rules and no mercy - Joseph
Campbell
|
Title: Glacier
- RE: Including a page with custom tags Sreedhar Chintalapaty
- RE: Including a page with custom tags Sreedhar Chintalapaty
- RE: Including a page with custom tags Sreedhar Chintalapaty