Hiding XML Code

wxdqz

New Member
I need some help from ur end on xml/xsl. What i am doing is a follows:-I am using servlets with xml. Servlet takes data from database ando/p it in the xml format. ex:-<?xml version='1.0'?><?xml:stylesheet type="text/xsl" href=http://forums.devx.com/archive/index.php/"style.xsl"?><Filter><PageDescription>Filter File View</PageDescription><Date>2001-26-07 16:30:30</Date><individual><FilterFile>filter1</FilterFile><Description>Shows All Products.</Description></individual><individual><FilterFile>filter2</FilterFile><Description>Shows Product Code and Template Code.</Description></individual></Filter>For Transforming and formarting this i have used "style.xsl", whichis included in the XML. When i invoke that servlet i get the o/p perfectlyas i want. But what my question is, the view Source of the o/p is same Xmlfile as above. it's not html. So i am confuse that is it a right way to generateweb pages. I am not Sure. What i am thinking is view source of o/p in thebrowser should be pure HTML with scripts.But i am again confused. I am using html table & when user clickson the table header, that table should sort by giving preference to clickedcolumn. By XML/XSL i am getting this. But as i said o/p code prob. Is itpossible to code completely in HTML and when user clicks on the table headerCall the <xsl:sort/> or something similar to that from XSL. Or is there anyanother way to achieve this.For HTML o/p, can it be achived by using <xsl:output method="text/html"/>,but it's giving me error that u can not use this at this point. ex:-<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" indent-result="no"default-space="strip"><xsl:output method="html"/>......code for html transformation & some scripts......</xsl:stylesheet>Pls. tell me the solution.Thanks in advance
 
Back
Top