Toon posts:

[XSLT]

Pagina: 1
Acties:
  • 29 views sinds 30-01-2008

Verwijderd

Topicstarter
Hoe kun je een kind element uit een element weergeven?

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<cd>
        <title box="1">Empire Burlesque</title>
        <artist>Bob Dylan</artist>
        <country>USA</country>
        <company>Columbia</company>
        <price>10.90</price>
        <year>1985</year>
    </cd>

    <cd>
        <title box="3">Down in the groove</title>
        <artist>Bob Dylan</artist>
        <country>USA</country>
        <company>Columbia</company>
        <price>11.50</price>
        <year>1988</year>
    </cd>


Nu wil ik graag dat de box nummers en de artiest worden weergegeven in een XSLT document..

Volgens mij moet dit met
code:
1
2
<xsl:value-of select = "catalog/cd/artist"/>
<xsl:value-of select = "catalog/cd/title/box"/>

  • .oisyn
  • Registratie: September 2000
  • Laatst online: 14:50

.oisyn

Moderator Devschuur®

Demotivational Speaker

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.


Dit topic is gesloten.