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

XSL and "discontinuous" tags

Subject: XSL and "discontinuous" tags
From: "Daniel Watt" <dwatt@xxxxxxxx>
Date: Mon, 14 Apr 2003 00:10:55 -0500
daniel watt
I have an XML file that is somewhat unprofessional in design, because it
does this (essentially)

<quoteBegin/> this is a quote
<p> with a paragraph inside </p>
<p> and another, but the quote ends here <quoteEnd/> </p>

I want to replace in the output the quoteBegin with a <font> tag, and
the <quoteEnd> with a closing font tag (this is rendering to old HTML,
so I am going to ignore, for the moment, the mal-formattedness of this
in XHTML). However, the XSL parser won't let me do this "End tag 'font'
does not match the start tag...". Is there a way around this in XSL?

(BTW: I would like to clean up this XML file, which is rather large,
programmatically using XSL and PHP, so that it is compliant with XHTML,
doing something like a "quote continue" inside each <p> tag that it is
continued in, but I still need XSL to be able to output disconnected
tags to help in that endeavor)


 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.