[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] dynamic xsl file - ignore if seem before
(please ignore if see before, i have posted few hours ago but i keep
getting Not sent messages')
Hi i was wondering can anyone help me on this question? i was wondering whether it is possible to embedded a piece of xsl code into a xhtml file and use such information for transformation later on. e.g. source.xml USES sample.xhtml (contain xsl script) TO TRANSFORM new.xml if so, can someone tell me how it is done and how is the xslt processor (currently i am using xalan) regonise which is the code needed within the xhtml file to transform the file. Secondly i would like to hear some advice from everyone to see whether the problem and solution i have is, well firstly valid/feasible and secondly will it work... Please connect me if i am wrong.... the approach i mention above is what i was considering to use to solve my problem... Firstly an xml file is created which is transfrom into a html file to allow user to read easily. a form is provided within this html page so it allow user to select which piece of information they would like to look into. (this is nothing more than a filtering operation) I was consider to transfer the value the user inputted into a xpath expression and added onto the existing xsl file. then perform a trnsformation through xalan (using the orginial xml file) to recieve a filtered html results. (please tell whether this is the right approach or not) The problem lies is that how am i going to use the value inputted by the user to write my xpath expression. i know one way to do is using server side scripts like PHP or ASP. but i was wondering whether there is any client side solution to this probelm? i was thinking to write the user input into an xpath expression on a separate file but that is not permitted using javascript. if anyone has some sort of idea please help me out on this as i am stuck with this problem for some time now. Many thanks Regards kit
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|