Subject: Newbie: How to write a stylesheet that preserves the input tree
From: Francois Belanger <francois@xxxxxxxxxxx>
Date: Wed, 2 Dec 98 10:45:35 -0500
|
Using the current XSL Draft as well as James Clark XT, I'm trying to
preserve the attributes and node names of the input XML file nodes while
modifying order or adding new attributes.
In other words, how can one write an XSL stylesheet that outputs the
exact same XML as the input file? Part of the problem is getting the node
name (xsl:nodeName is not within the current draft) and iterate through
it's attributes list.
I've seen "MS-XSL extensions" in IE5 to do that but I'd like to stick to
w3c current draft standard and more important (since I think MS is mostly
using the current state of the draft), I need parsing to happen
server-side on UNIX with XT.
Francois Belanger
Sitepak, Bringing Internet Business into Focus
http://www.sitepak.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|