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

RE: trouble getting at node

Subject: RE: trouble getting at node
From: "Haarman, Michael" <mhaarman@xxxxxxxxx>
Date: Mon, 16 Jan 2006 17:45:27 -0600
dan haarman
> From: dan@xxxxxxxxxxxxx

> Thanks for the help. unfortuneately none of the example 
> worked. I think it
> may be b/c the xml has a parent element above Item:

Right, make the top-level template match="/MPL/Item".

> Warning:  xsl:element : invalid name in jriver.php on line 16

This is your processor complaining about spaces in the element names in the
result tree.

> Also, I would actually like to rename the elements in the result tree,
> something like this:

As to renaming your elements, reordering them, etc, this is just what XSLT
is designed to do.

Substitute your desired names for {@Name}.  Write templates matching each
element explicitly to handle them differently.  Check the FAQ and the fine
tutorials.

HTH,


-----------------------------------
Mike Haarman,
XSL Developer,
Internet Broadcasting Systems, Inc.

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.