Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building Websites with OpenCms
  • Table Of Contents Toc
  • Feedback & Rating feedback
Building Websites with OpenCms

Building Websites with OpenCms

2 (1)
close
close
Building Websites with OpenCms

Building Websites with OpenCms

2 (1)

Overview of this book

This book takes you through the process of creating content-rich websites and applications using OpenCms. Although powerful and flexible, OpenCms can be daunting on first approach, but its advanced features reward the investment in learning. This book exists to ease Java developers into getting the most from OpenCms. OpenCms OpenCms is a professional-level, open source Website Content Management System, with which you can create and manage complex websites. Based on Java and XML technology, it fits into almost any modern IT environment. With hard-won experience of the practical difficulties faced by developers working with OpenCms, this book is the embodiment of the author's expertise, and the perfect way to master the system.
Table of Contents (12 chapters)
close
close
Building Websites with OpenCms
Credits
About the Author
Introduction

Adding Content


Along with adding compiled code in the form of classes and JARs, a module should also contain any other resources needed for utilizing the code. As I stated at the beginning of this chapter, many modules do not contain any compiled code, but are made up entirely of documents, templates, and JSP pages. As we've seen in Chapter 4, adding content to a module is no different than adding content to any other location in the VFS. Simply stated, anything that exists in the module's directory (in this case /system/modules/com.example.genericxml.xslt/) will be exported with the module. It is also possible to attach content in other parts of the VFS to the module, and we will do that in the Managing the Module section later.

Before we get to that, though, we will create some XML content to transform, the XSLT stylesheets for transformation, and a JSP page that will do the transformation, using the class we just created.

Creating a Simple XML Document

XML documents can be complex, requiring...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY