[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] pulling child elements up to sibling level
Ok, It has been a while since I played around with XSLT, and my brain is a little rusty. I can't seem to figure out how to do the following task. I have instances where the source DTD allows markup like the following: <?xml version="1.0"?> <doc> <para>Here is a <emphasis>paragraph</emphasis>with <unordered.list> <list.item>unordered</list.item> <list.item>lists</list.item> </unordered.list> and <ordered.list> <list.item>ordered</list.item> <list.item>lists</list.item> </ordered.list> embedded inside of it along with some <emphasis>formatting</emphasis> tags</para> </doc> My target schema only allows lists and such as siblings of paragraphs, thus I need to transform the document into something like this: <?xml version="1.0"?> <doc> <para>Here is a <emphasis>paragraph</emphasis>with</para> <unordered.list> <list.item>unordered</list.item> <list.item>lists</list.item> </unordered.list> <para>and</para> <ordered.list> <list.item>ordered</list.item> <list.item>lists</list.item> </ordered.list> <para>embedded inside of it along with some <emphasis>formatting</emphasis> tags</para> </doc> Any help would be appreciated, since my brain refuses to leave procedural mode this morning no matter how much coffee I feed it. Rick XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|