Hi all,

I have a piece of xml+html which I'm trying to cleanup using xslt. Here's a sample;

<TEXT>A few bright spots are emerging in the small to medium-size enterprises landscape, but funding issues remain as much a problem for those who want to expand overseas as for those who want to survive nationally.<p/>Export credit agency, the Export Finance and Insurance Corporation, showed in its latest annual Global Readiness Index that although Australian businesses remain hopeful about their overseas operations, smaller firms face high finance barriers.<p/>More than 80 per cent of companies with overseas operations plan to expand them and more than 40 per cent without overseas operations plan to move into foreign markets.</TEXT>

Note the two <p/> tags which are bad, indeed. How can I find them and replace them by the proper </p><p> with concat to make the body/TEXT node proper html.

oh.. and.. this is my first post here, so pls shout at me loud if there's anything I'm doing wrong!


8 Years
Discussion Span
Last Post by xml_looser

with xsl you delete the <p/> Tags

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
	<xsl:copy-of select="."/>

to modify <p> use sax then you can control <p> Tag
Helmut Hagemann

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.