Have you tried your xsl with an xslt-tool on your input? Or with Xalan: java -classpath xalan.jar;xercesImpl.jar org.apache.xalan.xslt.Process -IN input.xml -XSL transform.xsl > output.xml
Jan > -----Ursprüngliche Nachricht----- > Von: contactreji [mailto:contactr...@gmail.com] > Gesendet: Dienstag, 6. Mai 2014 14:41 > An: users@camel.apache.org > Betreff: XSLT without Namespace > > 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"/></LOCA > TION> > <ORGID changed="?"><xsl:value-of > select="/INVMaximoData/INVTARGETData/SITE/EXTITEMCODE/SOURCESYS"/></ORG > ID> > <SITEID changed="?"><xsl:value-of > select="/INVMaximoData/INVTARGETData/SITE/EXTITEMCODE/SITE"/></SITEID> > <INVBALANCES> > <CURBAL changed="?"><xsl:value-of > select="/INVMaximoData/INVTARGETData/SITE/EXTITEMCODE/CURRBALANCE"/></C > URBAL> > </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.