[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xml to xsl: fo -> pdf format: break line!!!!
Hi - you could try something along the lines of... <xsl:template name="lf-to-block"> <xsl:param name="text"/> <xsl:choose> <xsl:when test="contains($text, ' ')"> <fo:block> <xsl:value-of select="substring-before($text, ' ')"/> </fo:block> <xsl:call-template name="lf-to-block"> <xsl:with-param name="text" select="substring-after($text,' ')"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <fo:block> <xsl:value-of select="$text"/> </fo:block> </xsl:otherwise> </xsl:choose> </xsl:template> All the best, Richard -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Marco Pedrini Sent: 23 May 2003 10:55 To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: xml to xsl: fo -> pdf format: break line!!!! Hi, could anyone help me? I have some problem with the transformation of xml, through fo (formatting object) to generate a pdf from it. If I have information stored in a DB ORACLE, inserted from a data field where the user could write free text (including break line, with the ENTER tab). HOW could I represent in pdf the same formatted text? Actually the code I have is: <fo:block font-size="8pt" font-family="sans-serif" line-height="10pt" space-after.optimum="4pt" padding-top="4pt"> <xsl:value-of select= "// DATA/ROWTAG/CS01_DESC_OPERAT"/> </fo:block> and all that is retrived fromn DB, via XML, mantain tha case format, but lose the end of the line, marked on DB with a double pipe. thanx a lot Pedro XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|