Currently, this is my input xml file
Code:
<root>...<body>..</body>...</root>
and this my xsl style sheet.
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="body">
<xsl:apply-templates select="WorkflowProcess"/>
</xsl:template>
and so forth............
The problem is that this is my new xml input file.
Code:
<root xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Id="wrkflw6"
Name="wrkflw6" xsi:schemaLocation="http://www.wfmc.org/2002/XPDL1.0
http://wfmc.org/standards/docs/TC-1025_schema_10_xpdl.xsd">...
<body>....</body>....
</root>
With this inclusion of these namespaces, my outfile was no longer correctly outputted. It just skips past my template match and ouputs the input file only.
The issue is that all these namespaces like xpdl and xsi are of no use to me.Thus I want to alter the xsl file such that it can exclude all these namespaces in the input xml file and do the transformation as per normal.
I am using Pyana engine to do my XSLT conversion in windows XP.
Any help is appreciated.