franky1988: Nach Häufigkeit sortieren

Hallo liebes Forum,

meine xml datei sind wie folgt aus:

<?xml version="1.0" encoding="ISO-8859-1"?>  
<?xml-stylesheet type="text/xsl" href="author3.xsl"?>  
<!DOCTYPE PubmedArticleSet PUBLIC "-//NLM//DTD PubMedArticle, 1st May 2013//EN" "http://www.ncbi.nlm.nih.gov/corehtml/query/DTD/pubmed_130501.dtd">  
<PubmedArticleSet>  
  
<PubmedArticle>  
    <MedlineCitation Status="Publisher" Owner="NLM">  
        <PMID Version="1">24091937</PMID>  
        <DateCreated>  
            <Year>2013</Year>  
            <Month>10</Month>  
            <Day>4</Day>  
        </DateCreated>  
        <Article PubModel="Print-Electronic">  
            <Journal>  
                <ISSN IssnType="Electronic">2168-6173</ISSN>  
                <JournalIssue CitedMedium="Internet">  
                    <PubDate>  
                        <Year>2013</Year>  
                        <Month>Oct</Month>  
                        <Day>3</Day>  
                    </PubDate>  
                </JournalIssue>  
                <Title>JAMA ophthalmology</Title>  
                <ISOAbbreviation>JAMA Ophthalmol</ISOAbbreviation>  
            </Journal>  
            <ArticleTitle>RYR1 Mutations as a Cause of Ophthalmoplegia, Facial Weakness, and Malignant Hyperthermia.</ArticleTitle>  
            <Pagination>  
                <MedlinePgn/>  
            </Pagination>  
            <ELocationID EIdType="doi">10.1001/jamaophthalmol.2013.4392</ELocationID>  
            <Abstract>  
                <AbstractText NlmCategory="UNLABELLED">IMPORTANCE Total ophthalmoplegia can result from ryanodine receptor 1 (RYR1) mutations without overt associated skeletal myopathy. Patients carrying RYR1 mutations are at high risk of developing malignant hyperthermia. Ophthalmologists should be familiar with these important clinical associations. OBJECTIVE To determine the genetic cause of congenital ptosis, ophthalmoplegia, facial paralysis, and mild hypotonia segregating in 2 pedigrees diagnosed with atypical Moebius syndrome or congenital fibrosis of the extraocular muscles. DESIGN, SETTING, AND PARTICIPANTS Clinical data including medical and family histories were collected at research laboratories at Boston Children's Hospital and Jules Stein Eye Institute (Engle and Demer labs) for affected and unaffected family members from 2 pedigrees in which patients presented with total ophthalmoplegia, facial weakness, and myopathy. INTERVENTION Homozygosity mapping and whole-exome sequencing were conducted to identify causative mutations in affected family members. Histories, physical examinations, and clinical data were reviewed. MAIN OUTCOME AND MEASURE Mutations in RYR1. RESULTS Missense mutations resulting in 2 homozygous RYR1 amino acid substitutions (E989G and R3772W) and 2 compound heterozygous RYR1 substitutions (H283R and R3772W) were identified in a consanguineous and a nonconsanguineous pedigree, respectively. Orbital magnetic resonance imaging revealed marked hypoplasia of extraocular muscles and intraorbital cranial nerves. Skeletal muscle biopsy specimens revealed nonspecific myopathic changes. Clinically, the patients' ophthalmoplegia and facial weakness were far more significant than their hypotonia and limb weakness and were accompanied by an unrecognized susceptibility to malignant hyperthermia. CONCLUSIONS AND RELEVANCE Affected children presenting with severe congenital ophthalmoplegia and facial weakness in the setting of only mild skeletal myopathy harbored recessive mutations in RYR1, encoding the ryanodine receptor 1, and were susceptible to malignant hyperthermia. While ophthalmoplegia occurs rarely in RYR1-related myopathies, these children were atypical because they lacked significant weakness, respiratory insufficiency, or scoliosis. RYR1-associated myopathies should be included in the differential diagnosis of congenital ophthalmoplegia and facial weakness, even without clinical skeletal myopathy. These patients should also be considered susceptible to malignant hyperthermia, a life-threatening anesthetic complication avoidable if anticipated presurgically.</AbstractText>  
            </Abstract>  
            <Affiliation>Department of Neurology, Boston Children's Hospital, Boston, Massachusetts2F. B. Kirby Neurobiology Center, Boston Children's Hospital, Boston, Massachusetts3Program in Genomics, Boston Children's Hospital, Boston, Massachusetts4Manton Center for Orphan Disease Research, Boston Children's Hospital, Boston, Massachusetts5Dubai Harvard Foundation for Medical Research, Boston, Massachusetts.</Affiliation>  
            <AuthorList>  
                <Author>  
                    <LastName>Shaaban</LastName>  
                    <ForeName>Sherin</ForeName>  
                    <Initials>S</Initials>  
                </Author>  
                <Author>  
                    <LastName>Ramos-Platt</LastName>  
                    <ForeName>Leigh</ForeName>  
                    <Initials>L</Initials>  
                </Author>  
                <Author>  
                    <LastName>Gilles</LastName>  
                    <ForeName>Floyd H</ForeName>  
                    <Initials>FH</Initials>  
                </Author>  
                <Author>  
                    <LastName>Chan</LastName>  
                    <ForeName>Wai-Man</ForeName>  
                    <Initials>WM</Initials>  
                </Author>  
                <Author>  
                    <LastName>Andrews</LastName>  
                    <ForeName>Caroline</ForeName>  
                    <Initials>C</Initials>  
                </Author>  
                <Author>  
                    <LastName>De Girolami</LastName>  
                    <ForeName>Umberto</ForeName>  
                    <Initials>U</Initials>  
                </Author>  
                <Author>  
                    <LastName>Demer</LastName>  
                    <ForeName>Joseph</ForeName>  
                    <Initials>J</Initials>  
                </Author>  
                <Author>  
                    <LastName>Engle</LastName>  
                    <ForeName>Elizabeth C</ForeName>  
                    <Initials>EC</Initials>  
                </Author>  
            </AuthorList>  
            <Language>ENG</Language>  
            <PublicationTypeList>  
                <PublicationType>JOURNAL ARTICLE</PublicationType>  
            </PublicationTypeList>  
            <ArticleDate DateType="Electronic">  
                <Year>2013</Year>  
                <Month>10</Month>  
                <Day>3</Day>  
            </ArticleDate>  
        </Article>  
        <MedlineJournalInfo>  
            <MedlineTA>JAMA Ophthalmol</MedlineTA>  
            <NlmUniqueID>101589539</NlmUniqueID>  
            <ISSNLinking>2168-6165</ISSNLinking>  
        </MedlineJournalInfo>  
    </MedlineCitation>  
    <PubmedData>  
        <History>  
            <PubMedPubDate PubStatus="entrez">  
                <Year>2013</Year>  
                <Month>10</Month>  
                <Day>5</Day>  
                <Hour>6</Hour>  
                <Minute>0</Minute>  
            </PubMedPubDate>  
            <PubMedPubDate PubStatus="pubmed">  
                <Year>2013</Year>  
                <Month>10</Month>  
                <Day>5</Day>  
                <Hour>6</Hour>  
                <Minute>0</Minute>  
            </PubMedPubDate>  
            <PubMedPubDate PubStatus="medline">  
                <Year>2013</Year>  
                <Month>10</Month>  
                <Day>5</Day>  
                <Hour>6</Hour>  
                <Minute>0</Minute>  
            </PubMedPubDate>  
        </History>  
        <PublicationStatus>aheadofprint</PublicationStatus>  
        <ArticleIdList>  
            <ArticleId IdType="pii">1745507</ArticleId>  
            <ArticleId IdType="doi">10.1001/jamaophthalmol.2013.4392</ArticleId>  
            <ArticleId IdType="pubmed">24091937</ArticleId>  
        </ArticleIdList>  
    </PubmedData>  
</PubmedArticle>  
  
 

dazu habe ich folgende XSL geschrieben

<?xml version="1.0" encoding="UTF-8"?>  
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">  
    <xsl:template match="/">  
        <html>  
            <body>  
                <h2>The authors of malignant hyperthermia</h2>  
                <table border="1">  
                 <tr bgcolor="#9acd32">  
                   <th>Authors Lastname</th>  
                </tr>  
                <xsl:for-each select="PubmedArticleSet/PubmedArticle/MedlineCitation/Article/AuthorList/Author">  
                <xsl:sort select="LastName"/>  
  
                  <tr>  
                    <td>  
                        <xsl:value-of select="LastName"/>  
                    </td>  
  
                </tr>  
                 </xsl:for-each>  
                </table>  
            </body>  
        </html>  
    </xsl:template>  
  
</xsl:stylesheet>

Nun werden mir die Nachnamen der Autoren nach Alphabet sortiert angezeigt. Ich möchte eigentlich nach der Häufigkeit sortieren. Leider weiß ich nicht genau wie ich das machen kann.

Liebe Grüße
Franky

  1. @@franky1988:

    nuqneH

    meine xml datei sind wie folgt aus:

    <PubMedPubDate PubStatus="entrez">

    <Year>2013</Year>
                    <Month>10</Month>
                    <Day>5</Day>
                    <Hour>6</Hour>
                    <Minute>0</Minute>
                </PubMedPubDate>

      
    Gibt es eines triftigen Grund, warum das Datum derart unterteilt ist anstatt dass das [ISO-8601-Datumsformat](http://www.w3.org/TR/NOTE-datetime) <PubMedPubDate PubStatus="entrez">2013-10-05T06:00</PubMedPubDate> verwendet wird?  
      
    Ensprechend bei DateCreated, PubDate, ArticleDate.  
      
    Und warum nicht einheitliche Bezeichnungen? Bei Schema.org hieße es dateCreated und datePublished.  
      
      
    
    > Nun werden mir die Nachnamen der Autoren nach Alphabet sortiert angezeigt. Ich möchte eigentlich nach der Häufigkeit sortieren. Leider weiß ich nicht genau wie ich das machen kann.  
      
    Schon mal nach ["xslt sort by count" gegooglet](https://www.google.de/search?q=xslt+sort+by+count)? Hilft vielleicht gleich der [erste Treffer](http://stackoverflow.com/questions/8199560/xslt-sorting-by-child-element-count)?  
      
    Qapla'
    
    -- 
    „Talente finden Lösungen, Genies entdecken Probleme.“ (Hans Krailsheimer)