Subject: [xsl] i want no double xml records to be viewed From: "Nico Noordhoek" <noordhoek@xxxxxxxx> Date: Mon, 21 Jul 2003 08:38:05 +0200 |
Hello, Please take a look at my problem. I have xml-records with a tag that have the same content, like this tag: <PPN>12345</PPN>, I want just one record to be shown in my ie-explorer, is it possible to add a line in my stylesheet to prevent this? Nico Noordhoek --------------- THIS IS A PART OF MY STYLESHEET <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <xsl:for-each select="//record" order-by="-ppn"> PPN: <xsl:value-of select="ppn" /><br /> <!--<the ppn tag--< Titel: <xsl:value-of select="titel" /><br /> </xsl:for-each> </xsl:template> </xsl:stylesheet> THIS IS A PART OF MY XML-FILE, with 4 records that has a <ppn>with the same content</ppn> <?xml version="1.0" encoding="utf-8" ?> <?xml-stylesheet href="vraag.xsl" type="text/xsl" ?> <record> <seqnr>1</seqnr> <sortkey>1293/152005658301X H.S.T.Poetri Satrija Dewi atawa Re... <main>1293/1520</main> <ppn>05658301X</ppn><titel>Poetri Satrija Dewi atawa Resia Madj... </record> <record> <seqnr>2</seqnr> <sortkey>1293/1520088969789 H.S.T.Rasia Madjapait atawa Poetri ... <main>1293/1520</main> <ppn>05658301X</ppn><titel>Rasia Madjapait atawa Poetri Satrija ... </record> <record> <seqnr>3</seqnr> <sortkey>1619146723929 Njoo Cheong SengBatavia 16191932 </sor <main>1619</main> <ppn>05658301X</ppn><titel>Batavia 1619 / oleh Njoo Cheong Seng.... </record> <record> <seqnr>4</seqnr> <sortkey>1625093403143 K.K.H.Tiga panglima prang1914 </sortkey <main>1625</main> <ppn>05658301X</ppn><titel>Tiga panglima prang / [karangannja Al....... </record> _____________________________________________________________________________________________ This outbound message from KPN has been checked for all known viruses by KPN IV-Scan, powered by MessageLabs. _____________________________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:for-each and document, Jim Hart | Thread | RE: [xsl] i want no double xml reco, Jarno . Elovirta |
Re: [xsl] rss, in all its guises, Elliotte Rusty Harol | Date | RE: [xsl] rss, in all its guises, David . Pawson |
Month |