Subject: Re: [xsl] Adding element to xml snippet using xslt From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Mon, 21 Feb 2005 22:48:21 +0100 |
make that:
<xsl:template match="server"> <xsl:element name="drillOutDir"> <xsl:value-of select="abc:configuration/drillOutDir"/ </xsl:element> <xsl:element name="started"> <xsl:copy-of select="@status[. = 'true' ]"/> <xsl:value-of select="../abc:configuration/started"/> </xsl:element> </xsl:template>
Hi: Apparently, this results in the following output -- <drillOutDir></drillOutDir> <started></started> <server> </server>
The status = true attribute of the started element does not show up? The output for the started element should be -- <started status="true">This application was stopped.</started>
What could be wrong/missing in the above xslt?
Thanks.
Hi: Any updates on this?
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Vincit omnia simplicitas Keep it simple
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Adding element to xml sni, Nishi Bhonsle | Thread | Re: [xsl] Adding element to xml sni, Nishi Bhonsle |
Re: [xsl] xslt to generate XSL-FO t, David Carlisle | Date | Re: [xsl] Adding element to xml sni, Nishi Bhonsle |
Month |