xsl-list
[Top] [All Lists]

Re: [xsl] Need help with XSLT: adding new node btw existing elements

2006-08-16 13:34:55


<xsl:template match="environment">

that matches elements called environment in no namespace but you have no
such elements, your original example looked like:

<test xmlns="blabla">
<comp id="New">
<process-type id="home" module-id="TESTER" status="enabled">
<environment>

so your document has an element environment in the namespace blabla
to match an element of that name put
xmlns:b="blabla" in your xsl stylesheet and use

<xsl:template match="b:environment">

(This is a FAQ)

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>