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' ]"/>

Hi:


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="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://oracle.com/xmlns/abcst/configuration configuration.xsd" webcache="false" useMgmt="true" metadata="true">
<drillOutDir></drillOutDir>
<started></started>
<server useLogFile="true" logLevel="error">
<activation enabled="true" maxSessions="20" timeout="30"/>
</server>


Thanks.



regards,

Current Thread