My XML files contain an element ([nbr], say) which must not be broken over two lines. In XML this element contains ordinary text with normal space, hyphen and/or slash characters. Because Frame's line break options are only settable at a document level (Document - Text Properties) I need to modify the content whenever the XML is passed into or out of Frame. (We use some basic r/w rules in this process, but most of our document adjustments are carried out by two XML stylesheets: xml2fm.xsl on load, fm2xml.xsl on save.)
I would like to enhance these stylesheets so that they translate the [nbr] element content, replacing any space characters with non-breaking spaces (and hyphens with non-breaking hyphens) in xml2fm, and the converse in fm2xml.
Our XML files are UTF-8. I have no difficulty coding this process so long as I know what "text" Frame will recognise as the non-breaking characters when it reads the XML and what it will write out when it saves it. I've seen some attempt to do this job with variables in the application template which are then imported into every document, and I'm not convinced that is the only or best way to go.
Anyone been here before me and can offer any pointers?
Thanks
T
I would like to enhance these stylesheets so that they translate the [nbr] element content, replacing any space characters with non-breaking spaces (and hyphens with non-breaking hyphens) in xml2fm, and the converse in fm2xml.
Our XML files are UTF-8. I have no difficulty coding this process so long as I know what "text" Frame will recognise as the non-breaking characters when it reads the XML and what it will write out when it saves it. I've seen some attempt to do this job with variables in the application template which are then imported into every document, and I'm not convinced that is the only or best way to go.
Anyone been here before me and can offer any pointers?
Thanks
T