Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Processing data after an empty tag.

From: "McKinstry, Scott A" <scott.a.mckinstry@-------->
To:
Date: 3/1/2005 2:41:00 PM
I am using XSLT 1.0 and trying to find a way to transform the following SGML into XML.

SGML Input Supplied:

<para>
	<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>
</para>

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. 
	<itemizedlist>
		<listitem><para>List Item One</para></listitem>
		<listitem><para>List Item Two</para></listitem>
		<listitem><para>List Item Three</para></listitem>
	</itemizedlist>
</para>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent