Subject: Extracting an attribute value only
From: Sebastian Tennant <sebyte@xxxxxxxxxxxxxxx>
Date: Mon, 16 Jan 2006 13:12:25 +0000
|
Hi all,
I have an XML doc that begins:
<?xml version="1.0">
<?xml-stylesheet href="ss.xsl" type="text/xsl" ?>
<content page="welcome">
[...]
</content>
I'd like to create a new XML doc using XSLT that takes the value of
the page attribute and assigns it to a new attribute in the document
element of the result tree, like this:
<?xml-version="1.0">
<page name="welcome">
[...]
</page>
I'm going round in circles!
TIA
sdt
|