Re: [Xsltforms-support] Adding optional elements to an XML document
Brought to you by:
alain-couthures
From: Santosh C. <san...@gm...> - 2012-06-06 05:54:04
|
The "position" and "at" attributes can be used for ordering the elements the way you want them to be. Better way that works with xsltforms is by using nodeset and origin. For example - <xf:insert nodeset="*[self::h:name or self::h:code]" origin="...." /> would mean insert the nodes from origin at current node after name or code whichever comes first. Using nodeset is much easier in case of many optional elements. Regards, Santosh |