Changing XPath Version of The Project
If you want to change the default XPath version of the new project to XPath 1.0, or if you want to change the XPath version of older project to XPath 2.0, you can do that in Studio.
- Procedure
- In BusinessEvents Studio select the project for which you want to change the XPath version.
- Right-click the project and select
Properties, or click
.
The property window for the project is displayed.
- Select Build Path and select the appropriate XPath version in the XPath Version field.
- Click
OKAlternatively, you can edit the .beproject file and update the value of the xpathVersion property to 1.0 or 2.0.
If you have changed the XPath version from 1.0 to 2.0 the XPath Version Changed confirmation dialog is displayed. Click Yes to run the Mapper Function Migration wizard to fix common mapping issues, see Migrating Mapper Functions from XPath 1.0 to XPath 2.0 for more details. Click No if you wish to fix all the mapping issues manually.
Important: Always back up your project before running the Mapper Function Migration wizard.The project now uses the XSLT mapper based on the new XPath version.
After the change in the compatible XPath version, check the XSLT mappings for the validation errors due to new XPath version. Use the autofix option in the Check and Repair dialog to correct the typecasting and function errors. See Mapping and Transforming Data for more details.