Mapping Mixed-Content Models

You can map from text nodes in source mixed-content models. This involves mapping from text nodes that are labeled with the relative XPath used to reference them, such as text()[1].  

You cannot map to text nodes in target mixed-content models.

To map a mixed-content element or attribute:

  1. Open the map activity icon in your project.

  2. Expand the schema icons in your map and align and size your schemas into a workable order. Guidelines

  1. To map a connection, drag the source node you want to map and drop it on the target node.
    If the connection is valid, a map link graphically connects the two.

Note: If you want to modify the source or target element of the link, you must delete it and then re-establish the link. You cannot re-attach the link to another element.

  1. In the Properties View, select one of the following Mapping Modes from the drop-down list:

for-each

value-of

copy-of

for-each-value-of

  1. To output a value inside a CDATA Section, set the Output as CDATA property to Yes. If your map requires that a source element value be output in an embedded XML CDATA Section, then you can must set the Output as CDATA property to Yes.

  2. To save your changes, select File>Save mapName.map from the menu bar.
    When you save your map, the XSLT required to transform the source to target document is automatically generated.

  3. View the generated XSLT.

  4. Test your map.