Join two or more xml files

I want to join two or more xml files and create a nw xml or html file w/o using java!!
Is it possible with only xsl. if yes how?
Raju

Sure it's possible with XSLT.
Just use the document() function to refer to one or more additional source documents. I recommend using an <xsl:variable> to capture the secondary document in a variable so you can easily refer to it any number of times in the stylesheet.
So, at the top-level of your stylesheet, just do:
<xsl:variable name="otherDoc" select="document('otherDoc.xml')"/>
Then anywhere you want to select nodes from the secondary document (will the full power of XPath), just start your XPath expression with the $otherDoc variable like this:
select="$otherDoc/something/somethingelse[somepredicate-if-needed]"
In this way you can combine the values of the current node in the main source document to lookup corresponding nodes in the secondary document and do joins this way.

Similar Messages

  • How to send two or more XML request messages to call ALSB from ALBPM

    Hi All,
    I have a scenario where two or more XML messages needs to be sent to the ALSB component from the ALBPM part.
    How can this be achieved using PBL coding.Please help me on this.
    Thanks,
    Prakash.

    Hi,
    Based on my test, I agree with Mr. KR, we could not open two or more xml files with the same name located in different folders with Excel 2013 at the same time, because XML is not the default format of Excel.
    Would you like to tell us the reason about this behavior, we might try the other methods to get your goal.
    If you have any update, please feel free let us know.
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • How to join two or more surveys to one big survey?

    Hello Experts,
    how do I join two or more littel surveys to one big survey with one tile and varios sections and subsections?
    Thanks for help.
    Cristina

    As I did not get any answer, I suppose it is not possible, unless you join the coding.

  • Merging two or more audio files, by a contextual menu item within the finder

    Hello, everyone,
    I want to merge or concatenate two or more simple audio files (wavs at the same sample rate and bit depth) into a new wav file - which don't need any conversion. I want to do this using a contextual menu service within the finder. Is there any possibility to do this? I can't find any software in the market that will allow me to do this.
    so that,
    'start.end_1.wav' + 'start.end_2.wav' + 'start.end_3.wav' = 'start.end_1&start.end_2&start.end_3.wav'
    Can anyone help? would sox help me with this, and if so, how to add it onto a finder contextual menu?

    Both of those directories are empty and I have deleted them and re-created them. I have been able to add and remove plugins for other applications so this is very strange.
    Using "Easy Find" I did locate a preference file, which I have deleted but that has not resolved it. I have tried safe mode and single user mode but no luck. I couldn't find any automator actions either.
    When I click on the menu item it says "ClamXav is not installed. Please install ClamXav and try again" so it knows it needs to use this program somehow.
    It's very odd and must be a result of a crash I had, though I would love to get to the bottom of it, it isn't serious and will hopefully go when I upgrade to Snow Leopard
    Thanks for your help though as it has taught me a few things!

  • How do i compare the similarities between two or more text files?

    The subject says it all. I am familiar with a number of the diff tools that are available, but I have yet to find a tool or app that will find the similarities between two text files. Any suggestions?

    From http://hints.macworld.com/article.php?story=20030217061153119
    "FileMerge highlights the sections that differ in each file..."
    I need to find similarities. I was thinking something along the lines of the similarity-tester package in Ubuntu:
    http://unix.stackexchange.com/questions/1079/output-the-common-lines-similaritie s-of-two-text-files-the-opposite-of-diff/94532#94532
    Preferably a GUI tool, but command line is OK if I can figure out the proper syntax.

  • Create two or more flash files from one (Excel) data source

    Hi experts,
    I have the following requirement about Xcelsius.
    Our data source is a relational database. Via the ODBC driver we manage to create several queries and execute them into Microsoft Excel. Those excel sheets are the basic for the Xcelsius reports.
    Now we want to build some highly visualized reports on that, but the crucial fact is. We don't want to have all the reports in one FlashFile, but we need several flash file depending on the area of the queries.
    Hence our requirement would be one of the following points:
    - create multiple flash files from one .xlf
    - create multiple .xlf from data source
    Another requirement is the automatic execution of the process. We don't want to have a person in between, who has to call all the .xlf files to create the Flash reports step by step. What we need is an automatic process.
    Can this requirement be fulfilled in a way?
    Maybe by using the Xcelsius SDK?
    Thanks for any helps and comments!
    Sebastian

    Sebastian,
    Firstly talking about the important requirement i.e. automating the process:
    In your case you can achieve this by using the XML maps. This will pick the data automatically when ever report is refreshed.
    Secondly, both the approaches are correct, however i would go with the first one.
    1. Create multiple flash files from one .xlf
         You just need to create one dashboard and have a filter on areas (Invisible) and then export to flash (for every area).    
    2. Create multiple .xlf from data source
         This approach is also fine, however you need to create multiple dashboards and do the same thing i.e filter data based on area.
    P.S. Did you get a chance to explore options to integrate Xcelsius with your Relational Database, this will be much effective.
    -Anil

  • Join two or more lines at intersect

    Hi all,
    New to the forums and really only asking here as I haven't been able to find an answer anywhere on the web.
    I am trying to neatly join a 1pt horizontal line and 1pt 45° degree angle line together neatly at the point where they intersect using a single step, see screenshot:
    From this:
    To this:
    Currently the only way of doing this is by adjusting the length of the lines by eye and trying to get them to overlap so that none of the end cap corners protrude which is time consuming...
    I found a script which appears to extrude lines on their current "trajectory" until they collide and then joins them together, see below for example:
    From this:
    To this:
    This would be a perfectly workable option however the script (found at http://illustrator.hilfdirselbst.ch/dokuwiki/skripte/javascript/collision) doesn;t appear to work with CS6 ...
    Your help on this would be greatly appreciated as I have a 68 page brochure to ammend which uses this line style extensively throughout.
    Cheers,
    Patrick

    Patrick,
    Presuming you wish to do it with the help of Illy, Smart Guides being your friends, you can do it in a few simple steps: ShiftClickDrag each of the end Anchor Points (Smart Guides asy intsect/anchor when you are there) and Join.

  • How to join two or more separate tracks into one track

    I have a CD of music that I want to import. It is a study tool so all the tracks are parcelled up for easier examination- i.e. Beethoven's Symphony no. 5 in C Minor is not one long track, it is cut into 28 separate tracks ranging in time from 26 seconds 2:31 (minutes).
    What I want to do is make all 28 tracks into one track so there is continuous play. I've tried the gapless album option. It didn't do the trick. Now I can just select continuous play button, but for things like 'party shuffle' it doesn't quite work - you end up with a 30 second blurb of a song.
    Any suggestions?

    Insert the CD.
    Select the songs you want as one track then menu Advanced -> Join CD tracks, then import the CD.

  • Can I print two ore more PDF files together (parallel)?

    Hello,
    I am receiving listings with a source code in PDF files. These source codes have errors and I must find and correct it. I need to print several source codes (PDF files) in one printer page /parallel/ for facilitation. Can somebody help me to do that?
    Regards,
    Hristo Markov
    Software development - http://www.markovandmarkov.com | http://www.cargofreightexchange.com

    Reader doesn't have any combining features.

  • Join two or more imovies together?

    My son has made several short imovies which he wishes to combine into one longer one before burning it onto a disk. Is this possible?

    the easiest way: export to camera, import all into a new iM project...
    or, choose Export/Quicktime/FullQuality.. import clips into new project...
    both methods generate no quality loss, tape/QTFQ use the same codec as iM uses internally ..

  • How to install two or more exe files in a single set up ?

    hi
    I want to make a setup (deployment project ) using visual studio 2010. my requirement is to install a third party software before installing my windows form setup application. how can I manage the setup creation process ?

    Hi jagabandhu Patro,
    According to your description, you'd like to add your own custom prerequisite to winforms setup application.
    I suggest you using Bootstrapper Package to manage the prerequisites.
    You could get the steps about how to use Bootstrapper in the following articles
    https://msdn.microsoft.com/en-us/library/ee726596.aspx.
    https://msdn.microsoft.com/en-us/library/ms165429%28printer%29.aspx?f=255&MSPPError=-2147217396
    http://www.codeproject.com/Articles/15863/Add-your-own-custom-prerequisite-to-quot-ClickOnce
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to show two or more PDF in one PDF-Reader / Concatenate PDF-Files

    Hi,
    I want to show two or more PDF files in one PDF reader window or to concatenate two or mor PDF files to one file.
    We use WD4A and ADS.
    Have someone an idea to solve this without an external program?
    Thx in advance
    Jürgen

    We have done this successfully a few times using WDA - it wasn't easy - it took us 2 full weeks to figure it out, so i need to get full points for this one!
    It's going to much easier to do this if you start a brand new WDA. If not, you'll have to re-do all your Context Node navigations within your methods.
    The first thing you need to do is to define your Context properly:
    You need a top level Node defined as 1:1 cardinality (as with all PDF development)
    Next, you need another Container Node 1:n cardinality (this holds the collection of content nodes)
    Finally, you have your PDF Content Node 1:n cardinality - This holds each instance of your PDF form
    In our scenario, we are passed in a list of Project Numbers. We need to generate a PDF sheet for each project in the same PDF session.
    pseudo code - i'm leaving out some of the unnessary details
    Loop through the project number table.
    ADD 1 TO v_cnt.
    * navigate from <TOP> to <PDF_CONTAINER> via lead selection
        lo_nd_pdf_container = lo_nd_top->get_child_node( name = wd_this->wdctx_pdf_container ).
    * This is the Important Part - we check to see if there is an element where index = v_cnt
    * If not, we create one where we can store the new set of data
    * get element via lead selection
        lo_el_pdf_container = lo_nd_pdf_container->get_element( index = v_cnt ).
        IF lo_el_pdf_container IS INITIAL.
          lo_el_pdf_container  = lo_nd_pdf_container->create_element( ).
          lo_nd_pdf_container->bind_element( new_item = lo_el_pdf_container
                                               set_initial_elements = ' '   ).
        ENDIF.
        lo_nd_ideasheet_data =  lo_el_pdf_container->get_child_node( 'IDEASHEET_DATA' ).
        lo_el_ideasheet_data = lo_nd_ideasheet_data->get_element( index = 1 ).
    * fill all the data then bind the structure
    Select * from XXX into lt_XXX
      where project_number = lt_project-project_number.
    * Move Data to appropriate fields/tables
    * Bind the info back to the element
        lo_el_ideasheet_data->set_static_attributes( static_attributes =
                                                  ls_ideasheet_data ).
    Endloop.

  • Insert numbers starting with one in each xml files sequentially

    The following is a sample of two of my xml files
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    </front>
    </article>
    This is my source code
    public class ReadTexFile
         public void Go2Directory(String Directory)
                    File scan = new File(Directory);
              String DirList[] = scan.list();
              try
                   for(int i = 0; i < DirList.length; i++)
                        File ChkDir = new File((new StringBuilder()).append(scan.getPath()).append("\\").append(DirList).toString());
                        if(ChkDir.isFile())
                             dum1 = ChkDir.toString().toUpperCase();
                             if(dum1.lastIndexOf(".XML") > 0)
    String ExecFile = ChkDir.toString();
                                  File TexfileName = new File(ExecFile);
                                  ReadFileContent(TexfileName);
                                  fileCount++;
                             if(!ChkDir.exists())
                                  System.out.println((new StringBuilder()).append("NO FILES FOUND IN THE DIRECTORY").append(scan).toString());
              catch(Exception e)
                   System.out.println((new StringBuilder()).append("The Error Is in ").append(e).toString());
         public void ReadFileContent(File TexFile)
    try
                   BufferedReader br = new BufferedReader(new FileReader(TexFile));
                   String fetchline = "";
                   for(String line = ""; (line = br.readLine()) != null;)
                        fetchline = (new StringBuilder()).append(fetchline).append(line).append("00000000").toString();
                   br.close();
    cntr=1;
                   fetchline = RemoveIfAlreadyExist(fetchline);
                   fetchline = fetchline.replace("00000000", "\n");
                   File tmp = new File(TexFile.getParent(), "XmlFileTmp.xml");
                   BufferedWriter bw = new BufferedWriter(new FileWriter(tmp));
                   bw.write(fetchline);
                   bw.flush();
                   bw.close();
                   File org = new File(TexFile.getAbsolutePath());
                   System.gc();
                   tmp.renameTo(org);
              catch(IOException ioe)
                   System.out.println((new StringBuilder()).append("The IO Exception occured because ").append(ioe.getMessage()).toString());
              catch(NullPointerException npe)
                   System.out.println((new StringBuilder()).append("The Null Pointer Exception occured because ").append(npe.getMessage()).toString());
         public String RemoveIfAlreadyExist(String line)
    String res = "";
    int cc=1;
              Pattern Regex = Pattern.compile("<product>00000000<citation citation-type=\".*?\" id=\"\">");
              for(Matcher RegexMatcher = Regex.matcher(line); RegexMatcher.find();)
                   String chkEntity = RegexMatcher.group();
                   String subchkEntity1=chkEntity.substring(0,chkEntity.lastIndexOf("\">"));
                   String s1 = Integer.toString(cc);
                   if(s1.length()==1)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref00"+cc+"");
                   if(s1.length()==2)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref0"+cc+"");
                   if(s1.length()==3)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref"+cc+"");
    cc++;
              return res;
    My output from my code is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    </front>
    </article>
    But I need my output as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref001">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref001">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref003">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    </front>
    </article>Could anyone please tell me what modifications to do in my code.

    Hi sony,
    Since you are trying to replace the pattern of subchkEntity1,
    it replaces all the lines which contain ("<citation citation-type="book" id=")
    including(...id="refxxx...)
    & not ("<citation citation-type="book" id="") alone.
    So ,to eliminate this, we have to match the string with chkEntity &
    replace only the first occurance.
    I've modified the method RemoveIfAlreadyExist.
    It works fine now.
    public String RemoveIfAlreadyExist(String line)
             int cc=1;
              Pattern Regex = Pattern.compile("<product>00000000<citation citation-type=\".*?\" id=\"\">");
              for(Matcher RegexMatcher = Regex.matcher(line); RegexMatcher.find();)
                   String chkEntity = RegexMatcher.group();
                   int lastIndex = chkEntity.lastIndexOf("\">");
                   String subchkEntity1=chkEntity.substring(0,lastIndex);
                   String s1 = Integer.toString(cc);
                   if(s1.length()==1)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                   if(s1.length()==2)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                   if(s1.length()==3)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                            cc++;
              return line;
         }

  • Creating 1 pdf file from 2 or more pdf files

    Is it possible to combine two or more pdf files into one pdf file ?

    Yes, you can do this with our CreatePDF service or with our desktop application, Adobe Acrobat.

  • Combining XML files together

    my problem is as follows:
    I have three tables (order's line item,order and customer information)I want to extract each of their information in XML file and join them in one XML file. I have the following code for generating each XML file
    but I don't know how can I join them to make final XML file:
    try
    Connection cn = ConnectionHelper.getConnection();
    OracleXMLQuery q1 = new OracleXMLQuery(cn,"SELECT * from orderlineitem
    where order=1");
    Connection cn = ConnectionHelper.getConnection();
    OracleXMLQuery q2 = new OracleXMLQuery(cn,"SELECT * from order where
    order=1");
    Connection cn = ConnectionHelper.getConnection();
    OracleXMLQuery q3 = new OracleXMLQuery(cn,"SELECT * from customer where
    customerno=10");
    // How can I join the above XML documents in one document
    catch(Exception e)
    e.printStackTrace();
    Could anyone please send me code that how can I join those results in one XML
    document?
    With best regards,
    Amirali

    A low budget non xml way would be to create a MultipleInputStream class that takes a bunch of streams and treats them as one big stream. You pass an instance of this to your sax or dom parser.
    InputStreams[] ises = getYourXMLFilesFromSomewhere();
    MultipleInputStream mis = new MultipleInputStream();
    mis.addStream(new StringStream("<root>");
    mis.addStreames(ises);
    mis.addStream(new StringStream("</root>");
    XMLReader r = ......
    r.parse(mis);

Maybe you are looking for

  • Upgrade to Acrobat 9

    I am running Windows XP and have purchased CS5 which includes Acrobat 9.  I have installed all of CS5 but before I can install Acrobat 9 I need to remove Acrobat 8.1.5 (which was installed within CS3). No matter what I do, I have been unable to remov

  • Problem with auditioning samples in Ultrabeat?

    Im having some trouble with auditioning drum hits in Ultrabeat. When I go to listen a sample, the sample plays but all i can hear is a high pitched squeak instead of the drum hit I want to audition. Can anyone explain this?

  • [SOLVED] netctl DHCP IP (client) and Static IP on a single interface

    Description="enp1s0" Interface=enp1s0 Connection=ethernet IP=dhcp DNS=('127.0.0.1') I have a server I have configured as a NATed router.  enp1s0 is assigned a public ip via my modem, but I also want to add a 192.168.100.0/24 address so I can configur

  • An easy question about GET_ITEM_PROPERTY

    Hello friends at www.oracle.com , how can I obtain the item's initial value by using GET_ITEM_PROPERTY built-in? I couldn't find it even at Oracle documentation. Best regards, Franklin Gongalves Jr.

  • Hunt the Wumpus

    Hey, I'm pretty new to Java (since September actually) and have been give this assignment in school to create the game, Hunt the Wumpus. Honestly I have no idea of where to start with this. Can anyone lead me in the right direction. Thanks. Below are