Hello,
I have serveral xml files that will have the same formatting, like this:
<bio>
<title>xxxxx</title>
<info>yadayaday ada</info>
<source>Bill Gates</source>
<site>www.msn.c om</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="documen t(@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:attribut e name="href">htt p://<xsl:value-of select="site" /></xsl:attribute>< xsl:attribute name="target">_ blank</xsl:attribute>< xsl:value-of select="source" />
</a></td><td bordercolor="re d" width="100">
<xsl:apply-templates select="timedat e">
<xsl:sort order="descendi ng" />
</xsl:apply-templates></td>
TIA
Aaron 1 1151
I figured it out Thanks
"me" <wu************ *****@hotmail.c om> wrote in message news:e7******** ******@TK2MSFTN GP14.phx.gbl...
Hello,
I have serveral xml files that will have the same formatting, like this:
<bio>
<title>xxxxx</title>
<info>yadayaday ada</info>
<source>Bill Gates</source>
<site>www.msn.c om</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="documen t(@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:attribut e name="href">htt p://<xsl:value-of select="site" /></xsl:attribute>< xsl:attribute name="target">_ blank</xsl:attribute>< xsl:value-of select="source" />
</a></td><td bordercolor="re d" width="100">
<xsl:apply-templates select="timedat e">
<xsl:sort order="descendi ng" />
</xsl:apply-templates></td>
TIA
Aaron This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 some
of these master complex and simple types. This I believe will assist
me in transforming between the master schema and the other smaller
schemas that contain a subset of the elements in the master schema.
I understand that I can import an...
|
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. In a clean design,
these "satelite" objects (i.e. declared in the satellite header files),
should really be nested classes within the master file.
However, if I was to put all the declarations in one massive file, it
will easily exceed 1000...
|
by: sakitah |
last post by:
Here is what I have:
struct SubList
{
int BookId;
int WFreq;
};
struct Listing
{
|
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 and all other apps would "reference" this folder to get the
|
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, I am having problems with
Freedom2.master.
The first problem is I sometimes get the following error when I build the
site.
The type 'Freedom2' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
| |
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 the folder does not exsist, create
folder "www" and then copy folder "temp" and its contents.
If the folder "www" is there, look in it, check to see if the files in
folder "temp" are in there, if not, copy the files that are not from
folder...
|
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" ContentPlaceHolderID="cphContent" Runat="Server">
<h1><asp:Label runat="server" Text='<%# Eval("StoryTitle") %>"
ID="lblHeading" />
|
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 to another location because it
populates a Textbox in the user control page.
Thanks
Andrew
|
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, smaller ones, and referring to them in my HTML/ASP files on
an as-needed basis. Essentially, I've organized things as:
/default.asp
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |