2013-02-19 60 views
2

編輯爲XML測試節點是否爲空或使用模板匹配包含NULL

我想弄清楚如何測試節點是否存在或包含使用模板匹配的NULL字。目前,我在我的匹配模板中使用了< xsl:choose> test。有沒有更有效的方法來做這個測試?

在XML中,如果節點沒有eixt或包含單詞NULL,那麼我想完全跳過該節點並打印出一個說明爲什麼該節點不正確的說法(即「TITLE不存在」或「 CONTENT是NULL「)。

在XML中,我有第三個和第四個節點不應該顯示任何內容,而是打印一個聲明,說明爲什麼不顯示內容。

這裏是我用來測試的XML的例子:

<?xml version="1.0" encoding="utf-8"?> 
<FIGURES> 
    <FIGURE> 
    <TITLE>Title 1</TITLE> 
    <DESC>Description 1</DESC> 
    <CONTENT>Content 1</CONTENT> 
    </FIGURE> 
    <FIGURE> 
    <TITLE>Title 2</TITLE> 
    <DESC>Description 2</DESC> 
    <CONTENT>Content 2</CONTENT> 
    </FIGURE> 
    <FIGURE> 
    <DESC>Description 3</DESC> 
    <CONTENT>Content 3</CONTENT> 
    </FIGURE> 
    <FIGURE> 
    <TITLE>Title 4</TITLE> 
    <DESC>Description 4</DESC> 
    <CONTENT>NULL</CONTENT> 
    </FIGURE>  
    <FIGURE> 
    <TITLE>Title 5</TITLE> 
    <DESC>Description 5</DESC> 
    <CONTENT>Content 5</CONTENT> 
    </FIGURE> 
</FIGURES> 

這裏是我使用XSLT:

<?xml version="1.0" encoding="utf-8"?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
<xsl:output method="html" encoding="utf-8"/> 

<xsl:template match="/"> 
    <div class="container"> 
    <xsl:apply-templates /> 
</div> 
</xsl:template> 

<xsl:template match="FIGURES"> 
    <ul class="list"> 
    <xsl:apply-templates select="FIGURE" mode="titles" /> 
    </ul> 
    <div class="content"> 
    <xsl:apply-templates select="FIGURE" mode="content" /> 
    </div> 
</xsl:template> 

<xsl:template match="FIGURE" mode="titles"> 
    <xsl:choose> 
    <!-- Check to see if the TITLE field is empty --> 
    <xsl:when test="translate(./TITLE,' ', '') = ''">The TITLE node is empty</xsl:when>      
    <!-- Check to see if the TITLE field is NULL --> 
    <xsl:when test="normalize-space(./TITLE) = 'NULL'">The TITLE node is NULL</xsl:when> 
    <!-- Check to see if the CONTENT field is empty --> 
    <xsl:when test="translate(./CONTENT,' ', '') = ''">The CONTENT node is empty</xsl:when> 
    <!-- Check to see if the CONTENT field is NULL --> 
    <xsl:when test="normalize-space(./CONTENT) = 'NULL'">The CONTENT node is NULL</xsl:when>            
    <xsl:otherwise> 
     <li> 
     <a href="#section-{position()}"> 
      <h3><xsl:value-of select="TITLE" /></h3> 
     </a> 
     <p><xsl:value-of select="DESC" /></p> 
     </li> 
    </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

<xsl:template match="FIGURE" mode="content"> 
    <xsl:choose> 
    <!-- Check to see if the TITLE field is empty --> 
    <xsl:when test="translate(./TITLE,' ', '') = ''">The TITLE node is empty</xsl:when>      
    <!-- Check to see if the TITLE field is NULL --> 
    <xsl:when test="normalize-space(./TITLE) = 'NULL'">The TITLE node is NULL</xsl:when> 
    <!-- Check to see if the CONTENT field is empty --> 
    <xsl:when test="translate(./CONTENT,' ', '') = ''">The CONTENT node is empty</xsl:when> 
    <!-- Check to see if the CONTENT field is NULL --> 
    <xsl:when test="normalize-space(./CONTENT) = 'NULL'">The CONTENT node is NULL</xsl:when>            
    <xsl:otherwise> 
     <div id="section-{position()}"> 
     <p><xsl:value-of select="CONTENT" /></p> 
     </div> 
    </xsl:otherwise> 
    </xsl:choose> 
</xsl:template> 

</xsl:stylesheet> 

謝謝。

回答

1

這將基本上產生與您的XSLT相同的結果並避免使用xsl:choose。請試一試:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    <xsl:output method="html" encoding="utf-8"/> 

    <xsl:template match="/"> 
    <div class="container"> 
     <xsl:apply-templates /> 
    </div> 
    </xsl:template> 

    <xsl:template match="FIGURES"> 
    <ul class="list"> 
     <xsl:apply-templates select="FIGURE" mode="titles" /> 
    </ul> 
    <div class="content"> 
     <xsl:apply-templates select="FIGURE" mode="content" /> 
    </div> 
    </xsl:template> 

    <xsl:template match="FIGURE" mode="titles"> 
    <li> 
     <a href="#section-{position()}"> 
     <h3> 
      <xsl:value-of select="TITLE" /> 
     </h3> 
     </a> 
     <p> 
     <xsl:value-of select="DESC" /> 
     </p> 
    </li> 
    </xsl:template> 

    <xsl:template 
     match="FIGURE[ *[self::TITLE or self::CONTENT] 
         [not(normalize-space(.)) or normalize-space(.) = 'NULL'] 
        ]" 
     mode="titles"> 
    <xsl:apply-templates select="TITLE | CONTENT" /> 
    </xsl:template> 

    <xsl:template match="FIGURE" mode="content"> 
    <div id="section-{position()}"> 
     <p> 
     <xsl:value-of select="CONTENT" /> 
     </p> 
    </div> 
    </xsl:template> 

    <xsl:template 
     match="FIGURE[ *[self::TITLE or self::CONTENT] 
         [not(normalize-space(.)) or normalize-space(.) = 'NULL'] 
        ]" 
     mode="content"> 
    <xsl:apply-templates select="TITLE | CONTENT" /> 
    </xsl:template> 

    <xsl:template match="TITLE | CONTENT" /> 

    <xsl:template match="*[self::TITLE or self::CONTENT][not(normalize-space(.))]"> 
    <xsl:value-of select="concat('The ', local-name(), ' node is empty')"/> 
    </xsl:template> 

    <xsl:template match="*[self::TITLE or self::CONTENT][normalize-space(.) = 'NULL']"> 
    <xsl:value-of select="concat('The ', local-name(), ' node is NULL')"/> 
    </xsl:template> 
</xsl:stylesheet> 

Please give it a try. 
+0

對你也是如此。這個解決方案適用於我原來的問題,但是我在發佈該問題時犯了一個錯誤。當XML節點不包含任何值時,它不會顯示。例如,如果沒有值,它將不會顯示爲<TITLE>。該節點根本就不存在於XML中。當或<CONTENT>節點不存在時,我一直堅持要讓此解決方案起作用。對不起,在我的XML例子中不適當的發佈。我編輯它以反映情況。 – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1282310/">Mdd</a></span> <span>2013-02-20 22:35:06</span> </small> </span> </p> </div> </div> </div> </div> </div> </article> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="1038284119" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">1<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p><strong>這裏是一個較短的轉型產生相同的結果,並且不使用任何條件XSLT指令</strong>:</p> <pre><code class="prettyprint-override"><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="/*"> <div class="container"> <ul class="list"> <xsl:apply-templates/> </ul> <div class="content"> <xsl:apply-templates mode="content"/> </div> </div> </xsl:template> <xsl:template match="FIGURE"> <li> <a href="#section-{position()}"> <xsl:apply-templates select="TITLE"/> </a> <xsl:apply-templates select="DESC"/> </li> </xsl:template> <xsl:template match="TITLE"> <h3><xsl:value-of select="."/></h3> </xsl:template> <xsl:template match="DESC"> <p><xsl:value-of select="."/></p> </xsl:template> <xsl:template match="FIGURE[*[. = 'NULL' or not(normalize-space())]]"> <xsl:apply-templates select="*[. = 'NULL' or not(normalize-space())]"/> </xsl:template> <xsl:template match="FIGURE/*[. = 'NULL']"> The <xsl:value-of select="name()"/> node is NULL. </xsl:template> <xsl:template match="FIGURE/*[not(normalize-space())]"> The <xsl:value-of select="name()"/> node is empty. </xsl:template> <xsl:template match="FIGURE[not(*[. = 'NULL' or not(normalize-space())])]" mode="content"> <div id="section-{position()}"> <p><xsl:value-of select="CONTENT"/></p> </div> </xsl:template> <xsl:template match="FIGURE" mode="content"/> </xsl:stylesheet> </code></pre> <p><strong>當這種轉化應用上所提供的XML文檔:</strong></p> <pre><code class="prettyprint-override"><FIGURES> <FIGURE> <TITLE>Title 1</TITLE> <DESC>Description 1</DESC> <CONTENT>Content 1</CONTENT> </FIGURE> <FIGURE> <TITLE>Title 2</TITLE> <DESC>Description 2</DESC> <CONTENT>Content 2</CONTENT> </FIGURE> <FIGURE> <TITLE></TITLE> <DESC>Description 3</DESC> <CONTENT>Content 3</CONTENT> </FIGURE> <FIGURE> <TITLE>Title 4</TITLE> <DESC>Description 4</DESC> <CONTENT>NULL</CONTENT> </FIGURE> <FIGURE> <TITLE>Title 5</TITLE> <DESC>Description 5</DESC> <CONTENT>Content 5</CONTENT> </FIGURE> </FIGURES> </code></pre> <p><strong>產生與最初提供的轉換相同的結果:</strong></p> <pre><code class="prettyprint-override"><div class="container"> <ul class="list"> <li> <a href="#section-1"> <h3>Title 1</h3> </a> <p>Description 1</p> </li> <li> <a href="#section-2"> <h3>Title 2</h3> </a> <p>Description 2</p> </li> The TITLE node is empty. The CONTENT node is NULL. <li> <a href="#section-5"> <h3>Title 5</h3> </a> <p>Description 5</p> </li> </ul> <div class="content"> <div id="section-1"> <p>Content 1</p> </div> <div id="section-2"> <p>Content 2</p> </div> <div id="section-5"> <p>Content 5</p> </div> </div> </div> </code></pre> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/14971801">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2013-02-20 03:31:52</span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> <!-- comments --> <div class="comments"> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+0</span></div> <div class="col-lg-11"> <p class="commenttext">我很抱歉,我在最初發布的XML中犯了一個錯誤。我編輯了這個問題和XML來反映這一點。我一直在試圖預測不包含值的<TITLE>節點,但實際上<TITLE>節點將不存在,如果它沒有值。我認爲這就是爲什麼我一直遇到這種解決方案,否則工作。 – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1282310/">Mdd</a></span> <span>2013-02-20 22:32:36</span> </small> </span> </p> </div> </div> </div> </div> </div> </article> </div> <div class="clearfix"> </div> <div class="relative-box"> <div class="relative">相關問題</div> <ul class="relative_list"> <li> 1. <a href="http://hk.uwenku.com/question/p-tcinicbe-bbw.html" target="_blank" title="XSLT測試XML節點是否包含另一個XML節點?"> XSLT測試XML節點是否包含另一個XML節點? </a> </li> <li> 2. <a href="http://hk.uwenku.com/question/p-fphkkcwv-bmw.html" target="_blank" title="XSLT 2.0 - 使用包含模板匹配()"> XSLT 2.0 - 使用包含模板匹配() </a> </li> <li> 3. <a href="http://hk.uwenku.com/question/p-tuyfmeop-do.html" target="_blank" title="模板匹配包含字符串或應用模板?"> 模板匹配包含字符串或應用模板? </a> </li> <li> 4. <a href="http://hk.uwenku.com/question/p-mybadvwa-bns.html" target="_blank" title="Python測試字符串是否與模板值相匹配"> Python測試字符串是否與模板值相匹配 </a> </li> <li> 5. <a href="http://hk.uwenku.com/question/p-zpexucwo-dg.html" target="_blank" title="模板匹配和測試是否存在語法差異?"> 模板匹配和測試是否存在語法差異? </a> </li> <li> 6. <a href="http://hk.uwenku.com/question/p-hfzecysu-dh.html" target="_blank" title="測試是否getJSONArray爲空或不是"> 測試是否getJSONArray爲空或不是 </a> </li> <li> 7. <a href="http://hk.uwenku.com/question/p-uaeosyuu-xv.html" target="_blank" title="XSLT模板匹配的動態節點"> XSLT模板匹配的動態節點 </a> </li> <li> 8. <a href="http://hk.uwenku.com/question/p-aowxrbgo-bbg.html" target="_blank" title="XSL模板匹配精確節點"> XSL模板匹配精確節點 </a> </li> <li> 9. <a href="http://hk.uwenku.com/question/p-bmpaxznk-rv.html" target="_blank" title="如何測試XML包含節點"> 如何測試XML包含節點 </a> </li> <li> 10. <a href="http://hk.uwenku.com/question/p-xvsrenxi-gr.html" target="_blank" title="測試包含空格字符的uri「當前節點列表爲空」"> 測試包含空格字符的uri「當前節點列表爲空」 </a> </li> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6208739752673518" data-ad-slot="4606349252"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <li> 11. <a href="http://hk.uwenku.com/question/p-panycthz-uh.html" target="_blank" title="如何測試文本節點是否爲空?"> 如何測試文本節點是否爲空? </a> </li> <li> 12. <a href="http://hk.uwenku.com/question/p-mxdhbtpy-yw.html" target="_blank" title="使用「包含」斯卡拉匹配Scala中測試列表"> 使用「包含」斯卡拉匹配Scala中測試列表 </a> </li> <li> 13. <a href="http://hk.uwenku.com/question/p-ywiznudm-pq.html" target="_blank" title="Django測試客戶端響應包含模板的空列表?"> Django測試客戶端響應包含模板的空列表? </a> </li> <li> 14. <a href="http://hk.uwenku.com/question/p-xcowfela-bad.html" target="_blank" title="xslt測試/匹配當前節點與另一個節點"> xslt測試/匹配當前節點與另一個節點 </a> </li> <li> 15. <a href="http://hk.uwenku.com/question/p-wddinucn-wo.html" target="_blank" title="XSLT:使用多個或'模板匹配來應用模板"> XSLT:使用多個或'模板匹配來應用模板 </a> </li> <li> 16. <a href="http://hk.uwenku.com/question/p-gkwolyqo-bem.html" target="_blank" title="如何測試節點是否包含特定的字符串或字符作爲其文本值?"> 如何測試節點是否包含特定的字符串或字符作爲其文本值? </a> </li> <li> 17. <a href="http://hk.uwenku.com/question/p-bqcpfveb-qp.html" target="_blank" title="檢查url是否匹配模板"> 檢查url是否匹配模板 </a> </li> <li> 18. <a href="http://hk.uwenku.com/question/p-rsfxqpgb-ge.html" target="_blank" title="測試一個單詞是否僅包含指定的音節"> 測試一個單詞是否僅包含指定的音節 </a> </li> <li> 19. <a href="http://hk.uwenku.com/question/p-cbkmtltl-bkv.html" target="_blank" title="如何檢測節點是否包含重要信息?"> 如何檢測節點是否包含重要信息? </a> </li> <li> 20. <a href="http://hk.uwenku.com/question/p-gaadxsez-kv.html" target="_blank" title="Recusively測試是否包含在字典"> Recusively測試是否包含在字典 </a> </li> <li> 21. <a href="http://hk.uwenku.com/question/p-teksbfsw-se.html" target="_blank" title="是否包含運行單元測試?"> 是否包含運行單元測試? </a> </li> <li> 22. <a href="http://hk.uwenku.com/question/p-zemmsbeo-xp.html" target="_blank" title="JsonPath語法爲「不包含」或否定匹配?"> JsonPath語法爲「不包含」或否定匹配? </a> </li> <li> 23. <a href="http://hk.uwenku.com/question/p-nzsejxat-dc.html" target="_blank" title="除了其他測試在perl模式匹配之外還包括一個空白測試匹配"> 除了其他測試在perl模式匹配之外還包括一個空白測試匹配 </a> </li> <li> 24. <a href="http://hk.uwenku.com/question/p-fsxdwxkj-nw.html" target="_blank" title="檢查對象是否爲空或NULL"> 檢查對象是否爲空或NULL </a> </li> <li> 25. <a href="http://hk.uwenku.com/question/p-dirzthzn-tc.html" target="_blank" title="NULL與模板參數不匹配?"> NULL與模板參數不匹配? </a> </li> <li> 26. <a href="http://hk.uwenku.com/question/p-svwlqchn-gn.html" target="_blank" title="django不能爲null模型字段包含null的空錯True-"> django不能爲null模型字段包含null的空錯True- </a> </li> <li> 27. <a href="http://hk.uwenku.com/question/p-cfjrvaaz-cb.html" target="_blank" title="如何測試HTML正文是否包含空標籤"> 如何測試HTML正文是否包含空標籤 </a> </li> <li> 28. <a href="http://hk.uwenku.com/question/p-cjhsolsi-oy.html" target="_blank" title="xsl檢查根節點是否包含任何子節點"> xsl檢查根節點是否包含任何子節點 </a> </li> <li> 29. <a href="http://hk.uwenku.com/question/p-gxbytwtd-uc.html" target="_blank" title="使用XPath檢查肥皂信封是否包含子節點"> 使用XPath檢查肥皂信封是否包含子節點 </a> </li> <li> 30. <a href="http://hk.uwenku.com/question/p-diufmqru-bu.html" target="_blank" title="檢查節點是否包含使用HtmlAgilityPack的字符串"> 檢查節點是否包含使用HtmlAgilityPack的字符串 </a> </li> </ul> </div> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-6208739752673518" data-ad-slot="1575177025"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="padding-top-10"></div> </div> </div> <script type="text/javascript" src="http://img.uwenku.com/uwenku/script/side.js?t=1644592048261"></script> <script type="text/javascript" src="http://img.uwenku.com/uwenku/plugin/highlight/highlight.pack.js"></script> <link href="http://img.uwenku.com/uwenku/plugin/highlight/styles/docco.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript"> $('pre').each(function(i, e) { hljs.highlightBlock(e, "<span class='indent'> </span>", false) }); </script> <div class="col-lg-3 col-md-4 col-sm-5"> <div id="rightTop"> <div class="row"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="5415218910" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="row sidebar panel panel-default"> <div class="panel-heading font-bold"> 最新問題 </div> <div class="m-b-sm m-t-sm clearfix"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.uwenku.com/question/p-wszjnyuy-d.html" target="_blank" title="標籤變量循環"> 標籤變量循環 </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.uwenku.com/question/p-qyjrkuqo-cc.html" target="_blank" title="是不是將屬性設置爲等於有效的HTML值?"> 是不是將屬性設置爲等於有效的HTML值? </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.uwenku.com/question/p-rcmymcwv-bmd.html" target="_blank" title="如何實現全局密鑰監聽器?"> 如何實現全局密鑰監聽器? </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.uwenku.com/question/p-oluxqrwc-bkr.html" target="_blank" title="Laravel 5廣播事件到通配符通道使用節點和Laravel ECHO-服務器"> Laravel 5廣播事件到通配符通道使用節點和Laravel ECHO-服務器 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.uwenku.com/question/p-pwfrxlsb-bdt.html" target="_blank" title="選擇默認類型要下載"> 選擇默認類型要下載 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.uwenku.com/question/p-ncdnnkbo-bep.html" target="_blank" title="如何使用正確的列名將文本分隔爲列"> 如何使用正確的列名將文本分隔爲列 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.uwenku.com/question/p-hctoaoej-beg.html" target="_blank" title="Inno Setup [設置] 64bit條件"> Inno Setup [設置] 64bit條件 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.uwenku.com/question/p-mkycehfm-bgc.html" target="_blank" title="Linux上的Swift Objective-C互操作性錯誤:找不到'Foundation/Foundation.h'文件"> Linux上的Swift Objective-C互操作性錯誤:找不到'Foundation/Foundation.h'文件 </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.uwenku.com/question/p-tlgbplif-bev.html" target="_blank" title="的SyntaxError 255李斯特"> 的SyntaxError 255李斯特 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.uwenku.com/question/p-ozjhreyu-bgs.html" target="_blank" title="如何在JAVA中使用apache POI在Excel中設置/取消設置列過濾器的值?"> 如何在JAVA中使用apache POI在Excel中設置/取消設置列過濾器的值? </a> </li> </ul> </div> </div> </div> <p class="article-nav-bar"></p> <div class="row sidebar article-nav"> <div class="row box_white visible-sm visible-md visible-lg margin-zero"> <div class="top"> <h3 class="title"><i class="glyphicon glyphicon-th-list"></i> 相關問題</h3> </div> <div class="article-relative-content"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.uwenku.com/question/p-tcinicbe-bbw.html" target="_blank" title="XSLT測試XML節點是否包含另一個XML節點?"> XSLT測試XML節點是否包含另一個XML節點? </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.uwenku.com/question/p-fphkkcwv-bmw.html" target="_blank" title="XSLT 2.0 - 使用包含模板匹配()"> XSLT 2.0 - 使用包含模板匹配() </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.uwenku.com/question/p-tuyfmeop-do.html" target="_blank" title="模板匹配包含字符串或應用模板?"> 模板匹配包含字符串或應用模板? </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.uwenku.com/question/p-mybadvwa-bns.html" target="_blank" title="Python測試字符串是否與模板值相匹配"> Python測試字符串是否與模板值相匹配 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.uwenku.com/question/p-zpexucwo-dg.html" target="_blank" title="模板匹配和測試是否存在語法差異?"> 模板匹配和測試是否存在語法差異? </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.uwenku.com/question/p-hfzecysu-dh.html" target="_blank" title="測試是否getJSONArray爲空或不是"> 測試是否getJSONArray爲空或不是 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.uwenku.com/question/p-uaeosyuu-xv.html" target="_blank" title="XSLT模板匹配的動態節點"> XSLT模板匹配的動態節點 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.uwenku.com/question/p-aowxrbgo-bbg.html" target="_blank" title="XSL模板匹配精確節點"> XSL模板匹配精確節點 </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.uwenku.com/question/p-bmpaxznk-rv.html" target="_blank" title="如何測試XML包含節點"> 如何測試XML包含節點 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.uwenku.com/question/p-xvsrenxi-gr.html" target="_blank" title="測試包含空格字符的uri「當前節點列表爲空」"> 測試包含空格字符的uri「當前節點列表爲空」 </a> </li> </ul> </div> </div> </div> </div> </div> </div> </div><!-- wrap end--> <!-- footer --> <footer id="footer"> <div class="bg-simple lt"> <div class="container"> <div class="row padder-v m-t"> <div class="col-xs-8"> <ul class="list-inline"> <li><a href="http://hk.uwenku.com/contact">聯系我們</a></li> <li>© 2020 HK.UWENKU.COM</li> <li><a target="_blank" href="https://beian.miit.gov.cn/">沪ICP备13005482号-4</a></li> <li><script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1280101193&web_id=1280101193"></script></li> <li><a href="http://www.uwenku.com/" target="_blank" title="优文库">简体中文</a></li> <li><a href="http://hk.uwenku.com/" target="_blank" title="優文庫">繁體中文</a></li> <li><a href="http://ru.uwenku.com/" target="_blank" title="поле вопросов и ответов">Русский</a></li> <li><a href="http://de.uwenku.com/" target="_blank" title="Frage - und - antwort - Park">Deutsch</a></li> <li><a href="http://es.uwenku.com/" target="_blank" title="Preguntas y respuestas">Español</a></li> <li><a href="http://hi.uwenku.com/" target="_blank" title="कार्यक्रम प्रश्न और उत्तर पार्क">हिन्दी</a></li> <li><a href="http://it.uwenku.com/" target="_blank" title="IL Programma di chiedere Park">Italiano</a></li> <li><a href="http://ja.uwenku.com/" target="_blank" title="プログラム問答園区">日本語</a></li> <li><a href="http://ko.uwenku.com/" target="_blank" title="프로그램 문답 단지">한국어</a></li> <li><a href="http://pl.uwenku.com/" target="_blank" title="program o park">Polski</a></li> <li><a href="http://tr.uwenku.com/" target="_blank" title="Program soru ve cevap parkı">Türkçe</a></li> <li><a href="http://vi.uwenku.com/" target="_blank" title="Đáp ứng viên">Tiếng Việt</a></li> <li><a href="http://fr.uwenku.com/" target="_blank" title="Programme interrogation Park">Française</a></li> </ul> </div> </div> </div> </div> </div> </footer> <!-- / footer --> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f78a970f17b19a79fc477a3378096f29"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>