SAP ABAP实用技巧介绍系列之 template的match顺序
生活随笔
收集整理的這篇文章主要介紹了
SAP ABAP实用技巧介绍系列之 template的match顺序
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Created by Jerry Wang on Jun 26, 2014
用于測試的xml:
<catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> <cd> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <country>UK</country> <company>CBS Records</company> <price>9.90</price> <year>1988</year> </cd> </catalog> step1: 整個document 被匹配,輸出<html><body,當前執(zhí)行到<h2>My CD Collection</h2> ( 被藍色標識出來) step2:?<h2>My CD Collection</h2>添加到輸出,開始執(zhí)行?<xsl:apply-templates/>: step3: 從debugger callstack觀察到line 7的apply-templates 會trigger /catalog/cd/title node的匹配,進入line 14 p node: step4: 輸出p node的內(nèi)容(line 16 ) callstack: step5:?title node的匹配完成,繼續(xù)剩下的document 輸出: callstack從line 16 返回到line 0: 創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的SAP ABAP实用技巧介绍系列之 template的match顺序的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算机中mem指的是什么意思
- 下一篇: SAP ABAP实用技巧介绍系列之 XS