Copy link to clipboard
Copied
Using: FM 8.0
I am working with a single fm file (not a .book) and its associated EDD file was generated from an DTD. I then attached the “ValidHighestLevel” element to one of the element tags in the EDD in hopes of making it the root element. After importing the EDD back into the .fm file, the element fails to change to the root element, it still shows the default “NoName” in structure view.
I believe that this document would be valid if I could get the root element “NoName” to be replaced, but I cant seem to figure this out. In the example below, I am attempting to show the structured view of the file as it currently is displayed, also I have shown my Ideal view below it. If the “NoName” element was eliminated and then replaced by the “Product” element this would solve my issue. Can someone explain what I am doing wrong.
Additionally, is there a way of assigning the Root Element directly by using the read/write rules?
Thanks in advance.
<<<<Current file Struct View>>>>
NoName
-Product
---Package
---Box
---Label
---Merchandise
<<<<Current file Struct View>>>>
<<<<Ideal file Struct View>>>>
Product
-Package
--Box
--Label
--Merchandise
<<<<Ideal file Struct View>>>>
In your case, the No Name element already contains the Product element. So, just select the No Name element and unwrap it.
Van
Copy link to clipboard
Copied
Hi,
Frame assigns the "NoName" element to structured document if the source data contains more than one root element. Multiple roots are not allowed in XML world. "NoName" typically appears after using Frame's structure generator to create structured version from unstructured document and the conversion rules fail to create valid hierarchy. The only way to fix the error is to select the NoName-element and replace it with correct element.
EDD's "Valid as highest element" definition only defines those elements that are allowed as root elements when a new document based on the edd is created. During XML and SGML too) read, the root element is defined by the instance itself.
R/W rules cannot be used in this case.
BR, Martti
Copy link to clipboard
Copied
In your case, the No Name element already contains the Product element. So, just select the No Name element and unwrap it.
Van
Copy link to clipboard
Copied
The answer was so simple I overlooked it. I spent hours looking through all the Frame manuals and forums before I posted, but the unwrap function never crossed my mind in this instance. Thanks again.