xsl-list
[Top] [All Lists]

Re: [xsl] translate to XML using XSL into an HTML table

2007-08-06 00:26:59
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 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--