Solved.
I avoided CSS.
First let me state the problem more accurately.
Instance looks likes
<lineItem description="Asset">
<figure year="2005">100</figure>
<figure year="2006">200</figure>
......
</lineItem>
If we do this below the input box will not be inlined with the and
output labels
<repeat nodeset="lineItem">
<input ref="@description"><label etc ..../>
<repeat nodeset="figure">
<output ref="figure"/>
</repeat>
</repeat>
Do this instead. We make the nodeset of the inner repeat to be the
union of lineItem's attributes and elements. Then shift the input box
into the inner repeat.
If the context does not have a year attribute then it's the
description attribute -> display the input control. If it does have a
year attribute display the output control.
Probably better to have done a node-kind test to distinguish the cases
but can't remember off the top of my head what you have to do for
XPath 1.0.
Code below.
<repeat nodeset="lineItem">
<repeat nodeset="@*|*">
<input ref=".[not(@*)] ........
<output ref=".[@year]"/>
</repeat>
</repeat>
On Tue, Jan 15, 2013 at 11:58 PM, Ihe Onwuka <[email protected]> wrote:
> I have something like
>
> <repeat>
> <input ref="description"><label etc ..../>
> <repeat>
> <output ref="yearlyfigure"/>
> </repeat>
> </repeat>
>
> Where there are several yearly figures for each description.
>
> I have inlined the yearly figures but they still print on a different
> line to the description.
>
> Can anyone help with the CSS incantations to achieve my goal.
>
> thanks
>
> ihe
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support