Hi Freeman

let me elaborate what i am doing.,

Look at these code:

*XML:*

<?xml version="1.0" encoding="ISO-8859-1" ?> 
-  
- <catalog>
- <cd>
  <title>Empire Burlesque</title> 
  <artist>Bob Dylan</artist> 
  <country>USA</country> 
  <company>Columbia</company> 
  <price>10.90</price> 
  <year>1985</year> 
  </cd>
- <cd>
  <title>Hide your heart</title> 
  <artist>Bonnie Tyler</artist> 
  <country>UK</country> 
  <company>CBS Records</company> 
  <price>9.90</price> 
  <year>1988</year> 
  </cd>
- <cd>
  <title>Greatest Hits</title> 
  <artist>Dolly Parton</artist> 
  <country>USA</country> 
  <company>RCA</company> 
  <price>9.90</price> 
  <year>1982</year> 
  </cd>
</catalog>

and the *XSLT:*

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="/">
  <html>
  <body>
    
My CD Collection

    <table border="1">
      <tr bgcolor="#9acd32">
        <th>Title</th>
        <th>Artist</th>
      </tr>
      <xsl:for-each select="catalog/cd">
      <xsl:sort select="artist"/>
      <tr>
        <td><xsl:value-of select="title"/></td>
        <td><xsl:value-of select="artist"/></td>
      </tr>
      </xsl:for-each>
    </table>
  </body>
  </html>
</xsl:template>

</xsl:stylesheet>


This xslt will produce a html code, I want this code to be written on
output.html in the fuse home folder (also this xml & xslt were in fuse home
folder ).

I am using camel blueprint, look at this code

<?xml version="1.0" encoding="UTF-8"?>
<blueprint
    xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="
      http://www.osgi.org/xmlns/blueprint/v1.0.0
      http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>
    <camelContext xmlns="http://camel.apache.org/schema/blueprint";>
      <route>
        <from uri="file:start.xml"/>
        <to uri="xsl:design.xsl"/> 
                
      </route>
    </camelContext>
</blueprint>

>From this above blueprint, by modification .. i want to attain the above
scenario ( that xslt must transform the xml into html and it should put it
into a html file)

Kindly help me out. Such that i will get some idea in this camel,esb and
fuse with respect to my scenario..


Cheers
Guru



-----
Cheers
 Guru
--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Endpoint-in-Fuse-tp4549457p4549631.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to