Subject: [xsl] Junk while transforming XML to text From: Sripriya Venkataraman <Sripriya.Venkataraman@xxxxxxxxxxxxxxx> Date: Wed, 24 Apr 2002 16:44:15 -0700 |
Hi, I am trying to convert an XML document to an ascii text file using XSL. When I do that, I get some junk at the beginning of the file. My input file XML is <PLATERESULTS> <ANALYSISOPTIONS> <GENERICOPTIONS Threshold="7%"/> </ANALYSISOPTIONS> <ANALYSISSTATUS> <PLATESTATUS><MESSAGE>Analysis Successful</MESSAGE><MESSAGE>(00000) Difference in Row Marker Height Between Sippers of 82%. Low total of 8.526, High total of 46.436.</MESSAGE></PLATESTATUS> </ANALYSISSTATUS> <CHANNELRESULTS Channel="1" NoiseAvg="242.10" NoiseStdev="6.90"> <WELLRESULTS> <WELL WellName="E7" WellStartTime="247.80" BaselineRSI="253.86" DipRSI="11.88" PositivePercentInhibition="7.29" PeakRSI="5.67" NegativePercentInhibition="3.48" NoiseFactor="1.36" MinMaxDifference="18.01"/> <WELL WellName="E24" WellStartTime="348.00" BaselineRSI="245.84" DipRSI="40.20" PositivePercentInhibition="24.66" PeakRSI="2.69" NegativePercentInhibition="1.65" NoiseFactor="1.36" MinMaxDifference="43.46"/> </WELLRESULTS> </CHANNELRESULTS> </PLATERESULTS> My input XSL is <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:variable name="tab" select="'	'" /> <xsl:variable name="newline" select="'
'" /> <xsl:variable name="header"> <xsl:text disable-output-escaping="yes">'<START DataVersion</xsl:text> <xsl:text disable-output-escaping="yes">></xsl:text> <xsl:text>'Version</xsl:text> <xsl:value-of select="$tab"/> <xsl:text>1</xsl:text> </xsl:variable> <xsl:template match="CHANNELRESULTS[1]//WELL[1]"> <xsl:value-of select="$header"/> <xsl:value-of select="$newline"/> <xsl:for-each select="@*"> <xsl:value-of select="name()"/> <xsl:value-of select="$tab"/> </xsl:for-each> <xsl:value-of select="$newline"/> </xsl:template> </xsl:stylesheet> But my output text file is: 163113109131Analysis Successful(00000) Difference in Row Marker Height Between Sippers of 82%. Low total of 8.526, High total of 46.436.''Version 1 WellName WellStartTime BaselineRSI DipRSI PositivePercentInhibition PeakRSI NegativePercentInhibition NoiseFactor MinMaxDifference Why do I get this junk value ? Any help would be great. Thanks, Priya XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: content management stuff - was , Matt Gushee | Thread | Re: [xsl] Junk while transforming X, Matt Gushee |
Re: [xsl] xsl:number - What is Numb, G. Ken Holman | Date | Re: content management stuff - was , Matt Gushee |
Month |