[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Flow data in table

Subject: RE: Flow data in table
From: Andrew Glass <asg@xxxxxxxxxxxxxxxx>
Date: Wed, 12 Nov 2003 04:38:00 -0800 (PST)
replace data table to div
> You have to define the "scribe[1]/modified" and the "data" templates outside
> of the "/bamiyan" template, and replace the whole template definitions you
> now put inside the "/bamiyan" template with a simple:
> 
> <xsl:apply-templates select="scribe[1]/modified" />
> 
> That way, it should work...

Fantastic! It works, thank you Andreas!

For the record, here is the working version:

<xsl:template match="/bamiyan">
	<html>
	    <head>
	        <title>Bamiyan Scribes</title>
	    </head>
	    <body>
		<div align="center">
		<h3>Syllables with Modified Vowels</h3>
		<table width="60%" border="1">
		<xsl:apply-templates select="scribe[1]/modified" />
		</table>
		</div>
	    </body>
	</html>
</xsl:template>

<xsl:template match="/bamiyan/scribe[1]/modified">
	<xsl:for-each select="data[position() mod 5 = 1]">
	<tr>
	<xsl:apply-templates select=". | following-sibling::data[position() &lt; 5]" />
	</tr>
	</xsl:for-each>
</xsl:template>

<xsl:template match="/bamiyan/scribe[1]/modified/data">
	<td width="20%">
	<i>&#xA0;<xsl:value-of select="rm"/></i>&#xA0;
	<span style="font-size: 22pt"><font face="Schoyen01"><xsl:value-of select="kh"/></font></span>
	</td>
</xsl:template>



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.