OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Merging 2 xml files into one file

[ Lists Home | Date Index | Thread Index ]

>I have 2 different XML files, A.xml and B.xml (different means that tags 
>defined in those files do not correspond at all).  I just wonder if it's 
>possible to merge those two files into one so that when displayed in 
>browser, it shows content of A.xml AND B.xml. (Perhaps using ASP???)

I don't know if any Application Service Provider would provide such a
service (it's a joke! A joke!) but you could write an XSLT stylesheet that
has A.xml passed as its input, uses the XSLT document() function to read
B.xml, and has template rules that handle all the different elements in both
to convert them to HTML so that they show up in a browser. I just tried
something like this in IE 6.0, and to my pleasant surprise it worked.

Bob DuCharme            www.snee.com/bob         <bob@  
snee.com>  see http://www.snee.com/bob/xsltquickly for
info on book "XSLT Quickly" from Manning Publications.




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS