Find unique attributes

Get new comments by email
You can cancel email alerts at anytime.
Comments (1)

Manjeet Khalsa in Netherlands

83 months ago

I am having a problem finding unique attributes. I am doing XSLT from last two weeks and I am new to this subject. Any help will be appeciated very much

My XML file looks like

<?xml version="1.0" encoding="UTF-8"?>
<dn_sql>
<file name="CQ350">
<sql type="SELECT">
<TABLE>TCQ_SNDR_PROFILE_select</TABLE>
<TABLE>TCQ_SSCC_VAL_METH_select</TABLE>
<TABLE>TCQ_STREAM_INFO_select</TABLE>
</sql>
<sql type="SELECT">
<TABLE>TCQ_STREAM_INFO_select</TABLE>
</sql>
<sql type="UPDATE">
<TABLE>TCQ_SNDR_PROFILE</TABLE>
</sql>
<sql type="INSERT">
<TABLE>TCQ_SNDR_PROFILE</TABLE>
</sql>
<sql type="INSERT">
<TABLE> TCQ_STREAM_INFO</TABLE>
</sql>
<sql type="DELETE">
<TABLE> TCQ_SSCC_VAL_METH </TABLE>
</sql>
<sql type="DELETE">
<TABLE>TCQ_VAL_FIELDS</TABLE>
</sql>
<sql type="DELETE">
<TABLE>TCQ_STREAM_INFO</TABLE>
</sql>
<sql type="DELETE">
<TABLE>TCQ_SNDR_ACCNT</TABLE>
</sql>
<sql type="DELETE">
<TABLE>TCQ_SNDR_ACCNT_no_wherecluase</TABLE>
</sql>
<sql type="SELECT">
<TABLE>TCQ_STREAM_INFO_select_no_where</TABLE>
</sql>
<sql type="SELECT">
<TABLE>TCQ_SNDR_PROFILE_select</TABLE>
<TABLE>TCQ_STREAM_INFO_select</TABLE>
</sql>
</file>
<file name="PY734">
<sql type="SELECT">
<TABLE>TCQ_SNDR_PROFILE_select_py734</TABLE>
<TABLE>TCQ_SSCC_VAL_METH_select_py734</TABLE>
<TABLE>TCQ_STREAM_INFO_select_py734</TABLE>
<TABLE>TCQ_STREAM_INFO_select</TABLE>
<TABLE>TCQ_STREAM_INFO_select</TABLE>
<TABLE>TCQ_STREAM_INFO_select</TABLE>
</sql>
</file>
</dn_sql>

My XSL looks like

<xsl:stylesheet xmlns:xsl="www.w3.org/1999/XSL/Transform" version="1.0" xmlns:redirect="xml.apache.org/xalan/redirect" extension-element-prefixes="redirect">
<xsl:output method="xml" indent="yes"/>
<xsl:preserve-space elements="*"/>
<!--==========================================================================================-->
<!--Match top node-->

<xsl:key name="tables-by-sql" match="sql" use="TABLE" />

<xsl:template match="//

- Was this comment helpful? Yes / No (1) Reply - Report abuse

» Sign in or create an account to comment on this topic.