新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论XSL,XSLT,XSL-FO,CSS等技术
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - XML技术『 XSL/XSLT/XSL-FO/CSS 』 → xsl处理字符 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 15564 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: xsl处理字符 举报  打印  推荐  IE收藏夹 
       本主题类别: 样式表技术(XSL, XSLT, XSL-FO, CSS)    
     fencc 帅哥哟,离线,有人找我吗?天秤座1984-10-6
      
      
      等级:大一(猛啃高等数学)
      文章:21
      积分:136
      门派:XML.ORG.CN
      注册:2008/9/6

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给fencc发送一个短消息 把fencc加入好友 查看fencc的个人资料 搜索fencc在『 XSL/XSLT/XSL-FO/CSS 』的所有贴子 引用回复这个贴子 回复这个贴子 查看fencc的博客楼主
    发贴心情 xsl处理字符

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office"
                xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml"
                xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word"
                xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml"
                xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml"
                xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 wp14">
     <w:body>
      <w:p w:rsidR="00C05BB8" w:rsidRDefault="007C5F01">
       <w:r w:rsidRPr="00691A2B">
        <w:rPr>
         <w:rFonts w:hint="eastAsia"/>
         <w:shd w:val="pct15" w:color="auto" w:fill="FFFFFF"/>
        </w:rPr>
        <w:t>中</w:t>
       </w:r>
       <w:r>
        <w:rPr>
         <w:rFonts w:hint="eastAsia"/>
        </w:rPr>
        <w:t>华人民共和国</w:t>
       </w:r>
       <w:bookmarkStart w:id="0" w:name="_GoBack"/>
       <w:bookmarkEnd w:id="0"/>
      </w:p>
      <w:sectPr w:rsidR="00C05BB8">
       <w:pgSz w:w="11906" w:h="16838"/>
       <w:pgMar w:top="1440" w:right="1800" w:bottom="1440" w:left="1800" w:header="851" w:footer="992" w:gutter="0"/>
       <w:cols w:space="425"/>
       <w:docGrid w:type="lines" w:linePitch="312"/>
      </w:sectPr>
     </w:body>
    </w:document>
    如何使用xsl将这段代码处理结果为

    <a>中<b>华人民共和国
    我写成这样,可结果就是不对

    <?xml version='1.0'?>

    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
     <xsl:output method="html" encoding="GBK" indent="yes"/>

    <xsl:template match="w:p/w:r/w:rPr/w:rFonts">
    [a]<xsl:copy-of select="w:t"/>[b]
    <xsl:apply-templates/>
    </xsl:template>
    </xsl:stylesheet>


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2013/6/28 16:50:00
     
     zhangyan0147 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:3
      积分:62
      门派:XML.ORG.CN
      注册:2013/11/25

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给zhangyan0147发送一个短消息 把zhangyan0147加入好友 查看zhangyan0147的个人资料 搜索zhangyan0147在『 XSL/XSLT/XSL-FO/CSS 』的所有贴子 引用回复这个贴子 回复这个贴子 查看zhangyan0147的博客2
    发贴心情 
    Time September 18 details U.S. company Electronic Art (EA) concerning the rummage around for [url=http://lol.vipmmobank.com/]elo boost[/url] new main operating formal finally results . the company declared that the last govt vp of Semitic deity Actions St. Phil Wilson (Andrew Wilson) can finish the last main operating formal (John Riccitiello) in Objective of this season the starting staying by the resignation , because the new go of [url=http://lol.vipmmobank.com/]elo boosting[/url].
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2013/11/25 13:16:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 XSL/XSLT/XSL-FO/CSS 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/3/28 16:14:47

    本主题贴数2,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    54.688ms