Asking here as this is not strictly speaking, a ColdFusion question as 
CF is not being used in this process at the moment.

I have an XML file created by a tool I use.  It has eateries like this:
<TASK TITLE="Add the CFML logging code to other applications on 
Approd01." ID="76" ICONINDEX="-1" COMMENTS="Logging has been added to a 
few pilot applications.
* Pest_management_licensing
* Registration

Since we have never definitely determined what application causes the 
intermittent CPU spinning, we may want to cover other applications." 
POS="10" PRIORITY="5" RISK="0" PERCENTDONE="10" CALCPERCENTDONE="10" 
COST="0.00000000" CALCCOST="0.00000000" STARTDATE="40331.00000000" 
STARTDATESTRING="2010-06-02" CREATIONDATE="40331.00000000" 
CREATIONDATESTRING="2010-06-02 12:00 AM" LASTMOD="40360.35688657" 
LASTMODSTRING="2010-07-01 8:33 AM" COMMENTSTYPE="PLAIN_TEXT" 
PRIORITYCOLOR="15732480" PRIORITYWEBCOLOR="#000FF0"/>

Note the white space carriage returns and line feeds in the COMMENTS 
attribute.

I am using an XSLT file to transform this into a HTML file for reporting 
purposes.  I desire that this white space to be represented in the HTML 
output.  This is how I am attempting to do this figuring that the 
<pre></pre> tag should give me the desired results.

<xsl:if test="string-length(@COMMENTS) &gt; 0"><pre><xsl:value-of 
select="@COMMENTS"/></pre></xsl:if>

But this does not work.  The line breaks and carriage returns seem to be 
gone after the transformation.  At least it is when I preview the file 
in Firefox.  Looking at the source the <pre> tag is properly wrapped 
around the output, but the output is all on one line with no returns or 
breaks?

Any ideas where this might be failing?  Is it some function of XSLT that 
I do not understand?  Firefox's interpretation of the XSLT and XML 
standards?  The Dreamweaver tool I am using to edit the XSLT file and 
fire off the preview in Firefox?

Thank You
Ian


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:322414
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to