[xsl] How do i get a name-value pair in HTML output

Subject: [xsl] How do i get a name-value pair in HTML output
From: "Opstvedt, Hermod" <hermod.opstvedt@xxxxxx>
Date: Tue, 23 Jan 2001 09:35:30 +0100
Hi

I have an abitrary XML doc looking something like this :

<?xml version="1.0"?>
<myroot value1="first"
         value2="second"
         value3="third">
	<mynode value1="nodefirst"
	              value2="nodesecond">
		<mynodesnode value1="nodesnodefirst"/>
	</mynode>
</myroot>

now i want to able to run this through XSLT producing an html like :

<html>
<head>some header</head>
<body>
myroot
	value1=first
	value2=second
	value3=third
	mynode
		value1=nodefirst
		value2=nodesecond
		mynodesnode
			value1=nodesnodefirst
</body>
</html>

I want to be able to do this without refering to the names of the nodes or
attributes, because I want it to be generic.
I can easily get out the values in the output, but how do I get the
name/value pairing I have shown.
	

Hermod Opstvedt
Cheif Architect IT-01
Den norske Bank
DnB IT EK - INTER/INTRANETT
Postboks 7100
5020 Bergen, Norway
Phone : (+47) 55 21 90 64/Mob: (+47) 957 40041 (OBS Nytt)
EMail: hermod.opstvedt@xxxxxx
WWW: http://www.dnb.no



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread