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

Processing data after an empty tag.

Subject: Processing data after an empty tag.
From: "McKinstry, Scott A" <scott.a.mckinstry@xxxxxxxx>
Date: Tue, 01 Mar 2005 09:41:15 -0500
xsl empty tag
I am using XSLT 1.0 and trying to find a way to transform the following SGML into XML.

SGML Input Supplied:

	<text> The following is a list <style type="list"></style><style type="para"></style>List Item One.
	<style type="para"></style>List Item Two.<style type="para"></style>List Item Three</text>

The problem I am trying to find a solution for is actually a problem in the sgml dtd.  It was poorly written and now I have to deal with it.
  <style> can contain no data, so instead of the <style> tag surrounding the data, it precedes the data and is an empty tag.
I was thinking that I could some how processing the parent <text> tag and 
determine what the style tag that precedes the text intended the output to be.
So far I have not found a way that work.  Any help would be appreciated.

XML Output Required:

<para>The following is a list. 
		<listitem><para>List Item One</para></listitem>
		<listitem><para>List Item Two</para></listitem>
		<listitem><para>List Item Three</para></listitem>

Current Thread


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.
First Name
Last Name
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.