首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ISAM/WebSEAL的XSL转换规则

ISAM/WebSEAL的XSL转换规则
EN

Stack Overflow用户
提问于 2016-10-29 06:17:47
回答 2查看 870关注 0票数 0

我希望为用XSL编写的ISAM/WebSEAL创建一个http转换规则,该脚本只需要读取几个querystring属性,并将它们转换为同名的请求头,然后从URI中删除查询字符串。我似乎想不出如何从URI中删除属性和值,有什么建议吗?

我已经尝试了IBM示例规则上的示例,但它们对我不起作用。

任何技巧或技巧都将非常感谢。

鲁迪加

EN

回答 2

Stack Overflow用户

发布于 2017-04-14 19:19:29

请记住,ISAM (至少是联合模块)使用JavaScript转换规则--不使用XSLT

有关通用https://philipnye.com/posts/tag/mapping-rules/中的ISAM和映射规则的更多信息,请参阅此博客

票数 0
EN

Stack Overflow用户

发布于 2018-03-15 20:59:30

下面是我的stash中修改URI的转换规则:

代码语言:javascript
复制
<?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>

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40313943

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档