Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: newLine issue when using XSLCompiledTransform.Transform() >Thread Next - Re: newLine issue when using XSLCompiledTransform.Transform() Re: newLine issue when using XSLCompiledTransform.Transform()To: NULL Date: 5/14/2009 8:02:00 AM <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
exclude-result-prefixes="msxsl"
xmlns:ms="urn:schemas-microsoft-com:xslt"
xmlns:dt="urn:schemas-microsoft-com:datatypes">
<xsl:output method="text" indent="yes"/>
<xsl:template match="/">
<xsl:text>{\rtf1{\fonttbl{\f0\fnil\fcharset0
Arial;}}\viewkind4\uc1\pard\lang1033\fs18</xsl:text>
<xsl:for-each select="Assessment/ObGyn">
<xsl:if test ="OBGYNNotes != ''">
<xsl:text> \line \b Additional Information: \b0 </xsl:text>
<xsl:value-of select ="OBGYNNotes"/>
</xsl:if>
</xsl:for-each>
<xsl:text>}</xsl:text>
</xsl:template>
</xsl:stylesheet>
"Martin Honnen" wrote:
> Zest4Quest wrote:
> > the "result" does not contain any newline info. it shows as "abc" in debugger
> > .Should i do anything in the xslt to translate all "\r\n" to something else
> > explicitly?
>
> Can you show us the template that processes that 'OBGYNNotes' element?
> Or better show us a minimal but complete stylesheet that allows us to
> reproduce the problem.
>
>
> --
>
> Martin Honnen --- MVP XML
> http://msmvps.com/blogs/martin_honnen/
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
