This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: xsl string comparison fails why?


> > Not sure about this, but I think the string value of 
> > "admissions/state/text()" will include the value of the child 
> > <statelink> element as well.
> 
> no as it was iterating over text() nodes.

Ahh. Makes sense. But only after reading your first reply, quoted below.
Very enlightening!

Thanks,
Kevin

> <xsl:for-each select="admissions/state/text()">
> 		<xsl:if test=".=$state">
> 			<xsl:value-of select="."/>
> 
> so here you are iterating through each of teh text nodes of 
> teh state element. in the case of
> 
>  <state>Alabama
>   <statelink
>   href="http://www.alabar.org/page.cfm?view=3&amp;subgroup=main";>
>   Bar Admissions Information</statelink>
>   </state>
> 
> 
> there are two of those:
> 
> "Alabama
>   "
> 
> and
> 
> "
>   "
> 
> either side of the statelink element.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]