Subject: Re: [xsl] Extracting value from node with formatter elements From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Mon, 14 Apr 2008 14:31:51 +0100 |
On 14/04/2008, Amit Hanchinamani <a.hanchinamani@xxxxxxxxxxx> wrote: > I want to get the entire node value "<b><u>blah blah</u></b>". But using > <xsl:value-of select="." /> or <xsl:value-of select="text()"/> or > <xsl:value-of select="current()" /> returns only "blah blah". I cannot > figure out how to get the entire value along with the formatting tags. The short answer is use <xsl:copy-of select="."/> The longer answer is to apply-templates to the node with the identity template to do the copying, possibly all in a mode, to allow you override the output where needed. -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Extracting value from nod, Vyacheslav Sedov | Thread | Re: [xsl] Extracting value from nod, David Carlisle |
Re: [xsl] Extracting value from nod, Vyacheslav Sedov | Date | Re: [xsl] Extracting value from nod, David Carlisle |
Month |