我有以下XML:
<?xml version="1.0" encoding="utf-8"?>
<FilterPanel>
<FilterCategory DisplayName="Publication Date" ShowMoreLink="True">
<Filters>
<Filter>
<Value>Any Publication Date</Value>
<Tooltip>Any Publication Date</Tooltip>
<Selection>Implied</Selection>
<Count></Count>
<Percentage></Percentage>
</Filter>
<Filter>
<Value>Before 2013-11-08T03:49:32.4999680Z</Value>
<Tooltip>Before 2013-11-08T03:49:32.4999680Z</Tooltip>
<Selection>Deselected</Selection>
<Count>1568</Count>
<Percentage>0.25</Percentage>
</Filter>
<Filter>
<Value>From 2013-11-08T03:49:32.4999680Z to 2013-11-08T09:46:47.4999808Z</Value>
<Tooltip>From 2013-11-08T03:49:32.4999680Z to 2013-11-
08T09:46:47.4999808Z</Tooltip>
<Selection>Deselected</Selection>
<Count>1568</Count>
<Percentage>0.25</Percentage>
</Filter>
<Filter>
<Value>From 2013-11-08T09:46:47.4999808Z to 2013-11-08T16:23:55.9998464Z</Value>
<Tooltip>From 2013-11-08T09:46:47.4999808Z to 2013-11-
08T16:23:55.9998464Z</Tooltip>
<Selection>Deselected</Selection>
<Count>1568</Count>
<Percentage>0.25</Percentage>
</Filter>
<Filter>
<Value>2013-11-08T16:23:55.9998464Z or later</Value>
<Tooltip>2013-11-08T16:23:55.9998464Z or later</Tooltip>
<Selection>Deselected</Selection>
<Count>1568</Count>
<Percentage>0.25</Percentage>
</Filter>
</Filters>
</FilterCategory>
<FilterCategory DisplayName="Review Date" ShowMoreLink="True">
<Filter>SameasPublciationDateOutput</Filter>
</FilterCategory>
<FilterCategory DisplayName="TEST" ShowMoreLink="True">
<Filter></Filter>
</FilterCategory>
</FilterPanel>
对于以 DisplayName 作为发布日期和审查日期的 FilterCatergories,我想更改 Value 节点的日期格式
DDMMYYYY HH:MM
给定值的格式。
输出应如下所示:
<FilterCategory DisplayName="Publication Date" ShowMoreLink="True">
<Filters>
<Filter>
<Value>Any Publication Date</Value>
<Tooltip>Any Publication Date</Tooltip>
<Selection>Implied</Selection>
<Count></Count>
<Percentage></Percentage>
</Filter>
<Filter>
<Value>Before 08-11-2013 03:49</Value>
<Tooltip>Before 08-11-2013 03:49</Tooltip>
<Selection>Deselected</Selection>
<Count>1568</Count>
<Percentage>0.25</Percentage>
</Filter>
<Filter>
<Value>From 08-11-2013 03:49 to 08-11-2013 09:46</Value>
<Tooltip>From 08-11-2013 03:49 to 08-11-2013 09:46</Tooltip>
<Selection>Deselected</Selection>
<Count>1568</Count>
<Percentage>0.25</Percentage>
</Filter>
<Filter>
<Value>08-11-2013 09:46 to 08-11-2013 16:23</Value>
<Tooltip>08-11-2013 09:46 to 08-11-2013 16:23</Tooltip>
<Selection>Deselected</Selection>
<Count>1568</Count>
<Percentage>0.25</Percentage>
</Filter>
<Filter>
<Value>08-11-2013 16:23 or later</Value>
<Tooltip>08-11-2013 16:23 or later</Tooltip>
<Selection>Deselected</Selection>
<Count>1568</Count>
<Percentage>0.25</Percentage>
</Filter>
</Filters>
我是 XSLT 的新手,不太确定如何实现这一点。任何帮助将不胜感激。
谢谢你。