Subject:XML Stylesheet help Author:Tinga Bakumba Date:25 May 2006 08:44 PM
Hi,
beginner here. Need some help!
Im trying to create a stylesheet to show a 'mailbox' xml file (a xml file with a series of email messages) with a table accomodating each email address. below is what i have but its not working:
the xml file:
<?xml version='1.0'?>
<?xml-stylesheet type="text/xsl" href="email.xsl" ?>
<mailbox>
<email>
<from><name>Les Carr</name> <address>lac@ecs.soton.ac.uk</address></from>
<to><name>Hugh Davis</name> <address>hcd@multicosm.com</address></to>
<subject>Teaching Duties</subject>
<content>
Using Java to teach Programming Principles seems to have worked very
well. The standard of software engineering seems to have increased.
</content>
</email>
<email>
<from><name>Wendy Hall</name> <address>wh@ecs.soton.ac.uk</address></from>
<to><name>Les Carr</name> <address>lac@ecs.soton.ac.uk</address></to>
<subject>XML Course</subject>
<content>
Please make sure that you use the new IAM logo on all our
course material.
</content>
</email>
<email>
<from><name>Les Carr</name> <address>lac@ecs.soton.ac.uk</address></from>
<to><name>Wendy Hall</name> <address>wh@ecs.soton.ac.uk</address></to>
<subject>Re: XML Course</subject>
<content>
Have you looked at the content?
</content>
</email>
Subject:XML Stylesheet help Author:Tinga Bakumba Date:25 May 2006 09:53 PM
hi,
I got something, but not sure if its the right layout.
From: Les Carr(lac@ecs.soton.ac.uk)
To: Hugh Davis(hcd@multicosm.com)
Subject: Teaching Duties
Using Java to teach Programming Principles seems to have worked very well. The standard of software engineering seems to have increased.
From: Wendy Hall(wh@ecs.soton.ac.uk)
To: Les Carr(lac@ecs.soton.ac.uk)
Subject: XML Course
Please make sure that you use the new IAM logo on all our course material.
From: Les Carr(lac@ecs.soton.ac.uk)
To: Wendy Hall(wh@ecs.soton.ac.uk)
Subject: Re: XML Course
Have you looked at the content?
The top email element has the values for its children elements (from, to and subject) far away and it gets closer as u go down to the last 'email' element. As you can see above
Subject:XML Stylesheet help Author:Tinga Bakumba Date:25 May 2006 09:55 PM
>hi,
>
>I got something, but not sure
>if its the right layout.
>
>From: Les
>Carr(lac@ecs.soton.ac.uk)
>To: Hugh
>Davis(hcd@multicosm.com)
>Subject: Teaching
>Duties
>Using Java to teach
>Programming Principles seems
>to have worked very well. The
>standard of software
>engineering seems to have
>increased.
>From: Wendy
>Hall(wh@ecs.soton.ac.uk)
>To: Les
>Carr(lac@ecs.soton.ac.uk)
>Subject: XML Course
>Please make sure that you use
>the new IAM logo on all our
>course material.
>From: Les
>Carr(lac@ecs.soton.ac.uk)
>To: Wendy
>Hall(wh@ecs.soton.ac.uk)
>Subject: Re: XML Course
>Have you looked at the
>content?
>
>The top email element has the
>values for its children
>elements (from, to and
>subject) far away and it gets
>closer as u go down to the
>last 'email' element. As you
>can see above
>
>Do you know why it does that?
>
>Thanks
The formatting didnt seem to show on the post.
Basically the top 'From, To, and Subject have their entries farthest away and it gets close as you go down to the last 'email' element. Hope it makes sense.