Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2003, 07:12 AM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Newline in notepad, HOW.....????

I have an xml and i transform it with xslt into plain text....

this is a part of xslt:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str="http://exslt.org/strings">
<xsl:output method="text" encoding="utf-8" media-type="text/plain" />
<xsl:include href="str.align.template.xsl"/>
<xsl:preserve-space elements="*" />
<xsl:template match="row">
<xsl:variable name="c0_pad"><xsl:text>#x20;#x20;#x20;#x20;#x20;# x20;#x20;#x20;#x20;</xsl:text></xsl:variable>
<xsl:variable name="c0_string"><xsl:value-of select="@Symbol"/></xsl:variable>
<xsl:variable name="c0_align">left</xsl:variable>
<xsl:call-template name="str:align">
<xsl:with-param name="string" select="$c0_string"/>
<xsl:with-param name="padding" select="$c0_pad"/>
<xsl:with-param name="alignment" select="$c0_align"/>
</xsl:call-template>
<xsl:text>#x0d;</xsl:text>
<xsl:text>#x0a;</xsl:text>
</xsl:template>
</xsl:stylesheet>

but open it in notepad i cannot see newlines, why...
i need a crlf, how can i take it?
i have tried many things but no luck.....

Can you help me???

 
Old October 29th, 2003, 09:46 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to armmarti
Default

I see line-break with the following code in Notepad:
Code:
<xsl:template match="/">
aaaaa<xsl:text>#x0d;#x0a;</xsl:text>bbbbbbb
</xsl:template>
Regards,
Armen
 
Old October 29th, 2003, 10:06 AM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks.....

but it was the first syntax i tried and i was not lucky.
After this i tried to brake it in two lines:
    <xsl:text>#x0d;</xsl:text>
    <xsl:text>#x0a;</xsl:text>
but also nothing...

Do you know nothing else...????????

 
Old October 29th, 2003, 10:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to armmarti
Default

Quote:
quote:Originally posted by veskoula
 Thanks.....

but it was the first syntax i tried and i was not lucky.
After this i tried to brake it in two lines:
    <xsl:text>#x0d;</xsl:text>
    <xsl:text>#x0a;</xsl:text>
but also nothing...

Do you know nothing else...????????

But it's ok when I'm testing the code I posted... What XSLT processor you are using?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Encryption Notepad, need some help! Groogy Visual C++ 2005 0 March 23rd, 2007 12:31 PM
Newline in VB Manisha0605 .NET Framework 1.x 3 February 4th, 2007 11:16 AM
What to use for a home made notepad Apocolypse2005 Beginning VB 6 9 June 30th, 2006 11:01 AM
Notepad or VS,Net Oh_Help VS.NET 2002/2003 2 February 11th, 2004 01:59 AM
Reference in notepad???? quetzalcoatl ADO.NET 2 October 31st, 2003 06:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.