MOSS / WSS Axtarış nəticələri (və dataviews): ham XML data keçirmək

Bu, çox aydın ola bilər, ancaq MOSS proqramlaşdırma imtahan üçün öyrənilməsi zamanı, Hesab edirəm ki, istifadəçi interfeysi vasitəsilə bir axtarış sorğu faktiki XML almaq üçün olduqca asan olduğunu öyrəndim.

Aşağıdakı kimi biri tez metodu:

  • Ətraflı axtarış daxil.
  • Bəzi qaytarır bir axtarış həyata.
  • Səhifənin Düzenle (site parametrləri ilə).
  • Change the XSL to the following:

<?xml variant="1.0" encoding="utf-8"?>
<
XSL:stylesheet variant="1.0" xmlns:XSL="http://www.w3.org/1999/XSL/Transform">
<
XSL:output üsul="xml" variant="1.0" encoding="UTF-8" indent="bəli"/>
<
XSL:şablon matç="/">
<
pre>
<
XSL:copy-of seçmək="*"/>
</
pre>
</
XSL:şablon>
</
XSL:stylesheet>

  • Hit apply.
  • View Source in the browser.

Note that the <pre> tag doesn’t do much except serve as a convenient marker when you view the results.

This trick can be very helpful when working with managed properties and customizing search. It will provide a definitive list of the XML available for you to use in your xslt which would have been very helpful the last 25 times I created some customized search results.

This ought to work for dataviews as well, though I have not tested that out as yet.

Şəkil Yükləmə

E-poçt ünvanından dərc olunmayacaq. Lazım alanlar qeyd olunur *