|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
how do I output a nonbreaking space on the page using xsl?
just outputs literally - I tried to set it up as an entity but that gave an error.....help out a newb! ![]() Last edited by jamieB : December 19th, 2002 at 09:41 AM. |
|
#2
|
|||
|
|||
|
You need to define the entity, usually done in the document type definition (DTD), not the style sheet. If you're unfamiliar with DTDs, a good place to start is www.w3schools.com/dtd.
The definition for a non-breaking space would be: Code:
<!ENTITY nbsp " "> |
|
#3
|
|||
|
|||
|
thx for your reply,
|
|
#4
|
|||
|
|||
|
NBSP in stylesheet
The DTD is the best way, but if you don't want to bother with that, you can put the following in your XSLT:
<xsl:text disable-output-escaping="yes"> </xsl:text> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > * * in xsl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|