Page 1 of 1

Using the MSXML processor.

Posted: Mon Oct 17, 2005 2:31 pm
by pcharles
How can I use the MSXML processor?
The help says that it is supported, but I don't know how to configure Oxygen to use it.

Thank you.

Patrick

Posted: Mon Oct 17, 2005 4:41 pm
by george
Hi Patrick,

We support MSXSL for transformations. We will add probably support for MSXML for validation in the future.

Right now there is a workaround to use it through the external tools support. For instance you can configure a command line to invoke the msxsl.exe on a source document and request validation of that source document and apply a stylesheet that vrites success if applied, like the one below:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
Success!
</xsl:template>
</xsl:stylesheet>
Assuming for instance that the stylesheet above is named msxml.xsl and is placed in the oXygen home folder that is set to E:\workspace\oXygen\ then the command line for the external tool can look like:
E:\workspace\oXygen\msxsl.exe ${cf} E:\workspace\oXygen\msxml.xsl -v

The {cf} macro will be expaded at runtime to the currently selected file. Also you must save the file before applying the external tool as that will see the file on disk not the one in memory.

Best Regards,
George