Thread View: adobe.framemaker.sgml
2 messages
2 total messages
Started by David_Blyth_San_Diego
Wed, 29 Oct 2008 23:55
Space! The Final Frontier
Author: David_Blyth_San_Diego
Date: Wed, 29 Oct 2008 23:55
Date: Wed, 29 Oct 2008 23:55
29 lines
1530 bytes
1530 bytes
Here's my tribble. The XSLT in my application inserts extra spaces and line breaks into my XML but a Spock inspection after import to Frame8 shows that the spaces are incorrectly phased as literals. For example, if my XML Data is....
[para]Hello (big smile), I
am Captain Kirk.[/para]
Then that's how it displays inside Frame. This is annoying as the F8 Struct App Dev Reference says that:
reader line break is space;
is the default inside the rules file but it isn't and adding it doesn't change anything. Is there anything I can do to change the parser defaults?
This problem is the Real Mccoy. Plus it's the last item on my application Chekov list and I'm the Sulu developer here so any help is appreciated. Thanks!
David Blyth (the UNIX and vi dinosaur)
Staff Technical Writer
QUALCOMM - Standard Disclaimers Apply
Only 149,999,949 more years of Ruling The Earth to go.
Re: Space! The Final Frontier
Author: Martti_Poutanen
Date: Thu, 30 Oct 2008 06:44
Date: Thu, 30 Oct 2008 06:44
11 lines
1181 bytes
1181 bytes
Hi David, Looks like a cr/lf problem in XML CDATA-sections from the source data. Are you working with mixed environments Unix/Windows? I'd try additional code in xsl to tweak the output: a) use normalize-space() in text()-match to get rid of extra stuff, it might solve the problem b) bit more complicated is to have recursive template for cdata that uses substring-before (grab cdata before linebreak, usually char "#x0a" )and substring-after (grab all cdata after linebreak) BR, Dr. Spock ..former Martti..;)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads