Re: [xsl] apply template to XSL text contents?

Subject: Re: [xsl] apply template to XSL text contents?
From: Dharshana S Van Der Bona <dharshanav@xxxxxxxxx>
Date: Tue, 19 Sep 2006 01:18:05 -0700 (PDT)
What if I get the data contents to a variable?
And then try to build a nodeset out of that ? I remember seeing something like that on the net.  But dont know whether it is possible or not.

Thanks,
Dharshana

----- Original Message ----
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Sent: Tuesday, 19 September, 2006 9:13:43 AM
Subject: Re: [xsl] apply template to XSL text contents?

Dharshana S Van Der Bona wrote:
>  Hi All,
> I have a document which has the following structure
> 
> <doc>
> <navigation version="1.0" >
>     <nav-element page="Home Page" fileName="default" displayOrder="0"/>
> </navigation>
> <page version="1.0"  displayOrder="0" id="1" name="Home Page" pageType="DEFAULT">
> <![CDATA[
>     <h2>The Company</h2>
>     <p>This is some default text to show you what your site may look like</p>
>     <p>
>             You can customise the contents of your site in the next few steps<a href="test1">one</a> <a href='test2' >two</a>
>     </p>
>     <p>
>         <a href="three" >three</a>
>     </p>
>     ]]>
> </page>
> </doc>
> 
> 
> Will it be possible to apply a template to the text contents of <page></page> node, to  manipulate the HTML tags inside it?
> 
no, CDATA sections makes the data (and what u think is xml) not 
available for processing.

some ref

http://www.dpawson.co.uk/xsl/sect2/cdata.html#d2734e43

gl, Jim Fuller

Current Thread