Re: [xsl] Can't output CDATA section

Subject: Re: [xsl] Can't output CDATA section
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Wed, 07 Jul 2004 08:35:37 -0600
Hey Robert...

Robert Soesemann wrote:

How can I get the content of the CDATA section of this node?

<option3link><![CDATA[javascript:objDialogBox.dlgReset();moduleFocus=old
ModuleFocus;]]></option3link>

The use of

This should work so Im guessing you are not in the section of the document you think you are when you call value-of... try just using "." if you are in the context of the "option3Link".

<xsl:value-of select="option3link"/> or

This is invalid. "." is a self reference to the value of the current node so this will at best do nothing and most likely throw an error in your stylesheet.
<xsl:copy-of select="option3link/."/>

doesn't work?

Try using <xsl:value-of select="."/> as I suspect this is probably where your hang up is, but im just guessing without seeing more source...




Help??? ;-)Please.

Let me know if this doesnt fix it...


Regards,

<M:D/>

Thanks Robert


--+------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxxx>
--+--


Current Thread