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

Distinct problem

Subject: Distinct problem
From: "Kreyßel, Conny" <Conny.Kreyssel@xxxxxxxxxxxxxx>
Date: Mon, 10 Dec 2001 10:44:18 +0100
distinct not working
Hello,

I would select a Nodeset with all "table"-Attributes from my XML.


my xml:

<QUERY version="1.0">
  <SELECT>
	<COL table="PCG_PZN">PZN</COL>
	<RESULTCOL table="PCG_Indikation" alias="igru" id="indigrup"
type="int">IndGr</RESULTCOL>
	<RESULTCOL table="PCG_Indikation"              id="indiname"
type="String">"Name"</RESULTCOL>
  </SELECT>
  <FROM>
        <TABLE>[zusätzliche Tabellen]</TABLE>
        <JOIN type="leftouter" left="PCG_PZN" right="JOIN PCG_FAM">
              <WHERE>
                    <COL table="PCG_PZN">Key_FAM</COL> = <COL
table="PCG_FAM">Key_FAM</COL> AND
                    <COL table="PCG_PZN">GBDatum</COL> = <COL
table="PCG_FAM">GBDatum</COL>
              </WHERE>
              <JOIN type="leftouter" right="PCG_Indikation">
                    <WHERE>
                          <COL table="PCG_FAM">HauptInd</COL> = <COL 
                    </WHERE>
              </JOIN>
        </JOIN>
  </FROM>
  <WHERE>
	<COL table="PCG_PZN">PZN</COL> = <PARAM id="pznid" type="int" />
  </WHERE>
</QUERY>


Like this:

<xsl:for-each select="///@table[not(@table = preceding::node()/@table)]">
    <xsl:value-of select="."/>,
</xsl:for-each> 

But this wont work. Any hints?


Best regards

Conny Kreyßel

INTER-FORUM Systemhaus GmbH
Sommerfelder Str. 120
04316 Leipzig
Germany

Tel.:  +49-341-25 92 00
Fax :  +49-341-25 92 020
WWW :  http://www.inter-forum.de/
eMail: mailto:conny.kreyssel@xxxxxxxxxxxxxx 

 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.