[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Simple template matching problem
Steve wrote:
I have a problem with the below templates. The first template *ideally* displays a bunch of input fields, based on the table's structure as defined by $invTable. You suspect correct. You match for "Records/Record", which translates as: "Any element 'Record' that has a parent of 'Records' ". However, you seem to think of it as "Any element 'Records' with one or more 'Record' elements as children". What you need is: match="Records[Record]" (you need a predicate, not a child specification).
btw, why do you need this? First of all, it is not there in the source, secondly (assuming your sample source is different than your real source), if the data is there, you can get it from the matching templates as well (or the matching templates have different sources, but the same elements, in which case I recommend that you switch modes as well, to keep from accidental infinite recursion). </xsl:apply-templates> </xsl:template> Cheers, -- Abel
|
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
|