我希望为用XSL编写的ISAM/WebSEAL创建一个http转换规则,该脚本只需要读取几个querystring属性,并将它们转换为同名的请求头,然后从URI中删除查询字符串。我似乎想不出如何从URI中删除属性和值,有什么建议吗?
我已经尝试了IBM示例规则上的示例,但它们对我不起作用。
任何技巧或技巧都将非常感谢。
鲁迪加
发布于 2017-04-14 19:19:29
请记住,ISAM (至少是联合模块)使用JavaScript转换规则--不使用XSLT
有关通用https://philipnye.com/posts/tag/mapping-rules/中的ISAM和映射规则的更多信息,请参阅此博客
发布于 2018-03-15 20:59:30
下面是我的stash中修改URI的转换规则:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!--
Move the RelayState Query String element to the Target Element -->
<!-- Firstly, strip any space elements -->
<xsl:strip-space elements="*" />
<!--
Perform a match on the root of the document. Output the required
HTTPRequestChange elements and then process templates.
-->
<xsl:template match="/">
<HTTPRequestChange>
<xsl:apply-templates />
</HTTPRequestChange>
</xsl:template>
<!--
Match on the URI. Any URI processing should happen within this
template.
-->
<xsl:template match="//HTTPRequest/RequestLine/URI">
<!-- Process the URI here. Output should be in the form if required. -->
<xsl:variable name="s1" select="node()"/>
<URI><xsl:value-of select="replace($s1, 'RelayState', 'Target')"/></URI>
</xsl:template>
https://stackoverflow.com/questions/40313943
复制相似问题