2013-02-19 43 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="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="4319274062" 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.voidcc.com/question/p-xmixisgo-sm.html" target="_blank" title="XSLT 2.0 - 使用包含模板匹配()"> XSLT 2.0 - 使用包含模板匹配() </a> </li> <li> 2. <a href="http://hk.voidcc.com/question/p-vsyoqmgl-bh.html" target="_blank" title="模板匹配和測試是否存在語法差異?"> 模板匹配和測試是否存在語法差異? </a> </li> <li> 3. <a href="http://hk.voidcc.com/question/p-vnrtgfbg-vn.html" target="_blank" title="測試是否getJSONArray爲空或不是"> 測試是否getJSONArray爲空或不是 </a> </li> <li> 4. <a href="http://hk.voidcc.com/question/p-quwlysqp-mk.html" target="_blank" title="XSLT模板匹配的動態節點"> XSLT模板匹配的動態節點 </a> </li> <li> 5. <a href="http://hk.voidcc.com/question/p-khynfshm-gm.html" target="_blank" title="如何測試XML包含節點"> 如何測試XML包含節點 </a> </li> <li> 6. <a href="http://hk.voidcc.com/question/p-yggyiasl-cg.html" target="_blank" title="測試包含空格字符的uri「當前節點列表爲空」"> 測試包含空格字符的uri「當前節點列表爲空」 </a> </li> <li> 7. <a href="http://hk.voidcc.com/question/p-vbzwhxve-mw.html" target="_blank" title="使用「包含」斯卡拉匹配Scala中測試列表"> 使用「包含」斯卡拉匹配Scala中測試列表 </a> </li> <li> 8. <a href="http://hk.voidcc.com/question/p-ddwzmtcd-pw.html" target="_blank" title="如何測試節點是否包含特定的字符串或字符作爲其文本值?"> 如何測試節點是否包含特定的字符串或字符作爲其文本值? </a> </li> <li> 9. <a href="http://hk.voidcc.com/question/p-eiafwaee-cb.html" target="_blank" title="測試一個單詞是否僅包含指定的音節"> 測試一個單詞是否僅包含指定的音節 </a> </li> <li> 10. <a href="http://hk.voidcc.com/question/p-sjprajif-rt.html" target="_blank" title="如何檢測節點是否包含重要信息?"> 如何檢測節點是否包含重要信息? </a> </li> <li> 11. <a href="http://hk.voidcc.com/question/p-ghvyzyli-md.html" target="_blank" title="JsonPath語法爲「不包含」或否定匹配?"> JsonPath語法爲「不包含」或否定匹配? </a> </li> <li> 12. <a href="http://hk.voidcc.com/question/p-dtjlddxe-gq.html" target="_blank" title="是否包含運行單元測試?"> 是否包含運行單元測試? </a> </li> <li> 13. <a href="http://hk.voidcc.com/question/p-yetezxhg-dw.html" target="_blank" title="檢查對象是否爲空或NULL"> 檢查對象是否爲空或NULL </a> </li> <li> 14. <a href="http://hk.voidcc.com/question/p-fyrzycpz-x.html" target="_blank" title="如何測試HTML正文是否包含空標籤"> 如何測試HTML正文是否包含空標籤 </a> </li> <li> 15. <a href="http://hk.voidcc.com/question/p-dyynuvnf-tg.html" target="_blank" title="檢查節點是否包含使用HtmlAgilityPack的字符串"> 檢查節點是否包含使用HtmlAgilityPack的字符串 </a> </li> <li> 16. <a href="http://hk.voidcc.com/question/p-awcagtrv-hh.html" target="_blank" title="使用XPath檢查肥皂信封是否包含子節點"> 使用XPath檢查肥皂信封是否包含子節點 </a> </li> <li> 17. <a href="http://hk.voidcc.com/question/p-soddrcmd-qq.html" target="_blank" title="XSLT:將模板應用於不包含特定子節點的節點"> XSLT:將模板應用於不包含特定子節點的節點 </a> </li> <li> 18. <a href="http://hk.voidcc.com/question/p-hnzxkxda-pg.html" target="_blank" title="Rspec-rails:測試佈局是否包含樣式或javascript"> Rspec-rails:測試佈局是否包含樣式或javascript </a> </li> <li> 19. <a href="http://hk.voidcc.com/question/p-mqqvcqeb-cy.html" target="_blank" title="使用XPathNavigator檢測是否存在空的XML節點屬性"> 使用XPathNavigator檢測是否存在空的XML節點屬性 </a> </li> <li> 20. <a href="http://hk.voidcc.com/question/p-aczjfgbe-kk.html" target="_blank" title="測試孩子是否包含使用jQuery的特定文本"> 測試孩子是否包含使用jQuery的特定文本 </a> </li> <li> 21. <a href="http://hk.voidcc.com/question/p-wivdczyd-cq.html" target="_blank" title="是否有通過包含模板來分組模板?"> 是否有通過包含模板來分組模板? </a> </li> <li> 22. <a href="http://hk.voidcc.com/question/p-potdzgcs-rz.html" target="_blank" title="匹配包含具體內容的子節點的所有節點"> 匹配包含具體內容的子節點的所有節點 </a> </li> <li> 23. <a href="http://hk.voidcc.com/question/p-qvsoadsa-ph.html" target="_blank" title="是否可以使用Bash擴展匹配模式來匹配不包含特定字符的路徑"> 是否可以使用Bash擴展匹配模式來匹配不包含特定字符的路徑 </a> </li> <li> 24. <a href="http://hk.voidcc.com/question/p-vnqgpyfd-hm.html" target="_blank" title="XPath匹配包含文本的每個節點"> XPath匹配包含文本的每個節點 </a> </li> <li> 25. <a href="http://hk.voidcc.com/question/p-xykmdzjt-mx.html" target="_blank" title="如何在osm2pgql中包含無匹配的節點/方式"> 如何在osm2pgql中包含無匹配的節點/方式 </a> </li> <li> 26. <a href="http://hk.voidcc.com/question/p-ahvhgrac-nb.html" target="_blank" title="是否有必要測試NULL是否也測試大於?"> 是否有必要測試NULL是否也測試大於? </a> </li> <li> 27. <a href="http://hk.voidcc.com/question/p-zsixackt-bc.html" target="_blank" title="Django模板:測試變量是否在列表或字典"> Django模板:測試變量是否在列表或字典 </a> </li> <li> 28. <a href="http://hk.voidcc.com/question/p-cdicryiw-dg.html" target="_blank" title="檢測NSString是否包含...?"> 檢測NSString是否包含...? </a> </li> <li> 29. <a href="http://hk.voidcc.com/question/p-oeoptfvn-sw.html" target="_blank" title="包含xpaths的XSLT模板匹配參數"> 包含xpaths的XSLT模板匹配參數 </a> </li> <li> 30. <a href="http://hk.voidcc.com/question/p-rjnuvaxa-nb.html" target="_blank" title="MySQL排除NULL /空匹配?"> MySQL排除NULL /空匹配? </a> </li> </ul> </div> <div> <script async src="//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="3534119089"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="padding-top-10"></div> </div> </div> <script type="text/javascript" src="http://img2.voidcc.com/voidso/script/side.js?t=1652515421930"></script> <script type="text/javascript" src="http://img2.voidcc.com/voidso/plugin/highlight/highlight.pack.js"></script> <link href="http://img2.voidcc.com/voidso/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="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- VOIDCC问答侧边栏广告 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="3862022848" 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.voidcc.com/question/p-kkyyasdp-bbo.html" target="_blank" title="Asp.net +剃刀2 + MySQL的&的iFrame顯示"> Asp.net +剃刀2 + MySQL的&的iFrame顯示 </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.voidcc.com/question/p-vajwtzyn-bax.html" target="_blank" title="DNS/Route53 - 配置記錄並處理www"> DNS/Route53 - 配置記錄並處理www </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.voidcc.com/question/p-umzqtywi-bca.html" target="_blank" title="電話號碼沒有得到驗證的JavaScript"> 電話號碼沒有得到驗證的JavaScript </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.voidcc.com/question/p-sksjngtc-bbd.html" target="_blank" title="的Symfony2在督促"> 的Symfony2在督促 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.voidcc.com/question/p-cmirmwwk-ut.html" target="_blank" title="斯卡拉隱式轉換爲有效宏內的一元值"> 斯卡拉隱式轉換爲有效宏內的一元值 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.voidcc.com/question/p-gcnjjcqg-us.html" target="_blank" title="Swift 4和Firebase中的信號量建議"> Swift 4和Firebase中的信號量建議 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.voidcc.com/question/p-hntamcdm-us.html" target="_blank" title="如何在應用程序啓動期間獲取位置"> 如何在應用程序啓動期間獲取位置 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.voidcc.com/question/p-fuccwdsl-ur.html" target="_blank" title="什麼讓使用PHP的preg_match"> 什麼讓使用PHP的preg_match </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.voidcc.com/question/p-cwpqmdrp-ur.html" target="_blank" title="你好我正在使用離子科爾多瓦"> 你好我正在使用離子科爾多瓦 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.voidcc.com/question/p-vgooxoga-bbu.html" target="_blank" title="如何將雙緯和雙經度設置爲數組"> 如何將雙緯和雙經度設置爲數組 </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.voidcc.com/question/p-xmixisgo-sm.html" target="_blank" title="XSLT 2.0 - 使用包含模板匹配()"> XSLT 2.0 - 使用包含模板匹配() </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.voidcc.com/question/p-vsyoqmgl-bh.html" target="_blank" title="模板匹配和測試是否存在語法差異?"> 模板匹配和測試是否存在語法差異? </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.voidcc.com/question/p-vnrtgfbg-vn.html" target="_blank" title="測試是否getJSONArray爲空或不是"> 測試是否getJSONArray爲空或不是 </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.voidcc.com/question/p-quwlysqp-mk.html" target="_blank" title="XSLT模板匹配的動態節點"> XSLT模板匹配的動態節點 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.voidcc.com/question/p-khynfshm-gm.html" target="_blank" title="如何測試XML包含節點"> 如何測試XML包含節點 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.voidcc.com/question/p-yggyiasl-cg.html" target="_blank" title="測試包含空格字符的uri「當前節點列表爲空」"> 測試包含空格字符的uri「當前節點列表爲空」 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.voidcc.com/question/p-vbzwhxve-mw.html" target="_blank" title="使用「包含」斯卡拉匹配Scala中測試列表"> 使用「包含」斯卡拉匹配Scala中測試列表 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.voidcc.com/question/p-ddwzmtcd-pw.html" target="_blank" title="如何測試節點是否包含特定的字符串或字符作爲其文本值?"> 如何測試節點是否包含特定的字符串或字符作爲其文本值? </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.voidcc.com/question/p-eiafwaee-cb.html" target="_blank" title="測試一個單詞是否僅包含指定的音節"> 測試一個單詞是否僅包含指定的音節 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.voidcc.com/question/p-sjprajif-rt.html" target="_blank" title="如何檢測節點是否包含重要信息?"> 如何檢測節點是否包含重要信息? </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.voidcc.com/contact">聯系我們</a></li> <li>© 2020 HK.VOIDCC.COM</li> <li><a rel="nofollow" href="https://beian.miit.gov.cn/" target="_blank">沪ICP备13005482号-13</a></li> <li><script type="text/javascript" src="https://s9.cnzz.com/z_stat.php?id=1280098168&web_id=1280098168"></script></li> <li><a href="http://cn.voidcc.com/" target="_blank" title="程序问答园区">简体中文</a></li> <li><a href="http://hk.voidcc.com/" target="_blank" title="程序問答園區">繁體中文</a></li> <li><a href="http://ru.voidcc.com/" target="_blank" title="поле вопросов и ответов">Русский</a></li> <li><a href="http://de.voidcc.com/" target="_blank" title="Frage - und - antwort - Park">Deutsch</a></li> <li><a href="http://es.voidcc.com/" target="_blank" title="Preguntas y respuestas">Español</a></li> <li><a href="http://hi.voidcc.com/" target="_blank" title="कार्यक्रम प्रश्न और उत्तर पार्क">हिन्दी</a></li> <li><a href="http://it.voidcc.com/" target="_blank" title="IL Programma di chiedere Park">Italiano</a></li> <li><a href="http://ja.voidcc.com/" target="_blank" title="プログラム問答園区">日本語</a></li> <li><a href="http://ko.voidcc.com/" target="_blank" title="프로그램 문답 단지">한국어</a></li> <li><a href="http://pl.voidcc.com/" target="_blank" title="program o park">Polski</a></li> <li><a href="http://tr.voidcc.com/" target="_blank" title="Program soru ve cevap parkı">Türkçe</a></li> <li><a href="http://vi.voidcc.com/" target="_blank" title="Đáp ứng viên">Tiếng Việt</a></li> <li><a href="http://fr.voidcc.com/" target="_blank" title="Programme interrogation Park">Française</a></li> </ul> </div> </div> </div> </div> </div> </footer> <!-- / footer --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-77509369-5"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-77509369-5'); </script> <script> var _hmt = _hmt || []; (function () { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?67d4731349f0b00136755b80364ce381"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>