Sorry XSL File is attached herewith
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="html/body">
<ROWSET>
<xsl:apply-templates/>
</ROWSET>
</xsl:template>
<xsl:template match="/">
<xsl:for-each select="html/body/s">
<ROW>
<HEADER>
<xsl:value-of select="h"/>
</HEADER>
<BODY>
<xsl:apply-templates select="*[name(.)!='h']"/>
</BODY>
</ROW>
</xsl:for-each>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
sundar
-----Original Message-----
From: Sundar Shanmugasundaram
Sent: Wednesday, May 07, 2003 9:17 PM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] how to get rid of tag names
Hi,
There are two steps in solving this problem.
First transform your xml into this xml format.
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="D:\del\sundar\welcome4.xsl"?>
<html>
<body>
<s>
<h>Header1</h>
<p> A </p>
<dl>
<dt> B </dt>
<dt> C </dt>
</dl>
</s>
<s>
<h>Header2</h>
<p> D </p>
<dl>
<dt>
<dt> E </dt>
</dt>
</dl>
<p> F </p>
</s>
</body>
</html>
using an XSL file. Basically you need to write an XSL file which will
read the old xml file and copy that except when you come across <h> element
put everything
in different node called s until next h element comes.
Then use this xsl file
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list