[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[no subject]

[no subject]
Step4: But when I process combined XML, each XML is
getting processed as two files. I
am not seeing one x


<?xml version="1.0" encoding="UTF-8"?> ===> file2.xml
<Annoucements>
    <announcement>
        <anc_date>2008-03-11</anc_date>
        <anc_title>Annoucement Title1</anc_title>
    </announcement>
    <announcement>
        <anc_date>2008-07-14</anc_date>
        <anc_title>Annoucement Title2</anc_title>
    </announcement> 
</Annoucements>
<?xml version="1.0" encoding="UTF-8"?> ===> file3.xml
<Annoucements>
    <announcement>
        <anc_date>2008-04-11</anc_date>
        <anc_title>Annoucement Title3</anc_title>
    </announcement>
    <announcement>
        <anc_date>2008-08-14</anc_date>
        <anc_title>Annoucement Title4</anc_title>
    </announcement> 
</Annoucements>

How do I see them as:

<Annoucements>
    <announcement>
        <anc_date>2008-03-11</anc_date>
        <anc_title>Annoucement Title1</anc_title>
    </announcement>
    <announcement>
        <anc_date>2008-07-14</anc_date>
        <anc_title>Annoucement Title2</anc_title>
    </announcement> 
    
    
    <announcement>	====> NEWLY ADDED FROM File3.xml
        <anc_date>2008-04-11</anc_date>
        <anc_title>Annoucement Title3</anc_title>
    </announcement>
    <announcement>
        <anc_date>2008-08-14</anc_date>
        <anc_title>Annoucement Title4</anc_title>
    </announcement>     
    
</Annoucements>

If I can see like the above xml, then I can do sorting
and other transformations on the whole
(File1+File2.xmls) together.

-Sudhehsna
--- Martin Honnen <Martin.Honnen@xxxxxx> wrote:

> sudheshna iyer wrote:
> 
> > How can achieve this?
> 
> One way would be to process in two steps, first
> build a result tree 
> fragment of elements where you transform the
> different elements into the 
> same structure, then use exsl:node-set or similar to
> get a node-set that 
> you can sort and output.
> Which XSLT processor do you use, does it support
> exsl:node-set or a 
> similar extension function to convert a result tree
> fragment into a 
> node-set?
> 
> -- 
> 
> 	Martin Honnen
> 	http://JavaScript.FAQTs.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.