java - Best practise to read data as XML from an XSLT -


am rendering stuff web service using xslt. edit data xslt , send xml java.

i can data , save xml file xslt send xml response directly java or spring. edit item description , send response webservice xml

is there best practise or approach perform above task ?

here sample code of current xslt :

<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/xsl/transform"                  xmlns:xs="http://www.w3.org/2001/xmlschema" exclude-result-prefixes="xs"                  xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" version="2.0">     <xsl:output omit-xml-declaration="no" method="xml" indent="yes" encoding="utf-8"/>         <xsl:template match="/">         <html>             <head>                                 <title>my title</title>                      </head>             <body>                 <section>                                         <xsl:call-template name="update-template"/>                 </section>                             </body>         </html>     </xsl:template>     <xsl:template name="update-template">         <table class="myclass">            <xsl:for-each select="/myws/info">                             <xsl:for-each select="item">                                                                    <tr>                                                 <th>item no</th>                         <td>                           <xsl:value-of select="itemno"/>                         </td>                                                                                        </tr>                                         <tr>                         <th>item description</th>                                                <td>                                                        <textarea name = "itemdesc">                                  <xsl:value-of select="itemdesc"/>                             </textarea>                          </td>                                                                    </tr>                       </xsl:for-each>                  </xsl:for-each>        </table>     </xsl:template>    </xsl:stylesheet> 


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -