473,394 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

xslt alone or xslt/java for static site?

ted
Looking for advice on the best approach to building static websites.

Last year I built a static website with XSLT. The content is in XML
and I run it through XSLT to update the site. The XSLT builds about
200 pages. Each page keeps a "bread-crumb" of links so the user can
navigate back and forth. The pages also indicate which "section" it is
in. The XSLT also builds the "print version" of the page.

I have a main template (basically a page template) that I call and
pass parameters to to make each page. For instance, if I pass
"articleIndex" to the main template, it knows to build the index of
articles. I used to rely on the context but I found this was easier
for me.

Is this good approach? It sometimes seems difficult to get what I
want. I tend to want to put things into arrays and pass them around.

I know Java but haven't looked into JDOM or Velocity.

TIA,
Ted
Jul 20 '05 #1
1 1434

"ted" <te******@yahoo.com> wrote in message
news:be**************************@posting.google.c om...
Looking for advice on the best approach to building static websites.


Seeing that you already know Java, you might want to look into Cocoon [1] to
create your next site. (Cocoon can be used for both static and dynamic
websites.) One advantage of Cocoon is that you can use Generators [2] for
processing data sources other than XML files. You can also write your own
Generator [3], should the need arise.

Cocoon does have a significant learning curve, but there's an active
community that you can consult.
Regards
-Laurens

[1] http://cocoon.apache.org
[2] http://cocoon.apache.org/2.1/userdoc...enerators.html
[3] http://cocoon.apache.org/2.1/tutoria...generator.html
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ted | last post by:
Was wondering if XSLT alone is appropriate for the following situation. From XML, I'm creating a small website (around 50 pages) with pages that link to each other through a nav menu and a...
3
by: Duane Morin | last post by:
Is this normal use of XSLT? At the top of our XSL file we have: <xsl:stylesheet ... xmlns:nl="http://www.jclark.com/xt/java/com.company.package.ProcessXML"> .... Then within the XSL itself...
9
by: Jeff Rubard | last post by:
I am curious to know whether anyone has experience using XSLT for web XML (non-XHTML) styling, either with CSS or standalone. I myself have engaged in rather unsuccessful experiments with the...
4
by: Ringo Langly | last post by:
Hi all, I'm a seasoned web programmer, but I've never touched XSLT. It's always been one of those acronyms I've never needed to educate myself on. Now... we're working with a web content...
6
by: Robbie Baldock | last post by:
Hi - I'm a bit of a newbie to the world of XSLTs but am trying to call a Java method on a parameter passed into an XSLT but am having problems. I've stripped the XSLT down to its bare bones: ...
1
by: Jens Mueller | last post by:
Hi there, this is a Java-XML Question, so I am not sure whether this is the right place, haven't found anything better .... I try to convert a Java object to XML via SAX and let the FOP...
2
by: Martin Plantec | last post by:
Hello, In another post, I mentionned I was using PHP with Sablotron 1.0 as my server-side XSLT processor. I have several websites, some of them with thousands pages. Everything is stored as...
3
by: Jack Fox | last post by:
I've never had the need to work with XML, but I believe I now have an appropriate application. I have time-series data in objects organized as a tree that I want an ASP.NET program to write out to...
5
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.