在XSLT 3.0中获取日,月,年,小时,分钟和秒
在我的XSLT文件中,我需要记录当前的时间戳,在该文件中,我
<DateTimeOrdered>
<Day>3</Day>
<Month>6</Month>
<Year>2022</Year>
<Hour24>7</Hour24>
<Minute>7</Minute>
<Second>7</Second>
<MilliSeconds>150</MilliSeconds>
</DateTimeOrdered>
在C#中击中XML标签的后端数据库,这很容易实现,请有人请问我可以建议我如何在XSLT文件中实现吗?
In my XSLT file, I need to record the current timestamp on which I am hitting the backend database in below XML tags
<DateTimeOrdered>
<Day>3</Day>
<Month>6</Month>
<Year>2022</Year>
<Hour24>7</Hour24>
<Minute>7</Minute>
<Second>7</Second>
<MilliSeconds>150</MilliSeconds>
</DateTimeOrdered>
In C# it's very easy to achieve, can someone please suggest me how this can be achieved in the XSLT file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够找到解决方案。
在我的Azure APIM入站政策中,我想在击中后端URL时发布当前的时间戳。
因此,最初,我声明了
enter Image Description
port that声明我使用这些变量,像下面的
在此处输入图像描述
,最后我使用了如下的变量,如下
在此处输入图像描述
I am able to find the solution.
In my Azure APIM Inbound policy, I want to post the current timestamp while hitting the backend URL.
So initially I have declared variables like below
enter image description here
Post that declaration I have used those variables like below
enter image description here
and at the end I used the variable like below
enter image description here