🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #124

Re: Translate special characters at XML save/load

#124
From: Van_Kurtz
Date: Wed, 18 Feb 2009 14:02
12 lines
1998 bytes
Trevor,

I am not sure whether this helps you, but I use an EDD that has an element named nobreaksp that is used to insert a nonbreaking space. This element has no content. The EDD formats this element as character formatting with a prefix (or suffix) that is Frame's nonbreaking space.

I am assuming you are bring the XML into Frame and using the stylesheet to transform the XML structure into a structure compatible with your EDD. You could add an element like the above (you could also create a similar one for nonbreaking hyphens) to your EDD, then edit the xml2fm.xsl to transform the XML objects into these elements.

If I understand your situation correctly, your XML files have separate elements for nonbreaking spaces and nonbreaking hyphens, say nbr and nhybr. If so, the xsl stylesheets just simply need to replace the XML elements with the corresponding Frame elements. Or even simpler, name the Frame elements with the same names as used in the XML, then no translation is necessary.

The advantage to the above is that the element objects in the XML files are mirrored as elements in the Frame files. The job of inserting the correct character in the Frame files is done by the EDD, NOT by the xsl sheets. When you go from Frame to XML, the corresponding stylesheet does not need to recognize any special characters, just elements, which is what it does best.

Hope this helps,
Van
Technical Details
Message-ID: <59b7f90b.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b7f90b.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,5fa4972d79faa349
X-Google-Attributes: gidfcc08,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Van_Kurtz@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.framemaker.sgml
Subject: Re: Translate special characters at XML save/load
Message-ID: <59b7f90b.0@webcrossing.la2eafNXanI>
Date: Wed, 18 Feb 2009 06:02:58 -0800
References: <59b7f90b.-1@webcrossing.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit