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

from start tag A to end tag B

Subject: from start tag A to end tag B
From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx>
Date: Mon, 31 Jan 2005 14:38:01 +0100
what is a textitem element
Hello,

I have the following input xml

<root>
	<p class="foo">
	...
	</p>

	<tag1/>
	...
	<tagN/>

	<p class="foo">
	...
	</p>
	...
</root>

I want to put all elements between <p class="foo"> start tags into a new
element called textItem. E.g.:

<root>
	<textItem>
		<p class="foo">
		...
		</p>

		<tag1/>
		...
		<tagN/>
	</textItem>
	<textItem>
		<p class="foo">
		...
		</p>
		...
	</textItem>
</root>

As XSL does not work on a tag basis (like SAX getStartTag()) nor line
basis I am not sure how to implment that.I am not even sure if there is
a chance to do that in XSL. Can you help?

Thanks in advance,

Robert

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.