[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: accessing multiple xml documents from within one
Use *[name()=$fieldname], and if it's too slow then find a faster processor. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Stefan Hunziker [mailto:stefan.stanjasele@xxxxxxxxx] > Sent: 16 January 2009 23:01 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: accessing multiple xml documents from > within one template > > I have a solution now for accessing both trees, I have to > step through the reportDef using xsl:for-each. But now I have > the next problem: > > In $fieldname there is the desired tag, eg "title". Can I get > the title element of my current book node without looping > through the whole node and comparing with name(.)=$fieldname? > The given sample is a simplification, the real book node in > my application has maybe 100 elements and with maybe 1000 > books this would be a little bit too time consuming. > > any ideas?
|
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
|