|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Input form from schema - indexable parameter
Dear David,
thanks for the reply, but I should explain myself better! My xsd file (input to the transformation) will 1st be scanned for element declarations. Maybe like this one, which would require two text fields on an HTML form as input: <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> It will stick all the ones it finds into a single variable (like a list). Basically I want the first pass to say "I see that this is a complex type DECLARATION, I'll put it in the "'multiVariable" variable. Then later, on the second pass when the processor encounters a particular instance or reference to one of my complex types, it will be able to look up the multiVariable-variable, to pull out the value appropriate to this type using syntax something lilke: <xsl:value-of select="multiVariable['MyComplexElement_3']"> or <xsl:value-of select="multiVariable[count]"> (within a looping template) <!--Check the name here--> I know it's not really an array, but it's array-ish syntax. I want "multiVariable" to hold a list of things that I can get at by either a name or an index number. I can't seem to create this variable - if I am creating it I'm certainly not accessing it properly! From: David Carlisle <davidc@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Input form from schema - indexable parameter Date: Mon, 19 Jan 2004 11:44:59 GMT
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








