好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > javascript xml xsl取值及數據修改第1/2頁

javascript xml xsl取值及數據修改第1/2頁

熱門標簽:東營電銷 隨州外呼調研系統 400電話辦理包年 南寧網絡外呼系統運營商 高德地圖地圖標注服務中心 微信地圖標注合并了 本地電話機器人 r語言數據可視化地圖標注 如何修改多個百度地圖標注
1.example.xml--主要數據文件
?xml version="1.0" encoding="UTF-8"?>

?xml:stylesheet type="text/xsl" href="example.xsl"?>

projects id="1">
    project title="一級標題1" index="1">
        items isTrunk="false" title="二級標題1.1" id="items_1">
            result type="2">1/result>
            officer>![CDATA[]]>/officer>
            classified>1/classified>
            eligibility>0/eligibility>
            remark>/remark>
        /items>
        items isTrunk="false" title="二級標題1.2" id="items_2">
            result type="2">3/result>
            officer>![CDATA[]]>/officer>
            classified>1/classified>
            eligibility>0/eligibility>
        /items>
    /project>
    project title="一級標題2" index="2">
        items isTrunk="false" title="二級標題2.1" id="items_3">
            result type="3">3/result>
            officer>![CDATA[]]>/officer>
            classified>1/classified>
            eligibility>0/eligibility>
        /items>
        items isTrunk="true" title="二級標題2.2">
            item title="三級標題2.2.1" id="item_1">
                result type="1">2/result>
                officer>![CDATA[居然是亂碼]]>/officer>
                classified>1/classified>
                eligibility>0/eligibility>
            /item>
            item title="三級標題2.2.2" id="item_2">
                result type="1">3/result>
                officer>![CDATA[>>]]>/officer>
                classified>1/classified>
                eligibility>0/eligibility>
            /item>
        /items>            
        items isTrunk="true" title="二級標題2.3">
            item title="三級標題2.3.1" id="item_3">
                result type="2">1/result>
                officer>![CDATA[]]>/officer>
                classified>1/classified>
                eligibility>0/eligibility>
            /item>
            item title="三級標題2.3.2" id="item_4">
                result type="2">1/result>
                officer>![CDATA[]]>/officer>
                classified>1/classified>
                eligibility>0/eligibility>
            /item>
        /items>            
    /project>
    project title="一級標題3" index="3">
        items isTrunk="false" title="二級標題3.1" id="items_4">
            result type="4" units="元">25345/result>
            officer>![CDATA[sinoly]]>/officer>
            classified>1/classified>
            eligibility>0/eligibility>
        /items>
        items isTrunk="false" title="二級標題3.2" id="items_5">
            result type="4" units="元">9865764/result>
            officer>![CDATA[]]>/officer>
            classified>1/classified>
            eligibility>0/eligibility>
        /items>
        items isTrunk="false" title="二級標題3.3" id="items_6">
            result type="2">0/result>
            officer>![CDATA[]]>/officer>
            classified>1/classified>
            eligibility>0/eligibility>
        /items>
        items isTrunk="true" title="二級標題3.4">
            item title="三級標題3.4.1" id="item_5">
                result type="1">0/result>
                officer>![CDATA[]]>/officer>
                classified>1/classified>
                eligibility>0/eligibility>
            /item>
            item title="三級標題3.4.2" id="item_6">
                result type="1">0/result>
                officer>![CDATA[]]>/officer>
                classified>1/classified>
                eligibility>0/eligibility>
            /item>
            item title="三級標題3.4.3" id="item_7">
                result type="1">0/result>
                officer>![CDATA[]]>/officer>
                classified>1/classified>
                eligibility>0/eligibility>
            /item>
        /items>
    /project>
/projects>
2.example.xsl--樣式文件,很方便的取到xml數據

?xml version="1.0" encoding="gb2312"?>

xsl:stylesheet version="1.0"   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    !--根模板-->    
    xsl:output method="xml"/>

    xsl:template match="/">    
        xsl:apply-templates select="projects/project"/>
        h6>
            button type="submit" class="btn1_mouseout" onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" title="提交"> 下一步/button>
        /h6>
    /xsl:template>

    !--主題模板-->
    xsl:template match="project">
        TABLE border="0" cellspacing="0" cellpadding="0" class="table">
            tr>
                td colspan="5" align="center" class="tright">
                    h2>
                        xsl:number value="position()" format="一、"/>xsl:value-of select="@title"/>
                    /h2>
                /td>
            /tr>
            xsl:apply-templates select="items"/>
        /TABLE>
        BR/>
    /xsl:template>

    !--一級題干模板-->
    xsl:template match="items">
        tr>
            td colspan="2" class="tright">
                xsl:number value="position()" format="1."/>xsl:value-of select="@title"/>
            /td>
            xsl:choose>
                xsl:when test="@isTrunk[.='false']">
                    xsl:apply-templates select="result"/>
                    xsl:apply-templates select="officer"/>
                /xsl:when>
                xsl:otherwise>
                    td colspan="3" class="tright" style="color:blue;font-weight:bolder">
                        注意以下幾點
                    /td>
                    xsl:apply-templates select="item"/>
                /xsl:otherwise>
            /xsl:choose>
        /tr>
    /xsl:template>

        !--二級題干模板-->
    xsl:template match="item">

      tr>
        td class="tright" style="padding-left:20px" colspan="2">
            h4>xsl:number value="position()" format="(a)."/>xsl:value-of select="@title"/>/h4>
        /td>
            xsl:apply-templates select="result"/>
            xsl:apply-templates select="officer"/>
      /tr>
    /xsl:template>

    !--選擇框模板-->
    xsl:template match="result">
                    xsl:choose>
                        xsl:when test="@type = '1'">
                            td width="15%">
                            xsl:element name="select">
                                xsl:attribute name="name">re_xsl:value-of select="../@id"/>/xsl:attribute>
                                !--select name="select">-->
                                    xsl:choose>
                                        xsl:when test=".='0'">
                                            option value="0" selected="selected">請選擇 /option>
                                            option value="1">符合/option>
                                            option value="2">基本符合/option>
                                            option value="3">不符合/option>
                                        /xsl:when>
                                        xsl:when test=".='1'">
                                            option value="0">請選擇 /option>
                                            option value="1" selected="selected">符合/option>
                                            option value="2">基本符合/option>
                                            option value="3">不符合/option>
                                        /xsl:when>
                                        xsl:when test=".='2'">
                                            option value="0">請選擇 /option>
                                            option value="1">符合/option>
                                            option value="2" selected="selected">基本符合/option>
                                            option value="3">不符合/option>
                                        /xsl:when>
                                        xsl:when test=".='3'">
                                            option value="0">請選擇 /option>
                                            option value="1">符合/option>
                                            option value="2">基本符合/option>
                                            option value="3" selected="selected">不符合/option>
                                        /xsl:when>                                        
                                    /xsl:choose>
                                    !--/select>-->
                                /xsl:element>
                            /td>
                        /xsl:when>
                        xsl:when test="@type = '2'">
                            td width="15%">
                                xsl:element name="select">
                                xsl:attribute name="name">re_xsl:value-of select="../@id"/>/xsl:attribute>
                                    xsl:choose>
                                        xsl:when test=".='0'">
                                            option value="0" selected="selected">請選擇 /option>
                                            option value="1">是/option>
                                            option value="2">否/option>
                                        /xsl:when>
                                        xsl:when test=".='1'">
                                            option value="0">請選擇 /option>
                                            option value="1" selected="selected">是/option>
                                            option value="2">否/option>
                                        /xsl:when>
                                        xsl:when test=".='3'">
                                            option value="0">請選擇 /option>
                                            option value="1">是/option>
                                            option value="2" selected="selected">否/option>
                                        /xsl:when>                        
                                    /xsl:choose>
                                /xsl:element>
                            /td>
                        /xsl:when>
                        xsl:when test="@type = '3'">
                            td width="15%">
                                xsl:element name="select">
                                xsl:attribute name="name">re_xsl:value-of select="../@id"/>/xsl:attribute>
                                    xsl:choose>
                                        xsl:when test=".='0'">
                                            option value="0" selected="selected">請選擇 /option>
                                            option value="1">有/option>
                                            option value="2">無/option>
                                        /xsl:when>
                                        xsl:when test=".='1'">
                                            option value="0">請選擇 /option>
                                            option value="1" selected="selected">有/option>
                                            option value="2">無/option>
                                        /xsl:when>
                                        xsl:when test=".='3'">
                                            option value="0">請選擇 /option>
                                            option value="1">有/option>
                                            option value="2" selected="selected">無/option>
                                        /xsl:when>                        
                                    /xsl:choose>
                                /xsl:element>
                            /td>
                        /xsl:when>

                        xsl:otherwise>
                            td width="15%">
                            xsl:element name="textarea">
                                xsl:attribute name="name">re_xsl:value-of select="../@id"/>/xsl:attribute>xsl:value-of select="."/>
                            /xsl:element>
                                xsl:value-of select="@units"/>
                            /td>
                        /xsl:otherwise>
                    /xsl:choose>

    /xsl:template>

        !--責任人模板-->
    xsl:template match="officer">
        td width="9%" class="tright">責任人/td>
        td width="11%">
        xsl:element name="textarea">
            xsl:attribute name="name">of_xsl:value-of select="../@id"/>/xsl:attribute>
            xsl:value-of select="."/>
        /xsl:element>
        /td>
    /xsl:template>

/xsl:stylesheet>
12下一頁閱讀全文

標簽:寧夏 拉薩 益陽 德州 黃石 西雙版納 宿遷 果洛

巨人網絡通訊聲明:本文標題《javascript xml xsl取值及數據修改第1/2頁》,本文關鍵詞  javascript,xml,xsl,取值,及,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《javascript xml xsl取值及數據修改第1/2頁》相關的同類信息!
  • 本頁收集關于javascript xml xsl取值及數據修改第1/2頁的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 91久久精品产国品一二三产区| 久久艹影院| 1000部无遮挡拍拍拍免费视频| 欧美一级夜夜爽www| 荫蒂每天被男人添小说| 国产成人精品免费观看| 欧美大胆裸体XXOO| 日韩电影和搜子同屋的日子2| 夜夜天天干| 6080yy午夜理论片无码| Chinese国模私拍pics| 美女打开??让老师??进去| 欧美无人区码suv| 日本一级一片特黄毛片红楼梦 | 91欧美激情一区二区三区成人| 动漫艳母在线播放| 日本98xxxxxxxxx| 白丝老师好紧好爽好湿| 美女扒开腿让男生桶视频 | 爽别停小坏蛋| 男警察受呻吟双腿大开H漫画微博 臭小子快拔出来我是你嫲视频 | 深夜网站在线观看| 各种性道具play调教受| 男人使劲躁女人过程视频| 欧美疯狂婬乱AAAA片免费| 山药双性搔痒调教放置play| 午夜成人男人人妻久久久| 欧美性69式xxxx护士| 欧美高清???免费看| Japan massage人妻| 成人午夜影院| yw.193.爆乳尤物.ccm| 6080yy午夜理论片无码| 护士帮病人做勃起功能训练| freexx性hd| 91国久拍偷拍一区二区vids| 含着玉势H边做边走动| j8又粗又硬又大又爽又长视频| 永春县| 色欲AV嫩草网站国产精品一区 | 是欲为(出轨h)|