Using the MSXML processor.

Questions about XML that are not covered by the other forums should go here.
pcharles
Posts: 4
Joined: Fri Oct 14, 2005 7:09 pm

Using the MSXML processor.

Post by pcharles » Mon Oct 17, 2005 2:31 pm

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

george
Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Mon Oct 17, 2005 4:41 pm

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

Post Reply