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

RE: Transforming an XML Document into another

  • From: Mike Brown <mbrown@c...>
  • To: 'Newsha Makooi' <Newsha@i...>
  • Date: Mon, 15 Jan 2001 11:21:04 -0700

transforming one xml to another
Newsha Makooi wrote:
> What's the best way and easiest way to transform one
> XML document into another via an XSLT document? 

Newsha,

When posting to the xml-dev list, or any other public list, post in plain
text format. Only send HTML or Rich Text to recipients that you know can
handle it (friends; internal corporate email). Your message was HTML.

XSLT questions should go to the xsl-list, which you can find out more about
at http://www.mulberrytech.com/xsl/xsl-list/

> Is <xsl:output> the key piece for this? 

Assuming that the 'xsl' prefix has been bound to the XSLT namespace URI
'http://www.w3.org/1999/XSL/Transform', as opposed to the old XSL namespace
URI only recognized by MSXML, an xsl:output instruction tells an XSLT
processor what type of output you would like to be derived from the result
tree that is created during processing of the stylesheet (if such
output/serialization is supported).

> Wondering on how to pull the value from one XML's tags
> into another XML's attributes. 

<xsl:template match="elementIn">
  <elementOut attr="{.}"/>
</xsl:template>

is one way. (elementIn, elementOut, attr are arbitrary names for this
example)

The following URLs of XSLT tutorials should be helpful.

http://www.vbxml.com/xsl/tutorials/intro/default.asp
http://www.zvon.org/index.php?nav_id=2
http://www.oreilly.com/catalog/orxmlapp/chapter/index.html
http://www.cranesoftwrights.com/training/#ptux-dl
http://metalab.unc.edu/xml/books/bible/updates/14.html

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources: 
webb.net in Denver, Colorado, USA              http://skew.org/xml/ 

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.