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

RE: XML / XSLT Transformations with multiple files &

Subject: RE: XML / XSLT Transformations with multiple files & transformations.
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Tue, 24 May 2005 15:19:30 +0000
xslt multiple files
Zak,

You'll want to use the xpath document() function--it allows you to refer to additional, external XML file(s). You should be able to find several examples of usage on the Net.

Regards,

--A

From: "dti mail" <zaknixon@xxxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: XML / XSLT Transformations with multiple files & transformations.
Date: Tue, 24 May 2005 09:46:08 -0500




Hello all. I need some help with XSLT and understanding how I can
solve my problem. I have a set of 4 files, which are sampled below:

-- Job.xml--
<job id = "12"/>
<job id = "22"/>
<job id = "32"/>

-- Task.xml --
<task id ="1">
    <job ref = "12"/>
</task>
<task id ="2">
    <job ref = "22"/>
</task>
<task id ="3">
    <job ref = "32"/>
</task>

-- MyTasks.xml --
<mytask id = "1">
    <task-ref id="2"/>
    <task-ref id="3"/>
</mytask>
<mytask id = "2">
    <task-ref id="2"/>
    <task-ref id="3"/>
</mytask>

-- Configuration.xml --
<conf>
    <mytask-ref id = "1"/>
    <mytask-ref id = "2"/>
</conf>


The ref tags indicate the ids of the elements to use in the appropriate files. Here is what I wish my output to look like:

<conf>
    <mytask id = "1">

        <task id ="2">
            <job id = "22"/>
        </task>
        <task id ="3">
            <job id= "32"/>
        </task>

</mytask>

<mytask id = "2">

        <task id ="2">
            <job id = "22"/>
        </task>
        <task id ="3">
            <job id= "32"/>
        </task>

</mytask>

</conf>

============ END OUT =================
Can anyone give me any pointers on how to acheive this ?

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


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.