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

Re: Parsing mixed content nodes

Subject: Re: Parsing mixed content nodes
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Fri, 8 Feb 2002 16:06:21 -0500
thomas macki
The big question is, do you want to handle any arbitrary mixed content, or
just <a> elements like this?  If any, exactly what should be shown for other
elements, especially if they have more than one attribute?

Tom P

[Jason Macki]

I'm writing a stylesheet that converts some HTML code into text.

For example, this xml:

<item>
<p>
    This is a <a href="link.htm">link</a><br />This is a new
line.
</p>
<item>

would be translated into this text:

This is a link(link.htm)
This is a new line.

I can use the descendant axis to retrieve the "p" node, the "a" node,
and the "br" node from the "item" element.

My problem is combining them back together, in the correct order.

I'd like to be able to write XSLT that would output:

"this is a", then the "a" node, then a line break for the "br" node, and
then output the remaining text.

Does anyone have any ideas?



 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.