Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within XML
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
XML and Related Technologies
problem
amit sanghai
Ranch Hand
Posts: 231
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I Am converting XML to HTML using XSL stylesheet. While conversion, I recveive following error when I write .
error:
-----
The entity "nbsp" was referenced, but not declared.
-----
How can I resolve this issue?
Thanks.
Amit Sanghai.
Paul Clapham
Marshal
Posts: 28193
95
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Check out this almost identical post:
https://coderanch.com/t/129063/XML/entity-nbsp-was-referenced-but
amit sanghai
Ranch Hand
Posts: 231
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I am converting XML to HTML using XSL. I declared the entity but it did not accept it. I tried to use but that did not work either.
amit sanghai
Ranch Hand
Posts: 231
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I tried to use <! DOCTYPE .... but that gave error: xsl:stylesheet must be declared.
I tried to use   in the stylesheet, but that also did not work.
amit sanghai
Ranch Hand
Posts: 231
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I found the solution:
<xsl:text disable-output-escaping="yes"> </xsl:text>
Paul Clapham
Marshal
Posts: 28193
95
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Using disable-output-escaping is ugly and
you should
avoid it wherever possible. I have always found that   works as a non-breaking space; what "did not work" for you?
amit sanghai
Ranch Hand
Posts: 231
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
  did not work. It printed a junk character.
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
parent child relation ship
Question about classes
Mindless, Meaningless Thread- Moose Style
Configuration issues with tomcat5
stateless endpoint, how to make soap-fault exeption rollback enabled
More...