Subject: Re: [xsl] problem adding namespace node From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 28 Feb 2006 11:28:25 -0500 |
Should anyone knows how to add a namespace to a node? i have tried the following approach: first, i create a dummy attribute; <xsl:variable name="dummy"> <xsl:element name="p:a" namespace="http://majirus.org"/> </xsl:variable> From an xml node <a>, i write the following instruction: <a><xsl:copy-of select="xalan:nodeset($dummy)/*/namespace::*[2]"/><a> but, as a result tree i have got only the <a/> element without namespace,
-- Upcoming XSLT/XSL-FO hands-on courses: Washington,DC 2006-03-13/17 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] problem adding namespace node, Majirus FANSI | Thread | Re: [xsl] problem adding namespace , Majirus FANSI |
RE: [xsl] Optional namespace declar, Michael Kay | Date | RE: [xsl] Optional namespace declar, G. Ken Holman |
Month |