Re: Problem in Mozilla for Displaying text from XSL variable

Martin Honnen <[email protected]> Thu, 05 Jun 2008 13:26:17 +0200
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Liberty Development
Message-ID <[email protected]>
[email protected] wrote:

> <college name="JDSVM" id="121" >
>       <![CDATA[
>              53           26100
> ]]>
>       <Comment>
>         <![CDATA[
>  front jounce bumper
> 
> ]]>
> </college>
> 
> in my XSL file, for taking the value of name and iid, i used
> <xsl:value-of select="college/@name"/>
> <xsl:value-of select="college/@id"/>
> 
> now for selecting the above CDATA section i used
> <xsl:value-of select="college/."/>
> 
> but this line show CDATA sections along with Comment part, it looks
> like this...
> 53           26100  front jounce bumper
> 
> can u tell me how can we select only <b> 53           26100 </b> part?

   <xsl:value-of select="college/text()[1]"/>

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/