Subject: Re: [xsl] Input form from schema - indexable parameter From: "Andrew Maclean" <andyjmaclean@xxxxxxxxxxx> Date: Mon, 19 Jan 2004 12:39:33 +0000 |
<xsd:element name="MyComplexElement_1"> <xsd:complexType> <xsd:sequence> <xsd:element name="subEl1" type="xsd:string"/> <xsd:element name="subEl2" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element>
<xsl:value-of select="multiVariable[count]"> (within a looping template) <!--Check the name here-->
From: David Carlisle <davidc@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Input form from schema - indexable parameter Date: Mon, 19 Jan 2004 11:44:59 GMT
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
_________________________________________________________________ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Input form from schema - , David Carlisle | Thread | [xsl] ID refs, Ricardo Saraiva |
RE: [xsl] ID refs, Jarno . Elovirta | Date | RE: [xsl] encoding <-> omit-xml-dec, Michael Kay |
Month |