sqad wrote:
<JiraJelly
xmlns:jira="jel ly:com.atlassia n.jira.jelly.en terprise.JiraTa gLib">
...something
</JiraJelly>
Anyone know how to create this xml tag using the xsl:element?
1) Why are you using xsl:element rather than a literal result element or
xsl:copy, which are always simpler unless you need to calculate the
element name?
2) If you really must do so... Explicitly issuing namespace declaration
nodes in specific places usingXSLT 1.0 is unfortunately rather awkward.
You can't use xsl:attribute, since namespace declarations are not
considered attributes by the XPath Data Model which XSLT is based on.
About the only way I know of to do this is to copy the desired namespace
node off a node that happens to carry that definition. (XSLT 2.0 fixes
this by providing an explicit directive for the purpose, but there still
aren't many processors available which support 2.0.)
See some of the related discussion in
http://www.dpawson.co.uk/xsl/sect2/N...tml#d7594e1318
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry