Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: VS2005 "Show xslt output" and newlines

From: kevin@-----------.---------.---
To: NULL
Date: 12/5/2006 6:42:00 AM

Yes I have.

I typically use <xsl:param name="newline">
</xsl:param>. But neither work.  

I understand the xsl and the app that uses these xslt files, C# using the 
XslTransform class, works fine.  I have even run them with 
CookTop(www.---.com) and get the expected results.

My question is that VS2005 seems to treat all output as if it were xml and 
disregards superflurious whitespace and is there some way to control this 
behaviour. 

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?

-- 
kevin...


"Martin Honnen" wrote:

> kevin wrote:
> 
> >   <xsl:param name="newline">
> > </xsl:param>
> >   <xsl:template match="/">
> >     <xsl:text>Line 1</xsl:text>
> >     <xsl:value-of select="$newline"/>
> >     <xsl:text>Line 2</xsl:text>
> >   </xsl:template>
> > </xsl:stylesheet>
> 
> Have you tried
>    <xsl:param name="newline" select="'
'"/>
> ? That seems safer then relying on line breaks in the xsl:param content.
> 
> 
> -- 
> 
> 	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