Using pub.xql API from XSL

I'm trying to get publication information in Reach via XSL using the following:

<xsl:variable name="config_url">
<xsl:value-of select="concat($abs_internal_web_url, 'pub.xql?action=get_config&amp;name=trisoft.fmapid.lng&amp;lang=en&amp;pub=', $pub.id)"/>
</xsl:variable>


<xsl:variable name="pub_config">
<xsl:value-of select="document($config_url)/configitem/@value"/>
</xsl:variable>

The URL works as expected from the browser address bar, and displays the <configitem> element in question, but the XSL document() function returns nothing.

The "list" action in this API actually triggers a fatal error rather than just silently returning nothing.

The thing that puzzles me is that I've been able to use the XSL document() function to open XML documents when using the content.xql API.

Is this feasible in XSL alone?

emoji
Parents Reply Children
No Data