Subject: [xsl] xsl: preserving spaces preserves only one space? From: josh higgins <doopsterus@xxxxxxxxx> Date: Mon, 4 Apr 2005 07:52:12 -0700 (PDT) |
I am trying to preserve spaces but it is not working. The data displays but it only puts one space between each item when some items have more then one space between them. Can someone help me please? Here is a the xsl code. The path of the item I am trying to preserve can be seen in the detail template. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:preserve-space elements="transaction_detail"/> <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="simple" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body margin-top="3cm"/> <fo:region-before extent="3cm"/> <fo:region-after extent="1.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="simple"> <fo:flow flow-name="xsl-region-body"> <fo:block> <xsl:call-template name="detail"/> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <!-- DATA FIELD TEMPLATES --> <xsl:template name="detail"> <xsl:for-each select="/invoice/detail/row"> <fo:block font-size="10pt"> <xsl:value-of select="transaction_detail"/> </fo:block> </xsl:for-each> </xsl:template> </xsl:stylesheet> __________________________________ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] WG: key multiple select, David Carlisle | Thread | Re: [xsl] xsl: preserving spaces p, David Carlisle |
Re: [xsl] Schema declarations showi, Spencer Tickner | Date | Re: [xsl] xsl: preserving spaces p, David Carlisle |
Month |