社区
XML/XSL
帖子详情
在用xsl将xml文件中的内容提取出来时,为什么总有这个:
sunrain_114
2003-08-13 09:08:03
我在用xsl将xml文件中的内容提取出来时,为什么总有这个:<?xml version="1.0" encoding="UTF-16"?>,是我的xsl写错了?该如何改动呢? 求教了!
还有,
比如说我的xml文件中
<Time>20030714 11:23</Time>
我现在只能提取出20030714 11:23,而我只想要20030714,请问该如何写xsl,才能达到我的要求呢?
...全文
40
3
打赏
收藏
在用xsl将xml文件中的内容提取出来时,为什么总有这个:<?xml version="1.0" encoding="UTF-16"?>
我在用xsl将xml文件中的内容提取出来时,为什么总有这个:,是我的xsl写错了?该如何改动呢? 求教了! 还有, 比如说我的xml文件中 20030714 11:23 我现在只能提取出20030714 11:23,而我只想要20030714,请问该如何写xsl,才能达到我的要求呢?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
saucer
2003-08-13
打赏
举报
回复
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
<xsl:template match="Time">
<xsl:value-of select="substring-before(.,' ')" />
</xsl:template>
</xsl:stylesheet>
sunrain_114
2003-08-13
打赏
举报
回复
谢谢saucer,但是我还是不知道如何把:<?xml version="1.0" encoding="UTF-16"?>去掉
saucer
2003-08-13
打赏
举报
回复
if you are using IE, that is the default encoding, if you are using .NET or Java, there is a way to set output encoding
XML
的代码的编写
xml
version
="
1.0
"
encoding
="
UTF
-8"?><?
xml
-stylesheet type='text/
xsl
' href='_UpgradeReport_Files/UpgradeReport.
xsl
t'?><UpgradeLog> <Properties><Property Name="Solution" Value="CodematicDemo"> </...
动易SF通用信息列表解释版
xml
version
="
1.0
"
encoding
="
UTF
-8"?> <!-- 声明
xml
的版本和使用哪一种编码 --> <
xsl
:stylesheet
version
="
1.0
"
xml
ns:
xsl
=...
hadoop-lzo-0.4.20.jar
xml
version
="
1.0
"
encoding
="
UTF
-8"?> <?
xml
-stylesheet type="text/
xsl
" href="configuration.
xsl
"?> <configuration> <property> <name>io.compression.codecs</name> <value> org.apache.hadoop.io....
C# 做的游戏推箱子
xml
version
="
1.0
"
encoding
="
UTF
-8"?><?
xml
-stylesheet type='text/
xsl
' href='_UpgradeReport_Files/UpgradeReport.
xsl
t'?><UpgradeLog> <Properties><Property Name="Solution" Value="MyGame"> </Property>...
大数据集群搭建.pdf
xml
version
="
1.0
"
encoding
="
UTF
-8"?> <?
xml
-stylesheet type="text/
xsl
" href="configuration.
xsl
"?> <!-- Licensed under the Apache License,
Version
2.0 (the "License"); you may not use this file except ...
XML/XSL
8,906
社区成员
22,678
社区内容
发帖
与我相关
我的任务
XML/XSL
XML/XSL相关问题讨论专区
复制链接
扫一扫
分享
社区描述
XML/XSL相关问题讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章