xsl-list
[Top] [All Lists]

[xsl] Selecting text between two tags

2006-08-06 04:26:01
Hello everybody.

This is my first message to the list. :-)

Here is my problem: I have an html file that has a structure like this:
<html>
<body>
<h2>Description</h2>
<p>Blah-blah</p>
Some-more <p>-s and text
<h2>Parameters</h2>
<p>Some more text<p>
</body>
</html>

Now i want to make a xml file that has this structure:
<m:man>
<m:description>
<p>Blah-blah</p>
Some-more <p>-s and text
</m:description>
<some other> things
So my question is how to get the text between the first
<h2>description</h2> and the second <h2>parameters</h2> tag and place
it in the <m:description></m:description> tag

Thanks in advance.




--
Regards, Petar!
Karlovo, Bulgaria.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>