xsl-list
[Top] [All Lists]

Re: Adding element to xml snippet using xslt

2005-02-18 13:07:33


Joris Gillis wrote:

Tempore 20:52:00, die 02/18/2005 AD, hinc in xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Nishi Bhonsle <nishi(_dot_)bhonsle(_at_)oracle(_dot_)com>:

<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,



--~------------------------------------------------------------------
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>
--~--