This is based on specific setting in the GN4.XSD schema, when the GNML tag name equals the XML element name, and GNML tag contains one optional Bell.
This assumes there's a photoCaption element in the GN4.XSD schema. If the element requires one Bell character, as in this example, the definition of the element has to include the definition of Bell element:
<xs:element name="photoCaption">
<xs:complexType>
<xs:annotation>
<xs:appinfo>
<gs:_objectType deadlineGap="0" nameptt="&a,ph&n[1,2]" typeLink="single" mediaType="Text">
<description>Photo caption</description>
</gs:_objectType>
</xs:appinfo>
</xs:annotation>
<xs:complexContent>
<xs:extension base="txt">
<xs:sequence>
<xs:element name="xmlText" minOccurs="0" gs:storage="Ignore">
<xs:annotation>
<xs:documentation>Text XML structure. Not stored in the database</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="p" type="p" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="credit" type="credit" minOccurs="0" maxOccurs="1"/>
<xs:element name="caption" type="caption" minOccurs="0" maxOccurs="1"/>
<xs:element name="bell" type="bell" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ref" type="reference" minOccurs="0" gs:refer="img"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
An example might be a style photocaption, with the following structure:
>is 0<>f 133<>h 8.5pt<>ld 10pt<>paj<>ql<>fill ,,,,2<
where the >fill...< tag requires the Bell.
The XML output is:
<photoCaption>
In such case, the tag does not cause the formatting error related to the Bell character neither when it is used with the Bell, nor when it's missing.
|