Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 向XSL添加ID或类_Css_Xml_Styles_Xslt - Fatal编程技术网

Css 向XSL添加ID或类

Css 向XSL添加ID或类,css,xml,styles,xslt,Css,Xml,Styles,Xslt,我正在尝试将ID或类添加到下面的附件中(对于每个黄色部分)。我找到了“date”、“title”和“more”类,但我很难看到正文、img、类别和已发布的部分。单击链接查看输出 5. 假的 1033 RSS_查看器_网页部件 左边 真的 以下是HTML格式的输出: <!DOCTYPE HTML> <html> <head> </head> <body> <div class="ms-rtestate-read ms

我正在尝试将ID或类添加到下面的附件中(对于每个黄色部分)。我找到了“date”、“title”和“more”类,但我很难看到正文、img、类别和已发布的部分。单击链接查看输出


5.
假的
1033
RSS_查看器_网页部件
左边
真的
以下是HTML格式的输出:

    <!DOCTYPE HTML>
<html>
<head>
</head>

<body>
<div class="ms-rtestate-read ms-rte-wpbox">
  <div class="ms-rtestate-notify  ms-rtestate-read 5b3f0d13-9a94-4cb5-8d0b-09bcd8a3bfe4" id="div_5b3f0d13-9a94-4cb5-8d0b-09bcd8a3bfe4">
    <table cellspacing="0" cellpadding="0" style="width:100%">
      <tbody>
        <tr>
          <td valign="top" class="s4-wpcell-plain" id="MSOZoneCell_WebPartWPQ7"><table cellspacing="0" cellpadding="0" border="0" width="100%" class="s4-wpTopTable">
              <tbody>
                <tr>
                  <td><table cellspacing="0" cellpadding="0" border="0" width="100%">
                      <tbody>
                        <tr class="ms-WPHeader">
                          <td align="left" class="ms-wpTdSpace">&nbsp;</td>
                          <td class="ms-WPHeaderTd" id="WebPartTitleWPQ7" title="Latest News! - Displays an RSS feed."><h3 class="ms-standardheader ms-WPTitle" style="text-align:justify;"><a href="*******Can't show this link*******News/default.aspx" accesskey="W"><nobr><span>Latest News!</span><span id="WebPartCaptionWPQ7"></span></nobr></a></h3></td>
                          <td align="right" onclick="OpenWebPartMenu('WebPartWPQ7_Menu', this, 'WebPartWPQ7','False'); TrapMenuClick(event); return false;" class="ms-WPHeaderTdMenu"><span style="display:none;">
                            <menu class="ms-SrvMenuUI" id="WebPartWPQ7_Menu">
                              <ie:menuitem type="option" text="Minimize" onmenuclick="javascript:MSOLayout_MinimizeRestore(MenuWebPart)" id="MSOMenu_Minimize" title="Collapse this web part."> </ie:menuitem>
                              <ie:menuitem type="option" text="Restore" onmenuclick="javascript:MSOLayout_MinimizeRestore(MenuWebPart)" id="MSOMenu_Restore" title="Expand this web part."> </ie:menuitem>
                              <ie:menuitem type="option" text="Close" onmenuclick="javascript:MSOLayout_RemoveWebPart(MenuWebPart)" id="MSOMenu_Close" title="Close this Web Part. You can still find it under closed Web Parts section in the insert ribbon. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem type="option" text="Delete" onmenuclick="if(confirm('You are about to permanently delete this Web Part. Are you sure you want to do this?')) {MSOWebPartPage_partDeleted = MenuWebPartID;MSOWebPartPage_MenuDoPostBack('ctl00$m', MenuWebPartID + ';MSOMenu_Delete');}" iconsrc="/_layouts/images/DelItem.gif" id="MSOMenu_Delete" title="Delete this Web Part from the page. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem type="separator"></ie:menuitem>
                              <ie:menuitem type="option" text="Edit Web Part" onmenuclick="javascript:MSOTlPn_ShowToolPane2Wrapper('Edit', 16, MenuWebPartID)" iconsrc="/_layouts/images/EditItem.gif" id="MSOMenu_Edit" title="Change properties of this shared Web Part. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem type="option" text="Connections" onmenuclick="" id="MSOMenu_Connections" title="Show connections options for this Web Part. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem type="separator"></ie:menuitem>
                              <ie:menuitem type="option" text="Export..." onmenuclick="javascript:MSOWebPartPage_ExportCheckWarning('\u002fsites\u002fdermres\u002f_vti_bin\u002fexportwp.aspx?pageurl=http\u00253A\u00252F\u00252Fdermdev2\u00253A80\u00252Fsites\u00252Fdermres\u00252FSitePages\u00252FHome\u00252Easpx\u0026guidstring='+ escape(MenuWebPartID), MenuWebPart.getAttribute('HasPers') == 'true')" id="MSOMenu_Export" title="Export this Web Part. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem style="display:none" type="option" text="Help" onmenuclick="MSOWebPartPage_SetNewWindowLocation(MenuWebPart.getAttribute('helpLink'), MenuWebPart.getAttribute('helpMode'))" iconsrc="/_layouts/images/HelpIcon.gif" id="MSOMenu_Help"> </ie:menuitem>
                            </menu>
                            </span>
                            <div onmouseover="this.className='ms-WPMenuDivHover'" onmouseout="this.className='ms-WPMenuDiv'" class="ms-WPMenuDiv"><a menuid="WebPartWPQ7_Menu" onfocus="UpdateWebPartMenuFocus(this, 'ms-wpselectlinkfocus', 'ms-WPEditTextVisible');" onblur="UpdateWebPartMenuFocus(this, 'ms-wpselectlink', 'ms-WPEditText');" class="ms-wpselectlink" title="Latest News! Web Part Menu" href="#" onkeydown="WebPartMenuKeyboardClick(document.getElementById('WebPartWPQ7_MenuLink'), 13, 40, event)" id="WebPartWPQ7_MenuLink" onclick="OpenWebPartMenuFromLink('WebPartWPQ7_Menu', this, 'WebPartWPQ7','False'); return false;"><img style="border-width:0px;" alt="Latest News! Web Part Menu" src="/_layouts/images/wpmenuarrow.png" class="ms-WPHeaderMenuImg"></a></div></td>
                          <td class="ms-WPHeaderTdSelection"><span class="ms-WPHeaderTdSelSpan">
                            <input type="checkbox" onclick="TrapMenuClick(event); return false;" onmouseup="WpCbxSelect(event); return false;" onkeyup="WpCbxKeyHandler(event);" onfocus="this.className='ms-WPHeaderCbxVisible'" onblur="this.className='ms-WPHeaderCbxHidden'" title="Select or deselect Latest News! Web Part" class="ms-WPHeaderCbxHidden" id="SelectionCbxWebPartWPQ7">
                            </span></td>
                          <td align="left" class="ms-wpTdSpace">&nbsp;</td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
                <tr>
                  <td valign="top" class=""><div style="" allowdelete="false" allowremove="false" class="ms-WPBody noindex ms-wpContentDivSpace" width="100%" id="WebPartWPQ7" haspers="false" webpartid2="5b3f0d13-9a94-4cb5-8d0b-09bcd8a3bfe4" webpartid="4925e295-451f-4c05-8411-a3d05fbed1c1">
                      <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tbody>
                          <tr>
                            <td><div style="padding-top:5px;" id="rssFeedWPDiv_ctl00_m_g_5b3f0d13_9a94_4cb5_8d0b_09bcd8a3bfe4">
                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                  <tbody>
                                    <tr>
                                      <td><!--?xml version="1.0" encoding="utf-8"?-->
                                        <div xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:rssfeed="urn:schemas-microsoft-com:sharepoint:RSSAggregatorWebPart" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rss1="http://purl.org/rss/1.0/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom2="http://purl.org/atom/ns#" class="slm-layout-main">
                                          <div class="item link-item"><a href="javascript:ToggleItemDescription('g_5b3f0d13_9a94_4cb5_8d0b_09bcd8a3bfe41')">Happy Hippos!</a>
                                            <div align="left" style="display:block; text-align:left;" class="description" id="g_5b3f0d13_9a94_4cb5_8d0b_09bcd8a3bfe41">Friday, January 20, 2012
                                              -
                                              <div class="postDescription"><b></b>
                                                <div class="ExternalClass7307B3207C5F4D249548C7AF6EAFC3D5">
                                                  <p class="postImage">&#8203;<img style="margin:5px;width:233px;height:178px" src="*******Can't show this link*******News/Lists/Photos/HappyHippo.JPG" alt="HappyHippo.JPG"></p>
                                                  <p>Happy Hippos!</p>
                                                  <p>Vestibulum ante ip<span style="text-decoration:underline">sum primis in faucibus orci luctus et ultrices pos</span>uere
                                                    cubilia Curae; Aliquam ac lorem nisi. Aliquam vitae lacus sapien. Nam 
                                                    ornare, tellus id tristique <strong>elementum, ipsum velit gravida elit, vitae 
                                                    condimentum neque ante tincidunt est. Nulla facilisi. Sed</strong> pulvinar neque
                                                    vitae dolor pretium gravida. Pellentesque habitant morbi tristique 
                                                    senectus et netus et malesuada fames ac turpis egestas.&nbsp;</p>
                                                  <p>writing more.......................<br>
                                                    <br>
                                                  </p>
                                                </div>
                                              </div>
                                              <div class="postCategory"><b>Posted In:</b> <a href="*******Can't show this link*******_layouts/listform.aspx?PageType=4&amp;ListId={E1ED84A3-3668-4A94-B5A8-4F8EE21F6759}&amp;ID=6&amp;RootFolder=*">Announcements</a>; <a href="*******Can't show this link*******_layouts/listform.aspx?PageType=4&amp;ListId={E1ED84A3-3668-4A94-B5A8-4F8EE21F6759}&amp;ID=5&amp;RootFolder=*">Current Issues</a>; <a href="*******Can't show this link*******_layouts/listform.aspx?PageType=4&amp;ListId={E1ED84A3-3668-4A94-B5A8-4F8EE21F6759}&amp;ID=7&amp;RootFolder=*">Lastest News</a>; <a href="*******Can't show this link*******_layouts/listform.aspx?PageType=4&amp;ListId={E1ED84A3-3668-4A94-B5A8-4F8EE21F6759}&amp;ID=4&amp;RootFolder=*">What's New?</a></div>
                                              <div></div>
                                              <div class="description"><a href="*******Can't show this link*******Lists/Posts/ViewPost.aspx?ID=7">More...</a></div>
                                            </div>
                                          </div>
                                        </div></td>
                                    </tr>
                                  </tbody>
                                </table>
                              </div></td>
                          </tr>
                        </tbody>
                      </table>
                    </div></td>
                </tr>
              </tbody>
            </table></td>
        </tr>
      </tbody>
    </table>
  </div>
  <div style="display:none" id="vid_5b3f0d13-9a94-4cb5-8d0b-09bcd8a3bfe4"></div>
</div>
</body>
</html>

2012年1月20日,星期五
-

和#8203

河马快乐

虎口浮雕和乌尔特里斯浮雕同侧前庭 库里亚;阿利夸姆·阿勒姆·尼西。生命之泉。不结盟运动 ornare,tellus id tristiqueelementum,ipsum velit gradida Elite,vitae 调味品是一种特殊的调味品。无便利。塞德pulvinar neque 孕前生活。佩伦茨克居民莫比·特里斯蒂克 塞内特斯、内特斯和马莱苏阿达是著名的埃吉斯塔斯土尔皮斯人

写更多………

张贴在:;
内容的html表示将由xslt处理器的专有扩展动态生成(主要是
rssaggwrt:MakeSafe
    <!DOCTYPE HTML>
<html>
<head>
</head>

<body>
<div class="ms-rtestate-read ms-rte-wpbox">
  <div class="ms-rtestate-notify  ms-rtestate-read 5b3f0d13-9a94-4cb5-8d0b-09bcd8a3bfe4" id="div_5b3f0d13-9a94-4cb5-8d0b-09bcd8a3bfe4">
    <table cellspacing="0" cellpadding="0" style="width:100%">
      <tbody>
        <tr>
          <td valign="top" class="s4-wpcell-plain" id="MSOZoneCell_WebPartWPQ7"><table cellspacing="0" cellpadding="0" border="0" width="100%" class="s4-wpTopTable">
              <tbody>
                <tr>
                  <td><table cellspacing="0" cellpadding="0" border="0" width="100%">
                      <tbody>
                        <tr class="ms-WPHeader">
                          <td align="left" class="ms-wpTdSpace">&nbsp;</td>
                          <td class="ms-WPHeaderTd" id="WebPartTitleWPQ7" title="Latest News! - Displays an RSS feed."><h3 class="ms-standardheader ms-WPTitle" style="text-align:justify;"><a href="*******Can't show this link*******News/default.aspx" accesskey="W"><nobr><span>Latest News!</span><span id="WebPartCaptionWPQ7"></span></nobr></a></h3></td>
                          <td align="right" onclick="OpenWebPartMenu('WebPartWPQ7_Menu', this, 'WebPartWPQ7','False'); TrapMenuClick(event); return false;" class="ms-WPHeaderTdMenu"><span style="display:none;">
                            <menu class="ms-SrvMenuUI" id="WebPartWPQ7_Menu">
                              <ie:menuitem type="option" text="Minimize" onmenuclick="javascript:MSOLayout_MinimizeRestore(MenuWebPart)" id="MSOMenu_Minimize" title="Collapse this web part."> </ie:menuitem>
                              <ie:menuitem type="option" text="Restore" onmenuclick="javascript:MSOLayout_MinimizeRestore(MenuWebPart)" id="MSOMenu_Restore" title="Expand this web part."> </ie:menuitem>
                              <ie:menuitem type="option" text="Close" onmenuclick="javascript:MSOLayout_RemoveWebPart(MenuWebPart)" id="MSOMenu_Close" title="Close this Web Part. You can still find it under closed Web Parts section in the insert ribbon. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem type="option" text="Delete" onmenuclick="if(confirm('You are about to permanently delete this Web Part. Are you sure you want to do this?')) {MSOWebPartPage_partDeleted = MenuWebPartID;MSOWebPartPage_MenuDoPostBack('ctl00$m', MenuWebPartID + ';MSOMenu_Delete');}" iconsrc="/_layouts/images/DelItem.gif" id="MSOMenu_Delete" title="Delete this Web Part from the page. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem type="separator"></ie:menuitem>
                              <ie:menuitem type="option" text="Edit Web Part" onmenuclick="javascript:MSOTlPn_ShowToolPane2Wrapper('Edit', 16, MenuWebPartID)" iconsrc="/_layouts/images/EditItem.gif" id="MSOMenu_Edit" title="Change properties of this shared Web Part. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem type="option" text="Connections" onmenuclick="" id="MSOMenu_Connections" title="Show connections options for this Web Part. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem type="separator"></ie:menuitem>
                              <ie:menuitem type="option" text="Export..." onmenuclick="javascript:MSOWebPartPage_ExportCheckWarning('\u002fsites\u002fdermres\u002f_vti_bin\u002fexportwp.aspx?pageurl=http\u00253A\u00252F\u00252Fdermdev2\u00253A80\u00252Fsites\u00252Fdermres\u00252FSitePages\u00252FHome\u00252Easpx\u0026guidstring='+ escape(MenuWebPartID), MenuWebPart.getAttribute('HasPers') == 'true')" id="MSOMenu_Export" title="Export this Web Part. These changes will apply to all users."> </ie:menuitem>
                              <ie:menuitem style="display:none" type="option" text="Help" onmenuclick="MSOWebPartPage_SetNewWindowLocation(MenuWebPart.getAttribute('helpLink'), MenuWebPart.getAttribute('helpMode'))" iconsrc="/_layouts/images/HelpIcon.gif" id="MSOMenu_Help"> </ie:menuitem>
                            </menu>
                            </span>
                            <div onmouseover="this.className='ms-WPMenuDivHover'" onmouseout="this.className='ms-WPMenuDiv'" class="ms-WPMenuDiv"><a menuid="WebPartWPQ7_Menu" onfocus="UpdateWebPartMenuFocus(this, 'ms-wpselectlinkfocus', 'ms-WPEditTextVisible');" onblur="UpdateWebPartMenuFocus(this, 'ms-wpselectlink', 'ms-WPEditText');" class="ms-wpselectlink" title="Latest News! Web Part Menu" href="#" onkeydown="WebPartMenuKeyboardClick(document.getElementById('WebPartWPQ7_MenuLink'), 13, 40, event)" id="WebPartWPQ7_MenuLink" onclick="OpenWebPartMenuFromLink('WebPartWPQ7_Menu', this, 'WebPartWPQ7','False'); return false;"><img style="border-width:0px;" alt="Latest News! Web Part Menu" src="/_layouts/images/wpmenuarrow.png" class="ms-WPHeaderMenuImg"></a></div></td>
                          <td class="ms-WPHeaderTdSelection"><span class="ms-WPHeaderTdSelSpan">
                            <input type="checkbox" onclick="TrapMenuClick(event); return false;" onmouseup="WpCbxSelect(event); return false;" onkeyup="WpCbxKeyHandler(event);" onfocus="this.className='ms-WPHeaderCbxVisible'" onblur="this.className='ms-WPHeaderCbxHidden'" title="Select or deselect Latest News! Web Part" class="ms-WPHeaderCbxHidden" id="SelectionCbxWebPartWPQ7">
                            </span></td>
                          <td align="left" class="ms-wpTdSpace">&nbsp;</td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
                <tr>
                  <td valign="top" class=""><div style="" allowdelete="false" allowremove="false" class="ms-WPBody noindex ms-wpContentDivSpace" width="100%" id="WebPartWPQ7" haspers="false" webpartid2="5b3f0d13-9a94-4cb5-8d0b-09bcd8a3bfe4" webpartid="4925e295-451f-4c05-8411-a3d05fbed1c1">
                      <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tbody>
                          <tr>
                            <td><div style="padding-top:5px;" id="rssFeedWPDiv_ctl00_m_g_5b3f0d13_9a94_4cb5_8d0b_09bcd8a3bfe4">
                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                  <tbody>
                                    <tr>
                                      <td><!--?xml version="1.0" encoding="utf-8"?-->
                                        <div xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:rssfeed="urn:schemas-microsoft-com:sharepoint:RSSAggregatorWebPart" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rss1="http://purl.org/rss/1.0/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom2="http://purl.org/atom/ns#" class="slm-layout-main">
                                          <div class="item link-item"><a href="javascript:ToggleItemDescription('g_5b3f0d13_9a94_4cb5_8d0b_09bcd8a3bfe41')">Happy Hippos!</a>
                                            <div align="left" style="display:block; text-align:left;" class="description" id="g_5b3f0d13_9a94_4cb5_8d0b_09bcd8a3bfe41">Friday, January 20, 2012
                                              -
                                              <div class="postDescription"><b></b>
                                                <div class="ExternalClass7307B3207C5F4D249548C7AF6EAFC3D5">
                                                  <p class="postImage">&#8203;<img style="margin:5px;width:233px;height:178px" src="*******Can't show this link*******News/Lists/Photos/HappyHippo.JPG" alt="HappyHippo.JPG"></p>
                                                  <p>Happy Hippos!</p>
                                                  <p>Vestibulum ante ip<span style="text-decoration:underline">sum primis in faucibus orci luctus et ultrices pos</span>uere
                                                    cubilia Curae; Aliquam ac lorem nisi. Aliquam vitae lacus sapien. Nam 
                                                    ornare, tellus id tristique <strong>elementum, ipsum velit gravida elit, vitae 
                                                    condimentum neque ante tincidunt est. Nulla facilisi. Sed</strong> pulvinar neque
                                                    vitae dolor pretium gravida. Pellentesque habitant morbi tristique 
                                                    senectus et netus et malesuada fames ac turpis egestas.&nbsp;</p>
                                                  <p>writing more.......................<br>
                                                    <br>
                                                  </p>
                                                </div>
                                              </div>
                                              <div class="postCategory"><b>Posted In:</b> <a href="*******Can't show this link*******_layouts/listform.aspx?PageType=4&amp;ListId={E1ED84A3-3668-4A94-B5A8-4F8EE21F6759}&amp;ID=6&amp;RootFolder=*">Announcements</a>; <a href="*******Can't show this link*******_layouts/listform.aspx?PageType=4&amp;ListId={E1ED84A3-3668-4A94-B5A8-4F8EE21F6759}&amp;ID=5&amp;RootFolder=*">Current Issues</a>; <a href="*******Can't show this link*******_layouts/listform.aspx?PageType=4&amp;ListId={E1ED84A3-3668-4A94-B5A8-4F8EE21F6759}&amp;ID=7&amp;RootFolder=*">Lastest News</a>; <a href="*******Can't show this link*******_layouts/listform.aspx?PageType=4&amp;ListId={E1ED84A3-3668-4A94-B5A8-4F8EE21F6759}&amp;ID=4&amp;RootFolder=*">What's New?</a></div>
                                              <div></div>
                                              <div class="description"><a href="*******Can't show this link*******Lists/Posts/ViewPost.aspx?ID=7">More...</a></div>
                                            </div>
                                          </div>
                                        </div></td>
                                    </tr>
                                  </tbody>
                                </table>
                              </div></td>
                          </tr>
                        </tbody>
                      </table>
                    </div></td>
                </tr>
              </tbody>
            </table></td>
        </tr>
      </tbody>
    </table>
  </div>
  <div style="display:none" id="vid_5b3f0d13-9a94-4cb5-8d0b-09bcd8a3bfe4"></div>
</div>
</body>
</html>