XSLT元素


元素可把一个模板应用于当前的元素或者当前元素的子节点。


元素

元素可把一个模板应用于当前的元素或者当前元素的子节点。

假如我们向 元素添加一个 select 属性,此元素就会仅仅处理与属性值匹配的子元素。我们可以使用 select 属性来规定子节点被处理的顺序。

请看下面的 XSL 样式表:

实例

   Empire Burlesque Bob Dylan USA Columbia 10.90 1985   Hide your heart Bonnie Tyler UK CBS Records 9.90 1988   Greatest Hits Dolly Parton USA RCA 9.90 1982   Still got the blues Gary Moore UK Virgin records 10.20 1990   Eros Eros Ramazzotti EU BMG 9.90 1997   One night only Bee Gees UK Polydor 10.90 1998   Sylvias Mother Dr.Hook UK CBS 8.10 1973   Maggie May Rod Stewart UK Pickwick 8.50 1990   Romanza Andrea Bocelli EU Polydor 10.80 1996   When a man loves a woman Percy Sledge USA Atlantic 8.70 1987   Black angel Savage Rose EU Mega 10.90 1995   1999 Grammy Nominees Many USA Grammy 10.20 1999   For the good times Kenny Rogers UK Mucik Master 8.70 1995   Big Willie style Will Smith USA Columbia 9.90 1997   Tupelo Honey Van Morrison UK Polydor 8.20 1971   Soulsville Jorn Hoel Norway WEA 7.90 1996   The very best of Cat Stevens UK Island 8.90 1990   Stop Sam Brown UK A and M 8.90 1988   Bridge of Spies T`Pau UK Siren 7.90 1987   Private Dancer Tina Turner UK Capitol 8.90 1983   Midt om natten Kim Larsen EU Medley 7.80 1983   Pavarotti Gala Concert Luciano Pavarotti UK DECCA 9.90 1991   The dock of the bay Otis Redding USA Atlantic 7.90 1987   Picture book Simply Red EU Elektra 7.20 1985   Red The Communards UK London 7.80 1987   Unchain my heart Joe Cocker USA EMI 8.20 1987  

运行实例 »

点击 "运行实例" 按钮查看在线实例