RE: [xsl] RE: XML to HTML

Subject: RE: [xsl] RE: XML to HTML
From: "Shailesh Shinde" <shailesh@xxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 17:35:20 +0530
Thanks a lot Joris! Output as per requirements.

-----Original Message-----
From: Joris Gillis [mailto:roac@xxxxxxxxxx] 
Sent: Tuesday, September 20, 2005 5:23 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] RE: XML to HTML

Tempore 12:58:00, die 09/20/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx
scripsit Shailesh Shinde <shailesh@xxxxxxxxxxxx>:

> Is there
> any other shortest way to get the TopicGroup in H1 and all the src present
> in that in h2. Same for Topic in h1 and src presents in that in h2.

I'm not totally sure what your goal is, because of the line noise.

Give this stylesheet a try:

<xsl:stylesheet version="1.0"
<xsl:output method="xml" indent="yes"/>

<xsl:template match="/">
		<style type="text/css"> {background:#09C;color:black;font-size:xx-large}

<xsl:template match="qxf">
<xsl:apply-templates select="docmain/Chapter/TopicGroup"/>

<xsl:template match="TopicGroup">
<h1 class="group">
	<xsl:value-of select="Title//src"/>
<xsl:apply-templates select="BodySummary//src"/>
<xsl:apply-templates select="Topic"/>

<xsl:template match="Topic">
<h2 align="center"><xsl:value-of select="Title//src"/></h2>
<xsl:apply-templates select="BodyConcept//src"/>

<xsl:template match="src">

<xsl:template match="src[ancestor::Note]">
<h3>Note:	<xsl:apply-templates/></h3>


Joris Gillis (
Don't send spam. I don't like it and it is illegal.

Current Thread