Hi

I am trying to use XSLT component.

My incoming xml is a raw xml structure which has no namespace informations
associated with it. 
Is there a way to write xsl code to transform this into another xml
structure. 

I tried xsl code as follows

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xsi:schemaLocation="http://www.openapplications.org/oagis/9
ProcessRequisition.xsd" xmlns="http://www.openapplications.org/oagis/9";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:fo="http://www.w3.org/1999/XSL/Format";> 
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
        <xsl:template match="/">
                <SyncOTECINVBALSPX baseLanguage="EN" transLanguage="EN">
                <OTECINVBALSPXSet>
                <xsl:for-each select="INVMaximoData/INVTARGETData">
                <INVENTORY>
                        <ITEMNUM changed="?"><xsl:value-of
select="/INVMaximoData/INVTARGETData/SITE/EXTITEMCODE"/></ITEMNUM>
                        <ITEMSETID changed="?">ITEMSET1</ITEMSETID>
                        <LOCATION changed="?"><xsl:value-of
select="/INVMaximoData/INVTARGETData/SITE/EXTITEMCODE/WARECODE"/></LOCATION>
                        <ORGID changed="?"><xsl:value-of
select="/INVMaximoData/INVTARGETData/SITE/EXTITEMCODE/SOURCESYS"/></ORGID>
                        <SITEID changed="?"><xsl:value-of
select="/INVMaximoData/INVTARGETData/SITE/EXTITEMCODE/SITE"/></SITEID>
                        <INVBALANCES>
                                <CURBAL changed="?"><xsl:value-of
select="/INVMaximoData/INVTARGETData/SITE/EXTITEMCODE/CURRBALANCE"/></CURBAL>
                        </INVBALANCES>
                </INVENTORY>
                </xsl:for-each>
                </OTECINVBALSPXSet>
        </SyncOTECINVBALSPX>
  
        </xsl:template>
</xsl:stylesheet>

But unfortunately no data values in output :-(

Reji




--
View this message in context: 
http://camel.465427.n5.nabble.com/XSLT-without-Namespace-tp5750926.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to