|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [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/
|
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
|

Cart


![[no subject]](/images/get_stylus.gif)





