Subject: Re: [xsl] translate to XML using XSL into an HTML table From: Florent Georges <darkman_spam@xxxxxxxx> Date: Mon, 6 Aug 2007 09:26:37 +0200 (CEST) |
Steve wrote: > On 8/3/07, oryann9 wrote: Hi > > the statements > > 1 <xsl:for-each select="//LISTING/*"> > > 2 <xsl:value-of select="."/> > > on line 2 means the current entry? in other words what > > does the "." mean? > It means everything between the <FIRST>*this > stuff*</FIRST> tag. Please don't pronounce the T-word on this list. In the context of the XPath data model, FIRST is an element. The "." expression represents the context item. The expression "//LISTING/*" evaluates to an (ordered) sequence of elements. For each of them, the content of the for-each will be evaluated, the element being the context item. It is important to understand that this does not mean what appears inside the element ("between the tags"), but the element itself. When you use value-of, it will compute the string value of the element, which means each textual content in the element and its descendants, as a single text node. Regards, --drkm _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] translate to XML using XS, Steve | Thread | Re: [xsl] translate to XML using XS, B Tommie Usdin |
Re: [xsl] Comparing XSLT 1.0 and XS, Karl Stubsjoen | Date | Re: [xsl] translate to XML using X, oryann9 |
Month |