Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6832633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:52:56+00:00 2026-05-26T22:52:56+00:00

I have a XML file that display the pubblications from an author with some

  • 0

I have a XML file that display the pubblications from an author with some article or inproceeding node. Something like this:

<dblp>
<inproceedings key="aaa" mdate="bbb">
<author>author1</author>
<author>author2</author>
<author>author3</author>
<author>author4</author>
<title>Title of pubblications</title>
<pages>12345</pages>
<year>12345</year>
<crossref>sometext</crossref>
<booktitle>sometext</booktitle>
<url>sometext</url>
<ee>sometext</ee>
</inproceedings>

<article key="aaa" mdate="bbb">
<author>author1</author>
<author>author2</author>
<title>Title of pubblications</title>
<pages>12345</pages>
<year>12345</year>
<crossref>sometext</crossref>
<booktitle>sometext</booktitle>
<url>sometext</url>
<ee>sometext</ee>
</article>

</dblp>

I have to create an XSL stylesheet to trasform this file in a .dot file that shows only the collaboration with the authors from all the pubblications. Like this:

author1--author2;
author1--author3;
author1--author4;
author2--author3;
author2--author4;
author3--author4;

This for the first pubblication and this for the second:

author1--author2;

I have to write all the connection by the author with no repeats. How can i do this?
I write something to display all the connection but i must delete the repeats. Can i solve using following-sibling?

<xsl:variable name="papers" select="dblp/*"/>
        <xsl:for-each select="$papers">
            <xsl:variable name="autori" select="author"/>
            <xsl:variable name="autori2" select="author"/>
            <xsl:for-each select="$autori">
                <xsl:variable name="i" select="node()"/>
                    <xsl:for-each select="$autori2">
                        <xsl:if test=".!=$i">
                            <xsl:value-of select="$i"/><xsl:text>--</xsl:text><xsl:value-of select="."/><xsl:text>;</xsl:text>
                        </xsl:if>
                    </xsl:for-each><xsl:text>&#xa;</xsl:text>
            </xsl:for-each>
        </xsl:for-each>

Thanks for the answers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:52:56+00:00Added an answer on May 26, 2026 at 10:52 pm
    <xsl:for-each select="author[position() != last()]">
      <xsl:variable name="a1" select="."/>
      <xsl:for-each select="following-sibling::author">
        <xsl:value-of select="concat($a1, '--', ., ';&#10;')"/>
      </xsl:for-each>
    </xsl:for-each>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML file that starts like this: <Elements name=Entities xmlns=XS-GenerationToolElements> I'll have
I have an XML file that looks like <?xml version='1.0' encoding='UTF-8'?> <root> <node name=foo1
I have an XML file that I would like to map some attributes of
So I have an XML file that looks a little like this <xml> <post>
I have an XML file containing some scientific text that I want to display
I have an XML file that I'm trying to serialize into an object. Some
I have an XML file that references an XSL file (like ya do) that
I have an xml file like this: <?xml version=1.0 encoding=UTF-8?> <todo> <list><item>first</item><item>second</item></list> <list><item>first</item><item>second</item></list> </todo>
I have an XML file that I am attempting to display solely by adding
I have an XML file that is bound to a listbox as below. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.