在XSLT 3.0中获取日,月,年,小时,分钟和秒

发布于 2025-02-07 07:18:36 字数 562 浏览 2 评论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

明媚殇 2025-02-14 07:18:36

我能够找到解决方案。

在我的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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文