Skip to main content
Participant
December 15, 2008
Question

XML for Forced Return

  • December 15, 2008
  • 2 replies
  • 448 views
I use XSLT to create XML documents to be opened in FrameMaker and converted to structured documents. I have one element (called SyntaxPara) in which I'd like multiple lines separated by forced returns, as indicated by "{" symbol in the document (or \r in the Find/Change dialog). Anybody know what the XML coding would be to specify a forced return? I cannot seem to nail it down. I need to do this because my structured template is supporting styles used with unstructured FrameMaker, and that happens to be how they're doing it. Thanks,
This topic has been closed for replies.

2 replies

Participant
December 15, 2008
Thanks Van. Based on what you said, this seems to work:<br />The following seems to work:<br />Element (Container) Break<br /> General rule: <EMPTY><br /> Prefix rules<br /> 1. In all contexts<br /> Prefix \r<br /> Text Format rules<br /> 1. In all contexts.<br /> Text range.
Known Participant
December 15, 2008
John,

I do not know what the Kosher XML method is, but you can define an element in your EDD, say Break, which has no content or attributes. The EDD defines its formatting as character formatting and a prefix or suffix that is the return character, namely \r. Note that this requires an update to your EDD. Your XSLT would then translate the XML object that indicates a break into the element Break.

Van