Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.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
Xml 在XSL中关闭新闻稿的简单表_Xml_Xslt - Fatal编程技术网

Xml 在XSL中关闭新闻稿的简单表

Xml 在XSL中关闭新闻稿的简单表,xml,xslt,Xml,Xslt,我们有用XSL创建的新闻稿,这允许编辑标记文章,然后自动生成新闻稿。这是一个相对强大的系统 我是XSL新手,正在努力让时事通讯在outlook中正确显示(它在web浏览器中看起来100%正常,但我非常确定我知道问题发生的原因 我了解时事通讯中的各种填充问题,但我发现很难关闭表格-是的,这是一个简单的表格。我真的不确定是否有人能帮我解决这个问题,但现在我们开始: 我已经突出显示了唯一有问题的代码。在粗体部分末尾添加根本无法编译-它迫使我使用和关闭。这意味着斜体代码的样式是“top story”模式

我们有用XSL创建的新闻稿,这允许编辑标记文章,然后自动生成新闻稿。这是一个相对强大的系统

我是XSL新手,正在努力让时事通讯在outlook中正确显示(它在web浏览器中看起来100%正常,但我非常确定我知道问题发生的原因

我了解时事通讯中的各种填充问题,但我发现很难关闭表格-是的,这是一个简单的表格。我真的不确定是否有人能帮我解决这个问题,但现在我们开始:

我已经突出显示了唯一有问题的代码。在粗体部分末尾添加
根本无法编译-它迫使我使用
关闭。这意味着斜体代码的样式是“top story”模式,但这只发生在电子邮件客户端,而不是浏览器中

完整的代码太长,无法在这里发布(939行),因此我创建了一个简化版本(希望没有太多语法错误)


]>
没有链接到此通讯的文章

头条新闻»

** ** *

拆除和回收国际通讯» *

赞助商


拆迁新闻» -->


...

... ... ... ...

. . .

XML代码:

   <?xml version="1.0" encoding="UTF-8"?>

<search-results>
  <size>0</size>  
  <start-index>1</start-index>  
  <end-index>1</end-index>  
  <page-no>1</page-no>  
  <no-of-pages>1</no-of-pages>  
  <items-per-page>0</items-per-page>  
  <forward>
    <action>/vyre4/pub_module/pageview4757_70?portal:componentId=16821&amp;portal:type=action&amp;portal:isSecure=false&amp;portal:portletMode=xml</action> 
  </forward>  
  <action-path>/vyre4/pub_module/pageview4757_70?portal:componentId=16821&amp;portal:type=action&amp;portal:isSecure=false&amp;portal:portletMode=xml</action-path>  
  <action-extensions>
    <add-to-basket>
      <order>&amp;addToBasket=order</order>  
      <bulk-edit>&amp;addToBasket=bulkEdit</bulk-edit> 
    </add-to-basket>  
    <sortable-attributes>
      <score>&amp;sortBy=score</score>  
      <name>&amp;sortBy=sort_name</name>  
      <creationDate>&amp;sortBy=sort_creationDate_t</creationDate>  
      <lastModifiedDate>&amp;sortBy=sort_lastModifiedDate_t</lastModifiedDate>  
      <viewCount>&amp;sortBy=viewCount</viewCount>  
      <orderCount>&amp;sortBy=orderCount</orderCount>  
      <ratingAverage>&amp;sortBy=ratingAverage</ratingAverage>  
      <creatorFamilyName>&amp;sortBy=sort_creatorFamilyName_s</creatorFamilyName>  
      <creatorFullName>&amp;sortBy=sort_creatorFullName_s</creatorFullName>  
      <creatorGivenName>&amp;sortBy=sort_creatorGivenName_s</creatorGivenName>  
      <creatorUserName>&amp;sortBy=sort_creatorUserName_s</creatorUserName>  
      <lastModifierFamilyName>&amp;sortBy=sort_lastModifierFamilyName_s</lastModifierFamilyName>  
      <lastModifierFullName>&amp;sortBy=sort_lastModifierFullName_s</lastModifierFullName>  
      <lastModifierGivenName>&amp;sortBy=sort_lastModifierGivenName_s</lastModifierGivenName>  
      <lastModifierUserName>&amp;sortBy=sort_lastModifierUserName_s</lastModifierUserName>  
      <att869>&amp;sortBy=sort_att869_s</att869>  
      <att10>&amp;sortBy=sort_att10_s</att10>  
      <att871>&amp;sortBy=sort_att871_s</att871>  
      <att870>&amp;sortBy=sort_att870_s</att870>  
      <att5>&amp;sortBy=sort_att5_s</att5>  
      <att8>&amp;sortBy=sort_att8_t</att8> 
    </sortable-attributes>  
    <sort-directions>
      <asc>&amp;orderBy=asc</asc>  
      <desc>&amp;orderBy=desc</desc> 
    </sort-directions>  
    <items-per-page>&amp;itemsPerPage=</items-per-page>  
    <do-redirect>&amp;doRedirect=</do-redirect>  
    <page-no>&amp;pageNo=</page-no>  
    <previous-actions/> 
  </action-extensions>  
  <search-term>+(+(+active:true +att7:1 +att8:[0 TO $current_date] +(ITEM_LINK_DEF641:$current_item_id OR ITEM_LINK_DEF642:$current_item_id OR ITEM_LINK_DEF643:$current_item_id OR ITEM_LINK_DEF644:$current_item_id OR ITEM_LINK_DEF645:$current_item_id OR ITEM_LINK_DEF646:$current_item_id OR ITEM_LINK_DEF647:$current_item_id OR ITEM_LINK_DEF648:$current_item_id OR ITEM_LINK_DEF649:$current_item_id OR ITEM_LINK_DEF650:$current_item_id OR ITEM_LINK_DEF652:$current_item_id OR ITEM_LINK_DEF669:$current_item_id OR ITEM_LINK_DEF670:$current_item_id or ITEM_LINK_DEF691:$current_item_id))) +locale:en -(ITEM_LINK_DEF9:57303 OR ITEM_LINK_DEF9:57302)</search-term>  
  <sorting>
    <first-sort-field>att8</first-sort-field>  
    <first-sort-field-direction>desc</first-sort-field-direction>  
    <second-sort-field>lastModifiedDate</second-sort-field>  
    <second-sort-field-direction>desc</second-sort-field-direction> 
  </sorting>  
  <items/> 
</search-results>

0
1.
1.
1.
1.
0
/vyre4/pub_模块/pageview4757_70?门户:componentId=16821,门户:type=action,门户:IsSecurity=false,门户:portletMode=xml
/vyre4/pub_模块/pageview4757_70?门户:componentId=16821,门户:type=action,门户:IsSecurity=false,门户:portletMode=xml
&;addToBasket=订单
&;addToBasket=bulkEdit
&;sortBy=分数
&;sortBy=排序名称
&;sortBy=排序创建日期
&;sortBy=sort\u lastModifiedDate\u t
&;sortBy=视图计数
&;sortBy=订单数量
&;sortBy=比率平均值
&;sortBy=sort\u creatorFamilyName\u s
&;sortBy=sort\u creatorFullName\u s
&;sortBy=sort\u creatorGivenName\u s
&;sortBy=sort\u creatorUserName\u s
&;sortBy=sort\u lastModifierFamilyName\u s
&;sortBy=sort\u lastModifierFullName\u s
&;sortBy=sort\u lastModifierGivenName\u s
&;sortBy=sort\u lastModifierUserName\u s
&;sortBy=sort_att869_s
&;sortBy=排序附件10
&;sortBy=sort_att871_s
&;sortBy=排序时间870秒
&;sortBy=排序附件5
&;sortBy=排序附件8
&;orderBy=asc
&;orderBy=desc
&;itemsPerPage=
&;doRedirect=
&;pageNo=
+(+(+活动:真+att7:1+att8:[0到$current_date]+(ITEM_-LINK_-DEF641:$current_-ITEM_-id或ITEM_-LINK_-DEF642:$current_-ITEM_-id或ITEM_-LINK_-DEF644:$current_-id或ITEM_-LINK_-DEF645:$current_-ITEM_-id或ITEM_-LINK_-DEF647:$current_-ITEM_-id或ITEM_-LINK_-DEF648:$current_-ITEM_-id或ITEM_-LINK_-DEF649:$0:$current_item_id或item_LINK_DEF652:$current_item_id或item_LINK_DEF669:$current_item_id或item_LINK_DEF691:$current_item_id))+locale:en-(item_LINK_DEF9:57303或item_LINK_DEF9:57
   <?xml version="1.0" encoding="UTF-8"?>

<search-results>
  <size>0</size>  
  <start-index>1</start-index>  
  <end-index>1</end-index>  
  <page-no>1</page-no>  
  <no-of-pages>1</no-of-pages>  
  <items-per-page>0</items-per-page>  
  <forward>
    <action>/vyre4/pub_module/pageview4757_70?portal:componentId=16821&amp;portal:type=action&amp;portal:isSecure=false&amp;portal:portletMode=xml</action> 
  </forward>  
  <action-path>/vyre4/pub_module/pageview4757_70?portal:componentId=16821&amp;portal:type=action&amp;portal:isSecure=false&amp;portal:portletMode=xml</action-path>  
  <action-extensions>
    <add-to-basket>
      <order>&amp;addToBasket=order</order>  
      <bulk-edit>&amp;addToBasket=bulkEdit</bulk-edit> 
    </add-to-basket>  
    <sortable-attributes>
      <score>&amp;sortBy=score</score>  
      <name>&amp;sortBy=sort_name</name>  
      <creationDate>&amp;sortBy=sort_creationDate_t</creationDate>  
      <lastModifiedDate>&amp;sortBy=sort_lastModifiedDate_t</lastModifiedDate>  
      <viewCount>&amp;sortBy=viewCount</viewCount>  
      <orderCount>&amp;sortBy=orderCount</orderCount>  
      <ratingAverage>&amp;sortBy=ratingAverage</ratingAverage>  
      <creatorFamilyName>&amp;sortBy=sort_creatorFamilyName_s</creatorFamilyName>  
      <creatorFullName>&amp;sortBy=sort_creatorFullName_s</creatorFullName>  
      <creatorGivenName>&amp;sortBy=sort_creatorGivenName_s</creatorGivenName>  
      <creatorUserName>&amp;sortBy=sort_creatorUserName_s</creatorUserName>  
      <lastModifierFamilyName>&amp;sortBy=sort_lastModifierFamilyName_s</lastModifierFamilyName>  
      <lastModifierFullName>&amp;sortBy=sort_lastModifierFullName_s</lastModifierFullName>  
      <lastModifierGivenName>&amp;sortBy=sort_lastModifierGivenName_s</lastModifierGivenName>  
      <lastModifierUserName>&amp;sortBy=sort_lastModifierUserName_s</lastModifierUserName>  
      <att869>&amp;sortBy=sort_att869_s</att869>  
      <att10>&amp;sortBy=sort_att10_s</att10>  
      <att871>&amp;sortBy=sort_att871_s</att871>  
      <att870>&amp;sortBy=sort_att870_s</att870>  
      <att5>&amp;sortBy=sort_att5_s</att5>  
      <att8>&amp;sortBy=sort_att8_t</att8> 
    </sortable-attributes>  
    <sort-directions>
      <asc>&amp;orderBy=asc</asc>  
      <desc>&amp;orderBy=desc</desc> 
    </sort-directions>  
    <items-per-page>&amp;itemsPerPage=</items-per-page>  
    <do-redirect>&amp;doRedirect=</do-redirect>  
    <page-no>&amp;pageNo=</page-no>  
    <previous-actions/> 
  </action-extensions>  
  <search-term>+(+(+active:true +att7:1 +att8:[0 TO $current_date] +(ITEM_LINK_DEF641:$current_item_id OR ITEM_LINK_DEF642:$current_item_id OR ITEM_LINK_DEF643:$current_item_id OR ITEM_LINK_DEF644:$current_item_id OR ITEM_LINK_DEF645:$current_item_id OR ITEM_LINK_DEF646:$current_item_id OR ITEM_LINK_DEF647:$current_item_id OR ITEM_LINK_DEF648:$current_item_id OR ITEM_LINK_DEF649:$current_item_id OR ITEM_LINK_DEF650:$current_item_id OR ITEM_LINK_DEF652:$current_item_id OR ITEM_LINK_DEF669:$current_item_id OR ITEM_LINK_DEF670:$current_item_id or ITEM_LINK_DEF691:$current_item_id))) +locale:en -(ITEM_LINK_DEF9:57303 OR ITEM_LINK_DEF9:57302)</search-term>  
  <sorting>
    <first-sort-field>att8</first-sort-field>  
    <first-sort-field-direction>desc</first-sort-field-direction>  
    <second-sort-field>lastModifiedDate</second-sort-field>  
    <second-sort-field-direction>desc</second-sort-field-direction> 
  </sorting>  
  <items/> 
</search-results>