Subject: RE: Re: [xsl] forcing non breaking spaces? From: cknell@xxxxxxxxxx Date: Wed, 26 Jul 2006 16:57:47 -0400 |
I do! I do! You left this attribute out of your <xsl:output> element: indent="yes" -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Steve <subsume@xxxxxxxxx> Sent: Wed, 26 Jul 2006 16:22:40 -0400 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] forcing non breaking spaces? Hmm...righton. Does anyone know why my output has no indents or formatting? Setting output method=html didn't do anything for this (not that it would, I suppose). -Steve On 7/24/06, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote: > At 2006-07-24 13:59 -0400, Steve wrote: > >Is there some more elegant way of making sure a space gets added after > >every value so that, if there is no value associated with it, there is > >still a space? > > > >More elegant than going > ><xsl:text disable-output-escaping="yes"> </xsl:text> crazy, that is. > > That is an inappropriate use of d-o-e= in my opinion. > > When I need to do the same I do the following: > > <!DOCTYPE xsl:stylesheet [ > <!ENTITY nbsp " "> <!--known for HTML output, not in XML--> > ]> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > <xsl:output method="html"/><!--use hardwired browser entities--> > <xsl:template match="/"> <!-- root rule --> > ... > <td> </td> > ... > > I hope this helps. > > . . . . . . . . . . . Ken > > -- > UBL/XML/XSLT/XSL-FO training: Verx, Denmark 06-09-25/10-06 > World-wide corporate, govt. & user group UBL, XSL, & XML training. > G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx > Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ > Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) > Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc > Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] forcing non breaking spac, Steve | Thread | [xsl] Comparing to SQL NULL, Oleg Konovalov |
Re: [xsl] forcing non breaking spac, Steve | Date | RE: [xsl] Copy idiom and overriding, Michael Kay |
Month |