zoukankan      html  css  js  c++  java
  • 为XML元素添加ID

    首先下载Apache xalan,http://xml.apache.org/xalan-j/downloads.html

    使用windows命令行模式,因为我没有设置java path,所以使用了如下的命令行:

    java -cp xalan.jar;serializer.jar;xml-apis.jar;xercesImpl.jar org.apache.xalan.xslt.Process -IN books.xml -XSL idmaker2.xsl -OUT test.xml

    其中IN后面是你要转化的源文件

    XSL后面是XSLT文件

    OUT是输出文件

    参考:

    http://xml.apache.org/xalan-j/commandline.html

    http://lab.tojio.com/2009/03/06/unique-id-for-each-node-in-an-xml-file-en/

    http://www.stylusstudio.com/xsllist/200512/post30240.html

    http://www.roseindia.net/xml/dom/

  • 相关阅读:
    Linux 用户 quote 配置 说明
    Linux 用户和用户组 配置说明
    ORA-00600: [kck_rls_check must use (11,0,0,0,0) or lower] 故障解决
    Oracle Data Guard PING[ARC2]: Heartbeat failed to connect to standby ''. Error is 12514 故障分析
    Oracle 11g RAC OCR 与 db_unique_name 配置关系 说明
    Data Guard 奇葩的 ORA-16191: Primary log shipping client not logged on standby 问题
    Oracle 11gR2 RMAN Duplicate 触发PLS-00201: identifier 'DBMS_RCVCAT.GETDBID' must be declared 错误
    RMAN RAC 到 单实例 duplicate 自动分配通道 触发 ORA-19505 错误
    Secure CRT 自动记录日志 配置 小记
    VBox fdisk 不显示 添加的硬盘 解决方法
  • 原文地址:https://www.cnblogs.com/ainima/p/6331354.html
Copyright © 2011-2022 走看看