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

RE: XSLT for toplevel element in xml

Subject: RE: XSLT for toplevel element in xml
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 17 May 2004 19:48:01 +0100
top level element for xml
template match="abc:configuration"

is correct. Perhaps you got the namespace URI wrong. Show us a complete
example of the problem.

Michael Kay 

> -----Original Message-----
> From: Nishi Bhonsle [mailto:nishi.bhonsle@xxxxxxxxxx] 
> Sent: 17 May 2004 17:59
> To: xsl list
> Subject:  XSLT for toplevel element in xml
> 
> 
> Hi:
> 
> I have a xml say One.xml that has the toplevel element as the 
> following --
> 
> <abc:configuration 
> xmlns:abc="http://oracle.com/xmlns/abc/configuration"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" locale="en"
> cache="false" rmi="true">
> ...
> ..
> ....
> ....
> </abc:configuration>
> 
> 
> I need to transform One.xml to Two.xml in such a way that 
> Two.xml contains some additional attributes in the 
> abc:configuration tag
> ie
> 
> <abc:configuration 
> xmlns:abc="http://oracle.com/xmlns/abc/configuration"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" locale="en"
> cache="false" rmi="true" new_tag="true" new_tag2="false">
> 
> I tried to use several ways as rules for the <xsl:template 
> match=.....--
> 1) template match="abc:configuration"
> 2) template match="local-name(abc:configuration)
> 3) template match="@*[(starts-with(name(),'abc:'))]"
> 
> But it does not work. Only after replacing the 
> abc:configuration by configuration in One.xml and writing a 
> rule to match configuration it works.
> Can you suggest a resolution to this?
> 
> Thanks, Nishi.

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.