Re: [xsl] Adding element to xml snippet using xslt

Subject: Re: [xsl] Adding element to xml snippet using xslt
From: Nishi Bhonsle <nishi.bhonsle@xxxxxxxxxx>
Date: Fri, 18 Feb 2005 12:07:33 -0800
Joris Gillis wrote:

Tempore 20:52:00, die 02/18/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Nishi Bhonsle <nishi.bhonsle@xxxxxxxxxx>:

<xsl:copy-of select="@*[status = 'true' ]"/>

That cannot work. You probably meant:

<xsl:copy-of select="@status[. = 'true' ]"/>


Using the above line, gets me an empty started element as below. How can I tweak it to be

<started status="true">This application was stopped.</started>

<abc:configuration xmlns:xsi=""; xsi:schemaLocation=" configuration.xsd" webcache="false" useMgmt="true" metadata="true">
<server useLogFile="true" logLevel="error">
<activation enabled="true" maxSessions="20" timeout="30"/>



Current Thread