![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: VS2005 "Show xslt output" and newlines >Thread Next - Re: VS2005 "Show xslt output" and newlines Re: VS2005 "Show xslt output" and newlinesTo: NULL Date: 12/5/2006 7:09:00 AM
O.K. Maybe I don't understand the xsl as well as I think.
Every xsl report I've written, and we are talking a good 50, all use
<xsl:param name="cr-lf">
</xsl:param>. I have use that method with MSXML, .Net using XslTransform
and SAXON.
How is that different than <xsl:param name="cr-lf" select="
"/>
What does this return for you?
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:param name="cr-lf">
</xsl:param>
<xsl:template match="/">
<xsl:text>Line 1</xsl:text>
<xsl:value-of select="$cr-lf"/>
<xsl:text>Line 2</xsl:text>
</xsl:template>
</xsl:stylesheet>
--
kevin...
"Martin Honnen" wrote:
> kevin wrote:
>
> > Have you tried running that from within vs2005 using the XML - Show XSLT
> > Output menu option or with msxsl.exe? Do you get line breaks and how?
>
> With VS 2005 I tried my suggestion (i.e.
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="text"/>
> <xsl:param name="cr-lf" select="'
'"/>
> <xsl:template match="/">
> <xsl:text>Line 1</xsl:text>
> <xsl:value-of select="$cr-lf"/>
> <xsl:text>Line 2</xsl:text>
> </xsl:template>
> </xsl:stylesheet>
>
> ) and the show output then shows
>
> Line 1
> Line 2
>
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/
>
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
