cancel
Showing results for 
Search instead for 
Did you mean: 

xslt action

Former Member
0 Kudos

hi there,

I have to get distinct rows in a illumiator-xml and try it with the following xslt:

<xsl:key name="testkkey" match="Row" use="INSPOPER"/>

<xsl:template match="/">

<OUTPUT>

<xsl:for-each select="Rowsets/Rowset/Row[count(. | key('testkey', INSPOPER)[1]) = 1]">

<INSPOPER>

<xsl:value-of select="INSPOPER"/>

</INSPOPER>

</xsl:for-each>

</OUTPUT>

</xsl:template>

with altova xmlspy this worked fine, but in xmii I get all listings back no error message?

Any idea?

regards

Karsten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Karsten,

I can't really help you why it is not working. However, would it help you to use the builtin action "Distinct Value Extractor" from the XML Functions? This action extracts the distinct values from an Illum Rowset. If you only need distinct key values, this might help.

Michael

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

thanks for your help.

The distinct funtionality was only a part of my problem so the distinct action block will not reallly help.

But I solved it, The xpath-funtion Count() did not work the same way, the altova does. So I write some if/then and thats it.

regards,Karsten

jcgood25
Active Contributor
0 Kudos

The xalan distinct call is used in the /XMII/Stylesheets/RowToColumnTransform.xsl sample - have you tried emulating this syntax in your use case?