Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: VS2005 "Show xslt output" and newlines

From: kevin@-----------.---------.---
To: 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/
> 


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent