xsl-list
[Top] [All Lists]

Re: Extracting values from the XML data source

2003-07-17 07:28:15

  Is it possible to extract a value from the xml data and place it into a
  stylesheet variable at the time of processing ?

er, yes of course

<xsl:variable name="x" select="elementname"/>

makes $x refer to the element node selected by elementname

But I suspect that wasn't the question you meant to ask?


  My reason for needing to do this is that I would like to restrict the number
  of 'rows' returned by the style sheet dynamically.

Typically you wouldn't need a variable to do that, so I'm not sure how
that relates to your question.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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



<Prev in Thread] Current Thread [Next in Thread>