Subject: [xsl] XSLT for toplevel element in xml From: Nishi Bhonsle <nishi.bhonsle@xxxxxxxxxx> Date: Mon, 17 May 2004 10:58:57 -0700 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] copying empty svg nodes (, Pieter Reint Siegers | Thread | RE: [xsl] XSLT for toplevel element, Michael Kay |
[xsl] copying empty svg nodes (no c, ah49 | Date | RE: [xsl] copying empty svg nodes (, Pieter Reint Siegers |
Month |