473,394 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Accessing multiple xml files and transforming them in to a master listing

me
Hello,

I have serveral xml files that will have the same formatting, like this:
<bio>

<title>xxxxx</title>

<info>yadayadayada</info>

<source>Bill Gates</source>

<site>www.msn.com</site>

<timedate>5/1/2005</timedate>

</bio>

I have a master xml file listing the xml files:

<bios>

<bio href="Bio1.xml"/>

<bio href="Bio2.xml"/>

</bios>

I have a xsl to parse the master file in to a mastering page:

<xsl:template match="bios">

<xsl:for-each select="bio">

<xsl:apply-template select="document(@href), .)/bio"/>

</xsl:for-each>

</xsl:template>

I dont know where to put the code above in the code below

<table>

<tr><td colspan="2">

<xsl:value-of select="title" /></td></tr>

<tr><td colspan="2">

<xsl:value-of select="info" /></td></tr>

<tr>

<td width="200"><a>

<xsl:attribute name="href">http://<xsl:value-of select="site" /></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute><xsl:value-of select="source" />

</a></td><td bordercolor="red" width="100">

<xsl:apply-templates select="timedate">

<xsl:sort order="descending" />

</xsl:apply-templates></td>

TIA

Aaron

Nov 12 '05 #1
1 1135
me
I figured it out Thanks
"me" <wu*****************@hotmail.com> wrote in message news:e7**************@TK2MSFTNGP14.phx.gbl...
Hello,

I have serveral xml files that will have the same formatting, like this:
<bio>

<title>xxxxx</title>

<info>yadayadayada</info>

<source>Bill Gates</source>

<site>www.msn.com</site>

<timedate>5/1/2005</timedate>

</bio>

I have a master xml file listing the xml files:

<bios>

<bio href="Bio1.xml"/>

<bio href="Bio2.xml"/>

</bios>

I have a xsl to parse the master file in to a mastering page:

<xsl:template match="bios">

<xsl:for-each select="bio">

<xsl:apply-template select="document(@href), .)/bio"/>

</xsl:for-each>

</xsl:template>

I dont know where to put the code above in the code below

<table>

<tr><td colspan="2">

<xsl:value-of select="title" /></td></tr>

<tr><td colspan="2">

<xsl:value-of select="info" /></td></tr>

<tr>

<td width="200"><a>

<xsl:attribute name="href">http://<xsl:value-of select="site" /></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute><xsl:value-of select="source" />

</a></td><td bordercolor="red" width="100">

<xsl:apply-templates select="timedate">

<xsl:sort order="descending" />

</xsl:apply-templates></td>

TIA

Aaron

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve George | last post by:
Hi, I have a scenario where I have a master schema that defines a number of complex and simple types. I then have a number of other schemas (with different namespaces) where I would like to reuse...
2
by: Alfonso Morra | last post by:
I have a (largish) "master" header file (>130 loc). I also have a number of seperate "satelite" header files which declare various objects used by the object declared in the "master" header file....
9
by: sakitah | last post by:
Here is what I have: struct SubList { int BookId; int WFreq; }; struct Listing {
4
by: reezaali | last post by:
Hi All, I wanted to set up my websites like this c:\websites\intranettemplate c:\websites\app1 c:\websites\app2 Basically I wanted to have the master pages defined in the template folder...
4
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses more than one master page. Currently, there are two pages, Freedom1.master and Freedom2.master. I have no problems with Freedom1.master. However,...
8
by: Paw | last post by:
Greetings. I use asp. what I need is is when a visitor comes to the site, I need it to check the host name. if "www.hometowndigest.com" is the host, then check a folder named "something" and if...
4
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys Just a general query regarding using the AccessDataSource within a website which uses a MasterPage. The layout of my content page is as follows... <asp:Content ID="Content1"...
9
by: J055 | last post by:
Hi I have a standard asp page which uses a MasterPage. The MasterPage contains a User control. How can I access a public method in the User control from my WebForm page? I can't move the method...
6
by: Homer J. Simpson | last post by:
Hi all, I have enough experience with HTML/classic ASP to get by, and I'm trying to learn ASP.NET. Traditionally, I've taken the habit of breaking out extra-long CSS files into multiple,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.