Code written to get values from xpl file from Url

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Code written to get values from xpl file from Url

ChandraSekhar Mangipudi
HI. This is my code to get values from one xml file from url. 
 
.xpl :
 
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:oxf="http://www.orbeon.com/oxf/processors"
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
          <p:param name="data" type="input"/>
    
   <p:processor name="oxf:url-generator">
    <p:input name="config">
    <config>
    <url>oxf:http://localhost:8080/ops/exist/rest/db/orbeon/xforms-bookcast/sample-data.xml</url>
    <content-type>application/xml</content-type>
    <encoding>iso-8859-1</encoding>
    <force-encoding>true</force-encoding>
    </config>
    </p:input>
    <p:output name="data" id="xml"/>
    </p:processor>
</p:config>
 
.xsl:
 
<xhtml:html xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xsl:version="2.0">
 
    <xhtml:head><xhtml:title>URL Generator</xhtml:title></xhtml:head>
    <xhtml:body>
        <xhtml:p>
           Printing Values of Sample-data.xml
        </xhtml:p>
        <xhtml:p>
           <b><xsl:value-of select="/data1/name"/></b>
        </xhtml:p>
        <xhtml:p>
          
        </xhtml:p>
    </xhtml:body>
</xhtml:html>
.xml file which is called from one url :
 
<name> chandra</name>

                      
                                
      Thanks & Regards,
 
     Chandrasekhar Mangipudi     
       Software Developer,
       I-logicon,
       Bangalore,  India.
     Mobile: 9986573322,
[hidden email]
[hidden email]


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws