Subject: RE: re:XML to the rescue
Hi Juan,
it is easier as it sounds:
… let’s asume you have doc as NotesDocument
… and the XLST in a String variable curStyle
… and s is you NotesSession
Set xStyle = s.CreateStream
Call xStyle.WriteText(curStyle)
xStyle.Position = 0
'Now get the DXL… and transform
Set xTrans = s.CreateXSLTransformer
Call xTrans.SetStylesheet(xStyle)
Dim xResult As NotesStream
Set xResult = s.CreateStream
Call xTrans.SetOutput(xResult)
Set dxlSource = s.CreateDXLExporter(doc,xTrans)
'Only the process needs to be called, the transform is implicit
Call dxlSource.process
Now you have the result in xResult and can do whatever you want with it. Java is very similar.
The content of curStyle is more tricky. You need to know XLST and DXL.
For starters have a look at http://www.w3schools.com to learn XLST. Start with a stylesheet that has only two entries
<xsl:stylesheet match = “/”>
<xsl:apply-templates select=“//dxl:item”/>
</xsl:stylesheet>
<xsl:stylesheet match = “*” />
(the select clause is the tricky one. I’m away from my office machine now. PM me for more help)