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

Entering invalid XML in XSLT or how to structure a rul

Subject: Entering invalid XML in XSLT or how to structure a rule?
From: Mary McRae <marymcrae@xxxxxxxxxxxxx>
Date: Tue, 09 Sep 2003 10:00:03 -0400
xml rul
 
I have come across a situation where I need to be able to enter markup
that will be considered invalid in the XSLT file, but will result in
valid markup in my result file. 

This is basically because WordML does not support nesting paragraphs,
yet many DTDs/schemas consider bulleted lists to be part of the
paragraph (as is grammatically/structurally correct). So if I have a
para that contains a bullist, I need to end the WordML para and then
start a new one for each list item; at the end of the list I need to
insert a WordML start para.

Is there some way to enter such markup, or alternatively, is there
some way to build a template that will look ahead to see if the para
contains any of the possible list markup types so I can have an
alternate rule where I can map everything in a valid structure?

Sample XML:
<para>This is a para. It contains the following:
	<randlist>
		<li><para>First bulleted item</li></para>
		<li><para>Second bulleted item</li></para>
	</randlist>
And the summation of the para.</para>

Thanks for any and all assistance!

Mary


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.