Issue using document() in TeamSite XSL to fetch content of associated dcrs?

We have a requirement to generate the html from dcr via xsl. The DCR contains references to other  DCRs(browse field). While generating the HTML via XSL we need to fetch some values from the associated DCR. Usually such case is handled in sitepublisher component by using document(concat('http://www.interwoven.com/custom'),'/templatedata/AC/Footer/data/test') and pulling the full XML. 

 

Has anyone tried to use the same functionality in teamsite xsl while generating html/xml from the dcr. It doesn't seem to be working like the way it works in Sitepublisher. Also there are no error logs for this .

 

Any pointers?

 

 

Comments

  • The URIResolver you're attempting to use (which is the piece that magically converts the interwoven.com URL into a path to the current workarea) is not available in the FormsPub XSL parser. AFAIK there's no variable given to you that would help here, so you might have to create your own CSPTCompiler implementation that passes the workarea path as additional context to the XSL, along with the DCR being rendered.

TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs