Subject: Re: Merging XML documents containing formatting and data respectively.. From: Tom Mullen <Tom.Mullen@xxxxxxxxxxx> Date: Tue, 21 Nov 2000 08:26:55 +0000 |
Das, Is the format of the second XML set in stone? For example if the second XML was of the format: <?xml version="1.0"?> <INPUTDATA> <INPUTITEM name="FIRSTNAME" > xyz </INPUTITEM> <INPUTITEM name="LASTNAME" > abc </INPUTITEM> </INPUTDATA> Then you could set up a key on INPUTITEM/@name, load the second XML using the document() function and search for values using the key function. If you want more info on key() and document() I would suggest looking at http://www.jenintennison.com Tom Mullen |--------+--------------------------> | | Manoranjan Das | | | <manoranjan_das@| | | yahoo.com> | | | | | | 20/11/2000 13:34| | | Please respond | | | to xsl-list | | | | |--------+--------------------------> >----------------------------------------------------------------------------| | | | To: XSL-List@xxxxxxxxxxxxxxxx | | cc: (bcc: Tom Mullen/LON/GB/Reuters) | | Subject: Merging XML documents containing formatting and data | | respectively.. | | Header: Internal Use Only | >----------------------------------------------------------------------------| Hi All .. I have the following problem. I have two XML files out of which one contains Formatting character and one contains data as follows. First XML : (Containing HTML formatting) <?xml version="1.0"?> <HTML> <BODY> <form name = "applicationresponse"> <table> <tr> <td> <input name="firstname" size="6" type="text" value=""/> </td> </tr> <tr> <td> <input name="lastname" size="6" type="text" value=""/> </td> </tr> </table> </form> </BODY> </HTML> Second XML : (Containing Data) <?xml version="1.0"?> <INPUTDATA> <FIRSTNAME> xyz </FIRSTNAME> <LASTNAME> abc </LASTNAME> </INPUTDATA> With this 2 XMLs , I want to generate one HTML file with the following output. Output File : <HTML> <BODY> <form name = "applicationresponse"> <table> <tr> <td> <input name="firstname" size="6" type="text" value="xyz"/> </td> </tr> <tr> <td> <input name="lastname" size="6" type="text" value="abc"/> </td> </tr> </table> </form> </BODY> </HTML> How to proceed for this ?? Thanks in advance .. Das __________________________________________________ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ----------------------------------------------------------------- Visit our Internet site at http://www.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: XSLTMark 1.2.1, first comprehen, Nestel, Frank | Thread | RE: Copying a portion of a subtree , Kay Michael |
AW: XSLTMark 1.2.1, first comprehen, Nestel, Frank | Date | Re: xpath not.., Michael Hoffmann |
Month |