[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

generic formula for splitting mixed-text elements to

Subject: generic formula for splitting mixed-text elements to create blocks
From: "Dorothy Hoskins dorothy.hoskins@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 11 Mar 2016 23:19:11 -0000
 generic formula for splitting mixed-text elements to
Is there a generally accepted way to split a mixed text element such as
<para>this is text with <bold>inline elements</bold> and includes a
   <list>
      <list-item><p>item a</list-item>
      <list-item><p>item b</list-item>
      <list-item><p>item c</list-item>
   </list>
within a paragraph with other inline elements <italic>after</italic> the
list/</para>

The result would be split to become this:
<para>this is text with <bold>inline elements</bold> and includes a</para>
<list>
   <list-item><p>item a</list-item>
   <list-item><p>item b</list-item>
   <list-item><p>item c</list-item>
</list>
<p>within a paragraph with other inline elements <italic>after</italic> the
list.</para>

I'm not terrible fold of splitting paragraphs, but for conversion to HTML,
the 2nd example is a better starting point for a transformation.

I'd like to have a pattern I could apply whenever I come across a similar
situation.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.