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

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

Subject: 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
html name value pairs
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

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.