Project

Profile

Help

Adding line breaks in middle of img src

Added by Anonymous about 14 years ago

Legacy ID: #8044249 Legacy Poster: http://hankhaines.myopenid.com/ ()

I am transforming xml and I have filenames within the src attribute of an img tag that contains '-' (dashes) in them. The problem is that the transformation is putting line breaks in the html output. I have used: <xsl:output encoding="iso-8859-1" indent="no" method="html" /> to try and stop the line breaks. Interestingly, I did see a difference, however even though it did not break on the same tags, it does not remove all of the line breaks. I am missing something so that the output of the transformation does not create line breaks in the middle of commands.


Replies (2)

RE: Adding line breaks in middle of img src - Added by Anonymous about 14 years ago

Legacy ID: #8044288 Legacy Poster: David Lee (daldei)

I would not expect line breaks in attributes at all no matter what (but only Mr Kay would know for sure). Are you positive that it isnt your HTML viewer program that is inserting the breaks ? Have you looked at your output in a plain text or hex editor to verify the line breaks are physically in the file not added in your viewer app ?

RE: Adding line breaks in middle of img src - Added by Anonymous about 14 years ago

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

Please supply a complete (but minima) stylesheet and source document that demonstrate the problem.

    (1-2/2)

    Please register to reply