[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: translate to XML using XSL into an HTML table

Subject: Re: 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)
Re:  translate to XML using XSL into an HTML table
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.