This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: RE: Insert html tag between elements


Thank you Jeni and Jason for your help.

Astor

-----Original Message-----
From: Astor Rivera [mailto:arivera@esri.com]
Sent: Wednesday, July 10, 2002 11:38 AM
To: 'xsl-list@lists.mulberrytech.com'
Subject: [xsl] RE: Insert html tag between elements


Hello,

I'd like to know or get some hints as to how to
insert an html tag in between elements.
<=== XML page ===>
<Root>
	<page>
		<body>
			<paragraph> Sentence goes here.</paragraph>
			<paragraph> Sentence goes here.</paragraph>
		<body>
	</page>
</Root>

<=== XSL page ===>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns="http://www.w3.org/1999/xhtml";>
	<xsl:output method="html"/>
	<!-- ========== Produce HTML ========== -->
	<xsl:template match="pagination ">
		<html>
			<head>
				<title>ESRI Map Book, Volume 17</title>
			</head>
			<body topmargin="0" marginheight="0" leftmargin="0"
marginwidth="0">
				<xsl:apply-templates
select="//body/paragraph"/>
			</body>
		</html>
	</xsl:template>
</xsl:transform>

All I end up getting is all of the paragraphs in one giant block.
I would like to insert a <br /> or a <p> tag in between.

Any assistance would be greatly appreciated.

Thanks,
Astor

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]