XSD validation on XML in Switch?

Post Reply
automation
Member
Posts: 40
Joined: Tue Jan 15, 2019 10:19 pm

XSD validation on XML in Switch?

Post by automation »

We have Switch 2018/2019. Is there a way to validate XML against XSD? We have a XSD file from but don't know how we can validate XML-files against it in Switch and I don't find anything in the Enfocus Appstore when we search.
Malcolm Mackenzie
Member
Posts: 121
Joined: Wed Mar 22, 2017 5:05 pm
Location: London, UK
Contact:

Re: XSD validation on XML in Switch?

Post by Malcolm Mackenzie »

Hi

I believe you can do this using the Saxonica Configurator using XQuery

https://www.saxonica.com/html/documenta ... dline.html

Description
This configurator allows performing XSLT 2.0 and 3.0 transformations and XQuery queries using the Saxon XSLT and XQuery Processor from Saxonica Limited (http://www.saxonica.com).
Saxon home page: http://www.saxonica.com/documentation/documentation.xml

Compatibility
Saxon 9.6-9.9 Enterprise Edition on the Java and .NET platforms
Saxon 9.6-9.9 Professional Edition on the Java and .NET platforms
Saxon 9.6-9.9 Home Edition on the Java and .NET platforms

Keywords
XSLT XML XPath XQuery transformation

Application discovery details
The Saxon configurator searches for Saxon processor in 'Saxonica' subfolder of the default applications installation folder ('Program Files\Saxonica' in case of Windows and 'Applications/Saxonica' folder in case of Mac OSX). On Windows configurator searches for .Net version of the processor first and only in case nothing is found it searches for Java version. On Mac OSX configurator searches for Java version only.

If the processor is not found in the 'Saxonica' subfolder it is possible to trigger the search for Java version in the complete default applications installation folder by clicking 'Search for application' context menu item of the configurator. Since some third-party applications include Java archives of Saxon processor it is important to make sure that configurator has found the expected version of Saxon. If the configurator could not find any Saxon processor or if it has found a wrong version, it is necessary to set the correct version manually using 'Set path to application...' context menu item. The configurator expects a path to Transform.exe for .Net version of Saxon processor or saxon9ee.jar (saxon9pe.jar, saxon9he.jar) for Java Enterprise edition (Professional edition, Home edition) of Saxon processor.

If Saxon is installed after Switch was started it is necessary to trigger the search for Saxon by restarting Switch or by clicking 'Search for application' context menu item of the configurator.
automation
Member
Posts: 40
Joined: Tue Jan 15, 2019 10:19 pm

Re: XSD validation on XML in Switch?

Post by automation »

Malcolm Mackenzie wrote: Tue Jul 09, 2019 2:26 pm Hi

I believe you can do this using the Saxonica Configurator using XQuery

https://www.saxonica.com/html/documenta ... dline.html

Description
This configurator allows performing XSLT 2.0 and 3.0 transformations and XQuery queries using the Saxon XSLT and XQuery Processor from Saxonica Limited (http://www.saxonica.com).
Saxon home page: http://www.saxonica.com/documentation/documentation.xml

Compatibility
Saxon 9.6-9.9 Enterprise Edition on the Java and .NET platforms
Saxon 9.6-9.9 Professional Edition on the Java and .NET platforms
Saxon 9.6-9.9 Home Edition on the Java and .NET platforms

Keywords
XSLT XML XPath XQuery transformation

Application discovery details
The Saxon configurator searches for Saxon processor in 'Saxonica' subfolder of the default applications installation folder ('Program Files\Saxonica' in case of Windows and 'Applications/Saxonica' folder in case of Mac OSX). On Windows configurator searches for .Net version of the processor first and only in case nothing is found it searches for Java version. On Mac OSX configurator searches for Java version only.

If the processor is not found in the 'Saxonica' subfolder it is possible to trigger the search for Java version in the complete default applications installation folder by clicking 'Search for application' context menu item of the configurator. Since some third-party applications include Java archives of Saxon processor it is important to make sure that configurator has found the expected version of Saxon. If the configurator could not find any Saxon processor or if it has found a wrong version, it is necessary to set the correct version manually using 'Set path to application...' context menu item. The configurator expects a path to Transform.exe for .Net version of Saxon processor or saxon9ee.jar (saxon9pe.jar, saxon9he.jar) for Java Enterprise edition (Professional edition, Home edition) of Saxon processor.

If Saxon is installed after Switch was started it is necessary to trigger the search for Saxon by restarting Switch or by clicking 'Search for application' context menu item of the configurator.
But on this page: http://www.saxonica.com/products/products.xml

It says I need enterprise version

Saxon-HE
Home Edition: open-source entry-level product (available from SourceForge and Maven). Provides implementations of XSLT 3.0, XQuery 3.1, and XPath 3.1 at the basic level of conformance defined by W3C. View full description

Saxon-PE
Professional Edition: adds a number of features to Saxon-HE, including optional features in XSLT 3.0, support for Saxon extensions, extensibility mechanisms, and optional features in XQuery 3.1; integration with the ICU-J library to provide localization for different languages; and support for external object models (such as JDOM2, XOM, DOM4J, AXIOM). View full description

Saxon-EE
Enterprise Edition: the fully-featured product. Fully conformant XSD 1.0 and XSD 1.1 schema processor, with support for schema-aware XSLT and XQuery processing. Many other features including streaming in XSLT and XQuery, XSLT packages, support for XQuery updates, an advanced query optimizer, compilation of XQuery and XSLT code to Java bytecode, and much more. View full description
Malcolm Mackenzie
Member
Posts: 121
Joined: Wed Mar 22, 2017 5:05 pm
Location: London, UK
Contact:

Re: XSD validation on XML in Switch?

Post by Malcolm Mackenzie »

Looks like there's option for the EE version just to Validate

http://www.saxonica.com/shop/shop.html# ... ort=normal

Saxon-EE-V (Enterprise Edition, Validation package), initial license (ref: EEV01)
License for Saxon Enterprise Edition, schema validation only; for one computer (server or workstation). Includes support and upgrade rights for 12 months from date of purchase.
£120.00
Post Reply