xsl-fo and linefeed-treatment
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 8
- Joined: Fri Jan 23, 2009 4:46 pm
xsl-fo and linefeed-treatment
I have looked through the previous postings and could not quite find the answer to my question so here it is. It seems like a basic xsl-fo operation so I'm sure someone can help.
I am using the Apache FOP processor that was supplied with Oxygen 10.2
In my XML file I have a <Comment> field that contains several paragraphs of information seperated by (U+000A) linefeeds.
My xsl-fo file has the following block statement -
In the result .pdf the paragraphs have all run together. It is like the linefeed-treatment statement has no effect. What am I missing?
Thanks in advance,
Sean
I am using the Apache FOP processor that was supplied with Oxygen 10.2
In my XML file I have a <Comment> field that contains several paragraphs of information seperated by (U+000A) linefeeds.
My xsl-fo file has the following block statement -
Code: Select all
<fo:block text-align="justify" line-height="1.1" font="12pt Calibri" font-weight="normal" linefeed-treatment="preserve" white-space-collapse="false" wrap-option="wrap" white-space-treatment="preserve" space-after="0.3in">
<xsl:value-of select="//Inspection[position()=1]/Comment"/>
</fo:block>
Thanks in advance,
Sean
-
- Posts: 8
- Joined: Fri Jan 23, 2009 4:46 pm
Re: xsl-fo and linefeed-treatment
Amazing how that works. I struggle and struggle to solve my own problems and don't find the solution until I post it.
The problem turned out to be in my schema. I had the <Comment> element type set as xs:normalizedString.
Since I am using the Saxon-SA 9.0.1.6 Transformer it was replacing each newline, tab and carriage return with a single space character. Thus the xsl-fo processor was not being presented with the original spacing and linefeeds...whew!
The problem turned out to be in my schema. I had the <Comment> element type set as xs:normalizedString.
Since I am using the Saxon-SA 9.0.1.6 Transformer it was replacing each newline, tab and carriage return with a single space character. Thus the xsl-fo processor was not being presented with the original spacing and linefeeds...whew!
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service