Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Publishing XML Data Using Notes/Domino 6

Get your apps ready for the XML future

George Langlais, Project Leader, EMC
George Langlais is a project leader on the Domino Server's Programmability Team. His group is responsible for adding XML capabilities to Domino's core programming interfaces. He and his team developed all the new LotusScript XML classes described in this tutorial (DOM and SAX parsing, XSL transformations, and DXL exports and imports) and have compiled a long list of XML and Web services features to add to future releases of Notes/Domino. Stay tuned!

Summary:  XML, XSL, yadda, yadda, yadda. Lots of hype, but is it all just sizzle and no steak? This tutorial will show you what the fuss is all about. Learn how to use all the cool new XML features of Notes/Domino 6 to integrate XML data or, for that matter, any data that can be converted to and from XML. By understanding how to use these new technologies in your designs, you can produce better applications in less time!

Date:  07 Nov 2002
Level:  Intermediate PDF:  A4 and Letter (843KB | 37 pages)Get Adobe® Reader®

Activity:  24724 views
Comments:  

Introduction

About this tutorial

This tutorial describes how to use the XML-processing capabilities built into Notes/Domino 6 to publish XML data.

It doesn't just tell you about all the cool new XML features in Notes/Domino 6 and how you might use them to publish XML data, but it actually shows you by providing a working demo program and walking you through its design step-by-step. The tutorial is based on a Domino database called booklist.nsf, which has agents, a script library, and XSL style sheets set up to publish XML (describing a list of books) in both HTML format (for viewing with a browser) and PDF format (for printing as a book). The bulk of this tutorial describes the XML datatypes, the agent code, the script library code, and the XSL style sheets in detail, giving you a solid starting point for using Notes/Domino 6 to publish your own XML data.


Who will benefit

The target audience for this tutorial is experienced Domino application developers who already know the basics of XML and XSLT.

You need to be familiar with Domino's LotusScript language, Domino application design elements (agents, script libraries, etc.), HTML, XML, XSL and XSLT style sheets, and you need to know a little bit about XSL Formatting Objects (XSL-FO).

This is an intermediate (or even an advanced) level tutorial, based on your experience designing Domino applications and using XML and XSLT style sheets. Luckily, there are many good resources on all of these subjects if you need to get up to speed quickly. If necessary, first consult the section called Resources . It contains references and links to some useful starting points on these subjects.


What you'll learn

You'll learn about a number of new Notes/Domino 6 features and how to take advantage of them in your own application designs. This tutorial covers:

  • An introduction to all the new LotusScript XML-processor classes in Notes/Domino 6, including classes not used in the demo code
  • How to use the pipelining feature of the XML classes to simplify your XML-based applications
  • The notion of XML vocabularies and how XSLT is often the tool of choice for translating XML from one vocabulary to another
  • A little bit about XSLT technology (This tutorial is not a general, all-inclusive lesson about XSLT. There are volumes written on the subject, and this tutorial assumes you are already familiar with XSLT basics.)
  • A little bit about XSL-FO technology and how to use it to produce print-oriented publications
  • How multiple transformations (i.e., style sheets) can simplify your application designs and let you reuse work you or others have done before


What you'll need

You'll need to first install the following tools to run the samples presented in this tutorial:

One of the first things you'll want to do is open the booklist.nsf file in your Notes client. After you open the database, select Help -> Using This Database. There you will find important notes that explain some final setup steps. You can then run each of the demo's action agents to get a quick feel for the power unleashed by the new XML features.

After you've done this you'll be ready to walk through the tutorial step-by-step and see exactly how the demo uses Notes/Domino 6 and XML to do the data transformations necessary to publish XML content (and NSF content, too!) in HTML and PDF formats. This should get you thinking about your own Notes/Domino projects. Ahhhh, the possibilities!


Acknowledgements

This tutorial derives from some preexisting work produced by both me and others, and so I would like to recognize them here and thank them for their contributions.

Gary Devendorf and I jointly prepared and co-presented Processing "Any" XML With Domino Rnext at Lotusphere in Orlando in January, 2002 from which all the demo programs in this tutorial were taken. Thanks, Gary, for providing inspiration, motivation, and content.

Special thanks, too, to Marji Berkman of the Domino Server Programmability Test team. Marji invented the booklist.xml test file as part of her internal XML automated test suite, and the DXL-to-XML XSLT style sheet used in the demo comes directly from her work. Way to go, Marji!

1 of 12 | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Lotus
ArticleID=142212
TutorialTitle=Publishing XML Data Using Notes/Domino 6
publish-date=11072002
author1-email=
author1-email-cc=