Dear Team,
I have developing XLST for Schema XML to DTD XML, i my xslt process only
without namespaces. when i give with namespaces XML the XSLT process
(Saxon9)
remove all elements.
This Input XML: (Namespaces used root element only)
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen NVDLSchema="../../schema/case-report-xt.nvdl"?>
<?oxygen SCHSchema="../../schema/case-report-xt.xsd"?>
<report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/TR/xlink/"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns="http://xml.smg-uk.com/schema/cases/report"
xmlns:lcr="http://xml.smg-uk.com/schema/lcr"
xsi:schemaLocation="http://xml.smg-uk.com/schema/analytical
case-report-xt.xsd" appeal="false">
<maintitle>
...
...
...
</maintitle>
</report>
This is XSL:
<?xml version="1.0"?>
<hov:stylesheet xmlns:hov="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mf="http://example.com/2009/mf"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
exclude-result-prefixes="xs mf fn" version="2.0">
<hov:import href="entitynamesmap.xsl"/>
<hov:output method="xml" omit-xml-declaration="yes" indent="no"
use-character-maps="w3c-entity-names"/>
<hov:template match="report"><hov:element
name="report-doc"><hov:apply-templates/></hov:element></hov:template>
<hov:template match="maintitle"><hov:element
name="main-title"><hov:apply-templates/></hov:element></hov:template>
...
...
...
</hov:stylesheet>
Kindly guide me how will be proceed further, i hope from you.
Thanks,
Selva
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--