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