Re: [Xsltforms-support] Saving a node value in a repeat
Brought to you by:
alain-couthures
From: Dan M. <dan...@gm...> - 2013-03-18 20:49:14
|
> I have a nested repeat and from the inner repeat I want to access a value from the outer repeat as I am displaying them, not when I click on a cell. I am not sure what your question is, but here are some hints. Within any repeat you should be able to access all the parent nodes using relative XPath expressions such as ".." and "../..". As you click on a cell within a repeat, start with the current node and go up like this: <output ref="./../../parent-node/element"/> or you can use the index() function and a predicate [] to isolate the item want to view within the repeat. - Dan On Mon, Mar 18, 2013 at 2:20 PM, Elias Mazur <eli...@gm...> wrote: > Hi. > > Is there any way to save a node value inside a repeat, but not in an > action (like using setvalue)? I have a nested repeat and from the inner > repeat I want to access a value from the outer repeat as I am displaying > them, not when I click on a cell. > > For example, let's say I have 2 instances: one holds car information, the > other truck information, a third hold companies, and some companies makes > trucks and cars. In the companies instance there is a node that refers to > the ids of the car/trucks they make. I want to list a matrix with cars as > columns and trucks as rows and highlight the cells in which the same > company makes both. It's like a cross-reference between instances. > > The code I have is very complex and runs within an XQuery script. If you > can help me figure this out from the description above, cool. Otherwise > I'll try to put an example together. > > Thanks. > Elias > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > -- Dan McCreary NoSQL Evangelist office: (952) 931-9198 cell: (612) 986-1552 |