Advertisement

05.16.2007 at 12:32PM PDT, ID: 22576589
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Printing Unique Values

Asked by gops1 in Extensible Stylesheet Language Transformation (XSLT), Extensible Markup Language (XML)

Tags: , , ,

I am using XSL to transform my xmls. Now there are two things to be done for my page that needs to go to my meta data tags

Here is my XML structure:

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="model.xsl"?>
<model
      TYPE="logical"
      MDL_ID="1">
      <MDL_NM>
            <![CDATA[FDW Model]]>
      </MDL_NM>
      <MDL_BUS_AREA_NM>
            <![CDATA[Global Finance - FINFDW]]>
      </MDL_BUS_AREA_NM>
      <MDL_DESC_TX>
        <![CDATA[Example description text goes here]]>
      </MDL_DESC_TX>
      <entities>
            <entity
                  ENT_DEPN_TYPE_CD="1"
                  ENT_LOGIC_ONLY_IN="Y"
                  ENT_ID="1"
                  MDR_STS_CD="Active"
                  MDR_VER_ID="0.1">
                  <ENT_NM>
                        <![CDATA[ACCESS_LOG]]>
                  </ENT_NM>
                  <ENT_BUS_AREA_NM>
                        <![CDATA[Chase Card Services - CARD]]>
                  </ENT_BUS_AREA_NM>
                  <MDL_NM>
                        <![CDATA[FDW Model]]>
                  </MDL_NM>
                  <ENT_DESC_TX>
                        <![CDATA[This table logs to user access changes. Whenever access is granted or revoked from a user an entry is logged into this table ]]>
                  </ENT_DESC_TX>

                  <ENT_NOTE_1 seq="0">
                  <![CDATA[Entity 0 note 0]]>
                  </ENT_NOTE_1>
                  <ENT_NOTE_2 seq="1">
                  <![CDATA[Entity 0 note 1]]>
                  </ENT_NOTE_2>
                  <ENT_NOTE_3 seq="2">
                  <![CDATA[Entity 0 note 2]]>
                  </ENT_NOTE_3>

                  <attributes>
                        <attribute
                              ATTR_LOGIC_ONLY_IN="Logical/Physical both"
                              ALOW_VALUE_MAX_VALUE_TX="100"
                              ALOW_VALUE_MIN_VALUE_TX="10"
                              ATTR_PK_IN="Y"
                              ATTR_FK_IN="Y"
                              DATA_DOMN_GNRL_DATA_TYPE="tt"
                              DATA_DOMN_PREC_SIZE_CT="1"
                              ATTR_RQR_IN="Y"
                              ATTR_ID="1"
                              ENT_ID="1"
                              BUS_ELE_ID="1"
                              DATA_DOMN_ID="1" >
                              
                              <ENT_NM>
                                    <![CDATA[FDW Model]]>
                              </ENT_NM>

                              <MDL_NM>
                                    <![CDATA[FDW Model]]>
                              </MDL_NM>
                              <ATTR_NM>
                                    <![CDATA[Attribute 0]]>
                              </ATTR_NM>

                              <BUS_ELE_NM>
                                    <![CDATA[Business Element Name]]>
                              </BUS_ELE_NM>
                              <ATTR_BUS_AREA_NM>
                                    <![CDATA[Global Finance - FINFDW]]>
                              </ATTR_BUS_AREA_NM>
                              <DATA_DOMN_NM>
                                    <![CDATA[mod domain]]>
                              </DATA_DOMN_NM>
                              <DATA_DOMN_DESC_TX>
                                    <![CDATA[Data Domain Description]]>
                              </DATA_DOMN_DESC_TX>

                              <ATTR_NOTE_TX>
                                    <![CDATA[Entity 0 Attribute 0 Note]]>
                              </ATTR_NOTE_TX>
                              <ATTR_DESC_TX>
                                    <![CDATA[access log id is a surrogate key for the access table. This is an integer key that is sequentially assigned as needed for this dimension. That is, it is not a smart key in any way. Also known as artificial key, integer key, meaningless key, nonnatural key and synthetic key. This attribute uniquely identifies a row in the associated dimension.]]>
                              </ATTR_DESC_TX>
                              <related.valid.values>
                                    <related.valid.value
                                          ALOW_VALUE_CD="ccc" ALOW_VALUE_DFLT_IN="N" ALOW_VALUE_EFF_DT="1999-02-03-16.20.38.428000" ALOW_VALUE_END_DT="1999-02-03-16.20.38.428000">
                                          <ALOW_VALUE_NM>
                                                <![CDATA[Attribute 0 valid value]]>
                                          </ALOW_VALUE_NM>
                                          <ALOW_VALUE_DESC_TX>
                                                <![CDATA[Attribute 0 valid value Description]]>
                                          </ALOW_VALUE_DESC_TX>
                                    </related.valid.value>
                              </related.valid.values>
                              <related.table.columns>
                                    <related.table.column
                                          TBL_ID="1"
                                          COL_ID="1"
                                          TBL_COL_FK_IN="true"
                                          DATA_TYPE_NM="INTEGER"
                                          COL_DATA_LEN_CT="length"
                                          COL_PREC_LEN_CT="precision"
                                          TBL_COL_PK_IN="true"
                                          TBL_COL_RQR_IN="true"
                                          DATA_DOMN_ID="1"
                                          MDL_ID="1">
                                          <COL_NM>
                                                <![CDATA[accs_log_id]]>
                                          </COL_NM>
                                          <TBL_NM>
                                                <![CDATA[ACCS_LOG]]>
                                          </TBL_NM>
                                          <DATA_DOMN_NM>
                                                <![CDATA[mod domain]]>
                                          </DATA_DOMN_NM>

                                    </related.table.column>
                              </related.table.columns>
                        </attribute>
                  </attributes>
            </entity>
      </entities>
</model>

1. First thing is I have to extract all entity names i.e. under <entity> node
    <ENT_NM>
            <![CDATA[ACCESS_LOG]]>
     </ENT_NM>
and the important thing is I should take only the unique values

2. Second one is again on the entity name, I should print the begining letter of all entity name which I am already doing, but its again, I should print only the unique alphabets. For example, if there are two antity whose starting letter is "A", it should print only once.

Please help Start Free Trial
[+][-]05.16.2007 at 01:10PM PDT, ID: 19103895

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2007 at 01:13PM PDT, ID: 19103920

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2007 at 01:18PM PDT, ID: 19103948

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2007 at 01:22PM PDT, ID: 19103977

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2007 at 01:29PM PDT, ID: 19104021

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2007 at 01:57PM PDT, ID: 19104241

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible Stylesheet Language Transformation (XSLT), Extensible Markup Language (XML)
Tags: unique, print, xsl, values
Sign Up Now!
Solution Provided By: Gertone
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.20.2007 at 03:17AM PDT, ID: 19122714

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2007 at 03:40AM PDT, ID: 19122743

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2007 at 08:40PM PDT, ID: 19125151

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2007 at 11:01PM PDT, ID: 19125429

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2007 at 04:24AM PDT, ID: 19126166

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2007 at 09:08AM PDT, ID: 19127825

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42