Project

Profile

Help

new line in my text file

Added by Anonymous over 19 years ago

Legacy ID: #2978578 Legacy Poster: Curtis (cdfisher07)

I'm trying to create a text file where the output appears as: &Item1=*TransactionSet &Item2=**DocumentID &Item3=**SiteID &Item4=**Author &Item5=**Date Right now it comes out: &Item1=*TransactionSet&Item2=**DocumentID&Item3=**SiteID&Item4=**Author&Item5=**Date&Item6=**Transaction&Item7=***Source&Item8=****SourceID&Item9=****SourceAuthor&Item10=****Measurer&Item11=****MeasurementDate&Item12=****ModeOfTransportation&Item13=****TotalGrossVolume&Item14=****TotalGrossWeight I am using a \n and it shows up as text. I am using Saxon and to any who believe that I am using the wrong forum for these questions, I offer my apologies. I cannot seem to get listed on mulberrytech and have sent them an email requesting they sign me up! Thanks, Curtis fisher


Replies (2)

RE: new line in my text file - Added by Anonymous over 19 years ago

Legacy ID: #2979062 Legacy Poster: Konstantyn Smirnov (injecteer)

hi U can try to take a closer look at the <xsl:output>'s method attr. U should use <xsl:output method="text">. At least it gives a different result, as <xsl:output method="html"> :))

RE: new line in my text file - Added by Anonymous over 19 years ago

Legacy ID: #2979247 Legacy Poster: Michael Kay (mhkay)

Firstly, use xsl:output method="text" as "injecteer" suggested. More importantly, generate the newline using <xsl:text>&#xa;</xsl:text> Michael Kay

    (1-2/2)

    Please register to reply