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

Trouble writing .xsl

Subject: Trouble writing .xsl
From: Jason Rizer <jasonriz@xxxxxxxxx>
Date: Sat, 12 Jan 2002 17:54:24 -0800 (PST)
trouble writing

I've just recently begun using xslt and I'm kind of
stuck on something pretty simple. I've worked through
parts of a couple of tutorials but I still can't seem
to handle this problem. I'd like to convert (for
example) the following chunk of xml:

<?xml version="1.0" encoding="UTF-8" ?>
<XMI xmlns:ABC="org.jason">
<XMI content>

to this chunk:

<?xml version="1.0" encoding="UTF-8" ?>
<XMI xmlns:ABC="org.jason">
<XMI content>

In other words I want to replace each elament named
jason.Smith with an identical element (ie not affect
any of it's children or it's attributes) named Smith
but only when It occurs in the Namespace ABC. I want
all other elements in the output file to remain
unchanged. I think I need to use the XPATH namespace(
) function in my match expression but I can't quite
seem to get it to work. Any help with creating this
stylesheet would be greatly appreciated.  Thanks in


ps - What would a style sheet look like which created
an output xml document identical to the source xml

Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.