how to get the output in xslt in following case?
We have a xml as:
-----------------
<?xml version="1.0" encoding="US-ASCII"?>
<?xml-stylesheet type="text/xsl" href="ex2.xsl"?>
<article article-type="in-brief">
<sec>
<title>Differences in Admitting Hospital Characteristics for Black and White Medicare Beneficiaries With Acute Myocardial Infarction</title>
<p>Recent research has identified differential access to high-quality hospital care as an important, perhaps primary, factor associated with racial disparities in the treatment of acute myocardial infarction. See p <related-article related-article-type="in-this-issue" vol="123" page="2710" ext-link-type="pmc" id="zhc2710">2710</related-article>.</p>
</sec>
<sec>
<title>Relationship Between Supranormal Oxygen Tension and Outcome After Resuscitation From Cardiac Arrest</title>
<p>Historically, the administration of supplemental oxygen has been considered a cornerstone of cardiopulmonary resuscitation for victims of cardiac arrest. See p <related-article related-article-type="in-this-issue" vol="123" page="2717" ext-link-type="pmc" id="zhc2717">2717</related-article>.</p>
</sec></body>
</article>
xslt to display the data:
----------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" version="4.0"/>
<xsl:template match="/">
<html>
<body onload="displayResult()">
<h2>My Article</h2>
<xsl:for-each select="article[@*]/body/sec">
<div class="chap-title"><xsl:value-of select="title"/></div>
<p><xsl:value-of select="p"/></p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------
In case <sec> tag is replaced with <ce:section>, what changes should be made in the above xslt
|