>I want to move the SUPPLIER section into the ARTICLE section and leave the rest as it is. Please tell me
>how to do this ?
(After seeing your posting on xml-dev and then opening with a comment about how xsl-list is a better place for XSL(T) stylesheet issues, I now see that you cc'd your posting to xsl-list. I don't see any answer there yet, so I'll forge ahead.)
One problem is that your XML couldn't be valid: the DOCTYPE declaration said that the document element was ARTICLE, but the SUPPLIER element came before the ARTICLE element. The document element has to enclose everything else.
To process it, you could do this: remove the DOCTYPE declaration and add some other element (I'll call it TEMP) around the whole thing to make it well-formed. The stylesheet below should then do what you need. I tried to comment it a lot.
Bob DuCharme www.snee.com/bob <bob@
snee.com> see http://www.snee.com/bob/xsltquickly for
info on upcoming "XSLT Quickly" from Manning Publications.
<!-------- beginning of stylesheet ------------->
<!-- Assumes that TEMP's only children are SUPPLIER and ARTICLE.
Process ARTICLE child but not SUPPLIER child. -->
<!-- Put SUPPLIER sibling after ARTICLE start
tag, then ARTICLE's other children. -->
<!-- Copy any nodes not covered above. -->