xsl-list
[Top] [All Lists]

[xsl] Creating elements in an arbitrary position in the result document

2010-01-17 18:49:04
Hello,

using the information in a subtree of a source document, I would like to
create an element in an arbitrary position in the result document:
Source:
<?xml version="1.0"?>
<A>
... <- unknown/variable amount of nodes
  <B>
    <C attrC="value1"/>
      <D attrD="value2"/>
  </B>
</A>
Result:
<A>
  <new_element attrC="value1" attrD="value2"/>
    ... <- unknown amount of elements in source between A and B
    <B>
...

Is it possible to do this? I didn't find it in the FAQ of things that are
not possible in XSLT.
If yes, how?

Thanks,
Cristobal



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