• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

HELP with Carriage Returns

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using an XSL Style sheet to display data from XML Using a table.....
All is fine until there is a Carriage Return in the XML ie
:
:
<description>This is the
description.</description>
:
:
When I try to assign this data to a variable, this causes an error - Unterminated String Constant - how can I escape the Carraige Return so that it wont cause an error but will still maintain its form?
D
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dave, I tested your example with a simple XSLT
<xsl:template match="/">
<xsl:variable name="myVar" select="description"/>
<xsl:value-of select="$myVar"/>
</xsl:template>
and Xalan, and there were no problems at all, the output was
This is the
description.
What do you use for XSL transformation?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic