XML roundtripping - attributes with more than one value
Daniel Osborn
Daniel.Osborn at tomtom.com
Thu Oct 26 06:33:40 PDT 2006
Hi Lynne,
Does this mean that I should change the attribute type in the DTD to
NMTOKENS? (At the moment it's CDATA.) I tried this but nothing changed.
Have I done the wrong thing?
Thanks for your help,
Daniel
Daniel Osborn | Usability Engineer - Technical Writer | TomTom |
daniel.osborn at tomtom.com | +31 (0) 20 8500 934 office
-----Original Message-----
From: Lynne A. Price [mailto:lprice at txstruct.com]
Sent: Wednesday, October 25, 2006 7:57 PM
To: Daniel Osborn; framers at lists.frameusers.com
Subject: Re: XML roundtripping - attributes with more than one value
At 10:27 AM 10/24/2006, Daniel Osborn wrote:
>In Framemaker, when you add more than one value to an attribute of type
>'Strings', the values have to be separated by a line break.
>
>When you save the file as .xml the values of the attribute are written
>into one string separated by spaces. No problem there except that when
>you open the file again in Framemaker the values are also written on
one
>line separated by spaces.
>
>Is there any way to reintroduce the line breaks into the attribute
value
>when the file is opened in Framemaker?
Daniel,
The FrameMaker attribute type Strings corresponds roughly to the XML
attribute NMTOKENS. XML, however, restricts the different tokens to name
characters and FM does not. In particular, FM permits white space within
a
particular string and XML does not. When FM opens an XML document that
has
a DTD, it interprets spaces within the value of a NMTOKENS attribute as
a
token separator. It displays each token on a separate line in the
Structure
View and in the Attributes window and dialog box.
--Lynne
Lynne A. Price
Text Structure Consulting, Inc.
Specializing in structured FrameMaker consulting, application
development,
and training
lprice at txstruct.com http://www.txstruct.com
voice/fax: (510) 583-1505 cell phone: (510) 421-2284
More information about the framers
mailing list