On 26 Mar 2009, at 02:07, Maria2009 wrote:
Hi Maria
<snip />
If anybody has a hint of how to get create a unified original
document from
these different options, I will be happy. I thought of adressing these
points (spaces before and after element tags) with XPointer or
RegEx, so if
there is an advice about which one to use, I will start learning this
technique at first. Or anything else if necessary!
Just an idea, but the first thing to try:
If the value comes with a trailing space from the source XML, then
using something like
<xsl:value-of select="normalize-space(.)" />
should remove leading/trailing spaces, and output only the significant
content of the descendant text-node. For white-space-only nodes, the
above will yield a zero-length string.
If you have no parts in the source XML where white-space/linefeeds
should be preserved, you could even use the above as the default
matching template for 'text()'. That is likely to be the most
straightforward solution to your issue. No pre-processing of the FO
needed, I think...
HTH!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]