Examples of Mappings with StyleVision Stylesheets

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Customizing MapForce > Styling Mapping Output with StyleVision >

Examples of Mappings with StyleVision Stylesheets

Many of the mappings included in the MapForce examples folder (<Documents>\Altova\MapForce2019\MapForceExamples\) have StyleVision Power Stylesheets (.sps files) assigned to their target components. When that is the case, the mapping contains the additional StyleVision preview tabs.

mf_stylevision_tabs

StyleVision preview tabs (MapForce Enterprise Edition)

One such example is CompletePO.mfd available at the following path: <Documents>\Altova\MapForce2019\MapForceExamples\CompletePO.mfd. This mapping produces a purchase order in XML format. Right-click the target component, select Properties, and notice that it has an .sps file assigned to it.

mf_assign_sps

 

Click the Output tab to view the output data in HTML format.

mf_stylevision_example1

HTML preview of CompletePO.mfd (MapForce Enterprise edition)

Another example is YearlySales.mfd. This mapping is available at the following path: <Documents>\Altova\MapForce2019\MapForceExamples\Tutorial\YearlySales.mfd.

sv-yearlysales3

 

The stylesheet assigned to this mapping was designed (in StyleVision) in such a way that it is possible to control the type of the chart by changing the value of the ChartType element. This makes it possible to change the chart type directly from the mapping. Namely, you can change the default value of the constant to any value from 1 through 7. Notice that, if you place the mouse cursor over the value-map component, the possible values are displayed.

yearly20

The default value of the constant is "2", which generates a 3D Pie chart in the output. To display other chart types, change this value to any other allowed value, click the Output tab, and observe the result.


© 2019 Altova GmbH