Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix L XML Conversion Function Mapping Rules> L.1 Mapping Rule File Definition Format

L.1.6 extensionRule

mark1Description

This tag specifies rules relating to additional information.

mark1Format

<extensionRule id="attribute value" | tagname="attribute value" | attrname="attribute value" }
 { parent="attribute value" | attrof="attribute value" } extender="attribute value"
 extender-arg="attribute value" />

Notes:
Specify either the tagname attribute or the attrname attribute.
Specify either the parent attribute or the attrof attribute.

mark1Attributes

[Table L-8 Attributes]

Attribute name

Description

Required item?

id

Specifies the mapping rule identifier (*1).
This attribute must be specified.

Required

tagname

To add an element, specify the tag name for the additional element.
If a space ("") is specified as the value of this attribute, the opening and closing extensionRule tags will not be output.
Either the tagname or the attrname attribute must be specified.

Conditional

attrname

To add an attribute, specify the name for the additional attribute.
Spaces ("") cannot be specified as the value of this attribute.
Either the tagname or the attrname attribute must be specified.

Conditional

parent

When adding an element, specify the mapping rule identifier for the parent element of the additional element.
This attribute must be specified if the tagname attribute has been specified.
The mapping rule having the mapping rule identifier specified here must be defined before the mapping rule for the additional element.

Conditional

attrof

When adding an attribute, specify the mapping rule identifier for the additional attribute.
This attribute must be specified if the attrname attribute has been specified.
The mapping rule having the mapping rule identifier specified here must be defined before the mapping rule for the additional attribute.

Conditional

extender

Specifies how to get additional attribute information.
The following values can be specified for this attribute:

  • STATIC:
    Specify this value if the additional information is to be a string, in which case the actual value of the string is specified in the extender-arg attribute.
  • EMPTY:
    Specify this value if the additional information is to be an empty element. This value cannot be specified in combination with the attrname attribute.

If this attribute is not specified, the default value is "empty".

Required

extender-arg

Specifies the string to be used as the additional attribute information.
This attribute must be specified if the value of the extender attribute is "STATIC".

Conditional

*1) 'Mapping rule identifiers' are used to identify mapping rules. Each mapping rule identifier must be unique within a mapping rule file.

mark1Elements

None

mark1Note on extensionRule

None


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006