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

Extracting an attribute value only

Subject: Extracting an attribute value only
From: Sebastian Tennant <sebyte@xxxxxxxxxxxxxxx>
Date: Mon, 16 Jan 2006 13:12:25 +0000
extracting an xml attribute value
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

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.