display problem with xslt

Discussion in 'XML' started by Piet L., Mar 4, 2005.

  1. Piet L.

    Piet L. Guest

    Hey,

    I have a xslt file (see below) and now I would like to generate an output
    like:
    (I've deleted the real info)
    * a
    By aaa
    * b
    By bbb
    * c
    By aaa, ccc


    How do I do this?


    <?xml version="1.0" encoding="UTF-8"?>
    <publications>
    <select>
    <publication>
    <title_1>a</title_1>
    <publication_id></publication_id>
    <person_id>aaa</person_id>
    <name></name>
    <email></email>
    </publication>
    <publication>
    <title_1>b</title_1>
    <publication_id></publication_id>
    <person_id>bbb</person_id>
    <name></name>
    <email></email>
    </publication>
    <publication>
    <title_1>c</title_1>
    <publication_id></publication_id>
    <person_id>aaa</person_id>
    <name></name>
    <email></email>
    <publication_id></publication_id>
    <person_id>ccc</person_id>
    <name></name>
    <email></email>
    </publication>
    </select>
    </publication>
     
    Piet L., Mar 4, 2005
    #1
    1. Advertising

  2. Read about xsl:key and the key() function.

    Then use this knowledge.


    Cheers,
    Dimitre Novatchev

    "Piet L." <> wrote in message
    news:...
    > Hey,
    >
    > I have a xslt file (see below) and now I would like to generate an output
    > like:
    > (I've deleted the real info)
    > * a
    > By aaa
    > * b
    > By bbb
    > * c
    > By aaa, ccc
    >
    >
    > How do I do this?
    >
    >
    > <?xml version="1.0" encoding="UTF-8"?>
    > <publications>
    > <select>
    > <publication>
    > <title_1>a</title_1>
    > <publication_id></publication_id>
    > <person_id>aaa</person_id>
    > <name></name>
    > <email></email>
    > </publication>
    > <publication>
    > <title_1>b</title_1>
    > <publication_id></publication_id>
    > <person_id>bbb</person_id>
    > <name></name>
    > <email></email>
    > </publication>
    > <publication>
    > <title_1>c</title_1>
    > <publication_id></publication_id>
    > <person_id>aaa</person_id>
    > <name></name>
    > <email></email>
    > <publication_id></publication_id>
    > <person_id>ccc</person_id>
    > <name></name>
    > <email></email>
    > </publication>
    > </select>
    > </publication>
     
    Dimitre Novatchev, Mar 4, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stylus Studio
    Replies:
    0
    Views:
    737
    Stylus Studio
    Aug 3, 2004
  2. Benjamin Hillsley
    Replies:
    3
    Views:
    1,732
    Dimitre Novatchev
    Sep 25, 2003
  3. ted
    Replies:
    1
    Views:
    648
    Laurens
    Jan 26, 2004
  4. Replies:
    2
    Views:
    735
    Henry S. Thompson
    Oct 19, 2005
  5. Replies:
    4
    Views:
    702
Loading...

Share This Page