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

Transforming a Loose Structure

Subject: Transforming a Loose Structure
From: Jeff Sese <jsese@xxxxxxxxxxxx>
Date: Wed, 21 Mar 2007 13:34:47 +0800
 Transforming a Loose Structure
Hi,

I'm trying to transform one xml to another xml, however the elements used for text formatting is much stricter in the output than that of the source. For example:

Source:

<p>Some text <i>some italic text with <b>bold faced</b> and and in <ul>underline</ul></i>.</p>

<i> - for italics
<b> - for bold face
<ul> - for underline
<sup> - superior
<inf> - inferior
<sc> - small-caps

These element can contain each other from the source with no restrictions. However, the output requires that:

<i> - can contain <b>, <ul>, <sup>, <inf>, <sc>
<b> - can contain <i>, <ul>, <sup>, <inf>, <sc>
<ul> - can only contain <i>, <b>
<sup> - can only contain <i>, <b>
<inf> - can only contain <i>, <b>
<sc> - can only contain <i>, <b>

With these restrictions an underlined text in small caps, superior in small caps or underline, inferior in small caps or underline will not have correct counter part from the output, but i think i'll have to default them in someway. But my problem is when the <sup>, <inf>, <ul> or <sc> is inside a <i> or <b>, how can i make my output so that will conform to the restrictions?

TIA!
--
*Jeff Sese*

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.