Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


Glenn Druce 24.Oct.02 01:44 AM a Web browser
Applications Development 6.0 All Platforms


Anyone tried an XSLT transformation of Notes 6 DXL ?

Below are the three parts to an XML transformation:
* The DXL Code
* The XSLT Transformation Code
* My current result (not matching attributes)

Unfortunately I'm having problems due to the NameSpace definition in the Database element (which seems to be the new default in Notes 6).
I think my problem is setting correctly the namespace around the attribute selections in the dxl:document template in the xsl file. Presently I'm not getting any matches.

FYI - it works by dropping the NameSpace definition, and the DocType. To test this you need to remove the namespace prefixes).

Any thoughts would be most appreciated.

Glenn


Source export.xml from Notes 6
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE database SYSTEM 'c:\temp\xmlschemas\domino_6_0.dtd'>
<database xmlns='http://www.lotus.com/dxl' version='6.0' replicaid='CA256C530030F2C2'
path='GDruce\Blog.nsf' title='Blog'>
<databaseinfo dbid='CA256C530030F2C2' odsversion='43' diskspace='327680' percentused='93.515625'
numberofdocuments='1'><datamodified><datetime>20021015T212316,81+10</datetime></datamodified><designmodified
><datetime>20021016T080151,28+10</datetime></designmodified></databaseinfo>
<document form='Item'>
<noteinfo noteid='8fa' unid='4CB4639861392CDBCA256C53003E59BB' sequence='3'>
<created><datetime>20021015T212102,03+10</datetime></created>
<modified><datetime>20021015T212316,81+10</datetime></modified>
<revised><datetime>20021015T212316,80+10</datetime></revised>
<lastaccessed><datetime>20021015T212316,80+10</datetime></lastaccessed>
<addedtofile><datetime>20021015T212121,06+10</datetime></addedtofile></noteinfo>
<updatedby><name>CN=Glenn Druce/OU=Australia/O=Org</name></updatedby>
<revisions><datetime>20021015T212121,06+10</datetime><datetime>20021015T212311,69+10</datetime></revisions>
<item name='Title'><text>Title</text></item>
<item name='Description'><text>Full Description for this item.</text></item>
<item name='Link'><text>http://www.lotus.com</text></item>
<item name='TimeStamp'><datetime>20021015T212315,69+10</datetime></item></document>
<document form='Item'>
<noteinfo noteid='8fa' unid='4CB4639861392CDBCA256C53003E59BB' sequence='3'>
<created><datetime>20021015T212102,03+10</datetime></created>
<modified><datetime>20021015T212316,81+10</datetime></modified>
<revised><datetime>20021015T212316,80+10</datetime></revised>
<lastaccessed><datetime>20021015T212316,80+10</datetime></lastaccessed>
<addedtofile><datetime>20021015T212121,06+10</datetime></addedtofile></noteinfo>
<updatedby><name>CN=Glenn Druce/OU=Australia/O=Org</name></updatedby>
<revisions><datetime>20021015T212121,06+10</datetime><datetime>20021015T212311,69+10</datetime></revisions>
<item name='Title'><text>Title</text></item>
<item name='Description'><text>Full Description for this item.</text></item>
<item name='Link'><text>http://www.lotus.com</text></item>
<item name='TimeStamp'><datetime>20021015T212315,69+10</datetime></item></document>
</database>



Transforming Style Sheet export.xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dxl="http://www.lotus.com/dxl">
<xsl:output method="html" indent="yes" />

<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>Blog</TITLE>
</HEAD>
<BODY bgcolor="#ffffff" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<xsl:apply-templates select="dxl:database"/>
</BODY>
</HTML>
</xsl:template>

<xsl:template match="dxl:database">
<TABLE width="100%" cellpadding="0" cellspacing="0" border="0">
<xsl:apply-templates select="dxl:document"/>
</TABLE>
</xsl:template>

<xsl:template match="dxl:document">
<TR>
<TD border="0">
<A>
<xsl:attribute name="href">
<xsl:value-of select="dxl:item[@dxl:name='Link']/dxl:text"/>
</xsl:attribute>
<xsl:value-of select="dxl:item[@dxl:name='Title']/dxl:text"/><BR/>
</A>
<xsl:value-of select="dxl:item[@dxl:name='Description']/dxl:text"/>
</TD>
</TR>
</xsl:template>
</xsl:stylesheet>


Current (Broken) Result
<HTML xmlns:dxl="http://www.lotus.com/dxl">
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>Blog</TITLE>
</HEAD>
<BODY bgcolor="#ffffff" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<TABLE width="100%" cellpadding="0" cellspacing="0" border="0">
<TR>
<TD border="0"><A href="">
<BR>
</A></TD>
</TR>
<TR>
<TD border="0"><A href="">
<BR>
</A></TD>
</TR>
</TABLE>
</BODY>
</HTML>

Any thoughts of suggestions most appreciated.

Ta
Glenn






XSLT Transformations of Notes 6 DXL... (Glenn Druce 24.Oct.02)
. . RE: XSLT Transformations of Notes 6... (Thom Bentley 24.Oct.02)
. . XML namespaces FAQ (Les Szklanny 24.Oct.02)
. . It is working according to spec. (George Langlais... 24.Oct.02)
. . . . RE: It is working according to spec... (Roger Carter 10.Dec.02)
. . . . Ok, that works but Default Namespac... (Glenn Druce 24.Oct.02)
. . . . . . Setting xmlns="http://www.lotus.com... (George Langlais... 29.Oct.02)
. . . . . . . . But may-be xmlns and xmlns:dxl? (Heinz Mathys 15.Nov.03)
. . RE: XSLT Transformations of Notes 6... (Michael Golding... 24.Oct.02)
. . RE: XSLT Transformations of Notes 6... (Gary Broad 24.Oct.02)
. . . . RE: XSLT Transformations of Notes 6... (Thom Bentley 24.Oct.02)
. . Working Version of XSLT Transformat... (Glenn Druce 24.Oct.02)
. . . . Glenn, I said the same thing about ... (Thom Bentley 25.Oct.02)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite