xsl-list
[Top] [All Lists]

RE: [xsl] accessing multiple xml documents from within one template

2009-01-16 18:31:25

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(_dot_)stanjasele(_at_)gmail(_dot_)com] 
Sent: 16 January 2009 23:01
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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?

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--