Subject: Re: [xsl] problem of repetition From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx (by way of B. Tommie Usdin) Date: Tue, 30 Jan 2001 19:08:59 -0500 |
1) Source XML 2) Destination (expected) XML (output)
Regards, Frank.
hello friends, i have tried the site jenitennison.com. i am facing one problem.the problem is that in report i am getting same project name again and again and the records are also in a repetition. but i have solved the problem of grouping.means to separate the data of projects and the same project data in a single table.but this project name is repeating and its records are also repetiting. thanks in advance
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:key name="manish" match="row" use="PROJECT_ID" /> <xsl:output method="html"/> <xsl:template match="rowset"> <xsl:apply-templates select="row[generate-id(.) = generate-id(key('manish', PROJECT_ID)[1])]" />
<html> <head> <title>Ptss</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <link rel="stylesheet" href="../../Content_Files/Form.css"/> </head> <body>
<xsl:for-each select="//PROJECT_ID/@value[not(.=following::PROJECT_ID/@value)]" > <xsl:value-of select="."/> <xsl:for-each select="//row[PROJECT_ID/@value=current()]"> <xsl:sort select="TASK_NAME/@value"/> <p><xsl:value-of select="TASK_NAME/@value"/></p> </xsl:for-each>
</xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] problem of repetition, kapil | Thread | [xsl] "strategy" question, Nestel, Frank |
Re: [xsl] Parameters with Xalan 1.2, by way of B. Tommie | Date | Re: [xsl] recursion questions, by way of B. Tommie |
Month |