Transfer "simple" richtext to html with NotesXSLTransformer and xslt

Hi all,

I just succeeded to transfer a notes doc to html via NotesXSLTransformer class and an xsl template.

few problems left - the “biggest” one:

In the rich text field are line feeds - they are transfered to the html (as simple line feeds) and therefore not visible - but they should!

the xsl formula goes: <xsl:value-of select=“dxl:item[@name=‘rtfieldname’]/dxl:richtext”/>

Is there any chance to “translate” these line feeds into the html code (
or

)?

I also tried to enter html code directly into the rich text field (in the notes client):
- but these code is, of course, escaped, so that it shows in html also as “
”.

I read about disable-output-escaping in the w3c, but do not know how to use it in the .xsl file

Big thanks for any help in advance!

Uwe

Subject: transfer “simple” richtext to html with NotesXSLTransformer and xslt

I admit I haven’t worked with Domino’s XML classes, but I am working on a completely separate XSLt project right now.

To use disable-output-escaping, you do something like this in your XSL:

<xsl:text disable-output-escaping=“yes”>

<![CDATA[ here's my text ]]>

</xsl:text>

Everything that is inside the CDATA tag will remain as is, no translation.

Subject: RE: transfer “simple” richtext to html with NotesXSLTransformer and xslt

Hi Esther,

thanks for the reply :wink:

the problem is, that I have to place this disable-output-escaping “somewhere” into my dxl-code:

To transfer the richtext item to xml(html) I use the tag:

<xsl:value-of select=“dxl:item[@name=‘Body’]/dxl:richtext”/>

and this gets me already the escaped format:

first row
second row is escaped to

first <br> second row

I tried to put your code around the dxl:

<xsl:text disable-output-escaping=“yes”>

<xsl:value-of select=“dxl:item[@name=‘Body’]/dxl:richtext”/>

</xsl:text>

this gives an xml-error during the transform

so I guess it has to be sth like:

<xsl:value-of select=“dxl:item[@name=‘Body’]/dxl:richtext disable-output-escaping=‘yes’”/>

but this also always (in any combination I tried) gives error messages during transform.

Do you - or anyone else - knows where I could get a documentation about these dxl tags?

thanks,

Uwe

Subject: RE: transfer “simple” richtext to html with NotesXSLTransformer and xslt

Uwe

Can I have a copy of the code?

Thanks

Sekar