xsl-list
[Top] [All Lists]

[xsl] Something like position()

2007-03-28 09:50:24
I'm making an xsl template which takes a SQL table's info and
automates form display based on data types, field order, etc.

Given something like

<fields>
 <field name="name" />
 <field name="city" />
 <field name="state" />
 <field name="zip" />
 <field name="favFood" />
</fields>

---

Above, I'd like only the nodes which are after @name="city" and before
@name="favFood".

Let's say, for example, I wanted to add zipPlusFour after "zip" and
before "favFood". I'd want my xsl to 'know' to this field belongs in
the form. Looking for output something like...

<form>
<city>
<state>
<zip>
</form>

-Steve

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>