Subject: RE: [xsl] outputting   to HTML (see an article) From: "David B. Bitton" <david@xxxxxxxxxxxxxx> Date: Mon, 17 Dec 2001 15:08:33 -0500 |
What I did so I can use , was to create a template called "nbsp" like so... <xsl:template name="nbsp"> <xsl:text disable-output-escaping="yes">&</xsl:text> <xsl:text>nbsp;</xsl:text> </xsl:template> And then call it like this... <xsl:call-template name="nbsp"/> Whenever I need a non-breaking space. I include this template, in addition to other helper templates, with an xsl:include in my stylesheet. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Lisa Liping Li Sent: Thursday, December 13, 2001 3:08 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] outputting   to HTML (see an article) Look at http://www.mycgiserver.com/~~lisali/papers/1.2/paper.htm It details lots of things related to whitespaces in html. Lisa --- Charly <cohana@xxxxxxxxxxxxxxx> wrote: > Hi Gabor. > > Add this on the top of your xsl > <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "<xsl:text > disable-output-escaping='yes'>&nbsp;</xsl:text>">]> > <xsl:stylesheet version="1.0"> > .... > </xsl:stylesheet> > > > > ----- Original Message ----- > From: "gabor farkas" <xlat@xxxxxxxx> > To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> > Sent: Thursday, December 13, 2001 9:14 AM > Subject: [xsl] outputting   to HTML > > > > Hello all, > > > > I have a simple problem: > > how to emit   via xsl? > > if i write   it throws me an 'referene > to undefined entity' > > error; > > if i write &nbsp; it outputs &nbsp; > (instead of ) > > if i write <![CDATA[ ]]> the   > appears when viewed in > > a browser... > > > > any ideas? > > thx > > Gabor > > > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > > > > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] outputting   to HTML , Lisa Liping Li | Thread | RE: [xsl] outputting   to HTML, Jeff Beadle |
RE: [xsl] order-by: char or int?, Michael Kay | Date | Re: [xsl] Sorting and attributes, Mike Ferrando |
Month |