xsl-list
[Top] [All Lists]

Re: Input form from schema - indexable parameter

2004-01-19 04:44:59

  Needed is an example of how to store and retrieve data in an indexable 
  parameter.  I would like to create "myTypes" as an indexable array of 
  variables

xslt does not have arrays so I am having trouble guessing exactly what
you want here, but if you want a variable that stores structured data
(as appears to be the case) then you want to use a node set, possibly
(or possibly not) in a nodeset-valued variable.

eg if the document x.x.ml
<x>
<a/>
<b/>
<c/>
</x>

corresponds to your "array" then

<xsl:copy-of select="document('x.xml')/x/*[2]"/>

will access the second element of that "array".

David
`
-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
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>