⌘ + ⌦ Forward kill word
⌘ + ⌫ Backward kill word
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> | |
<topic id="descendant" xml:lang="en-us"> | |
<title>Descendant</title> | |
<body> | |
<p>Hello, world!</p> | |
</body> | |
</topic> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE dita PUBLIC "-//OASIS//DTD DITA 1.2 Composite//EN" "ditabase.dtd"> | |
<dita> | |
<topic id="ditabase" xml:lang="en-us"> | |
<title>DITA</title> | |
<body> | |
<fig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd"> | |
<map id="id-1217" title="dita-ot/dita-ot #1217"> | |
<topicref href="topic1.dita"/> | |
<topicref href="topic2.dita" print="no"/> | |
<topicref href="topic3.dita"/> | |
<reltable> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd"> | |
<map id="id-1646" title="dita-ot/dita-ot #1646"> | |
<topicref href="topic1.dita" navtitle="Autobots" keys="autobots"/> | |
<topicref href="topic2.dita" keys="decepticons"> | |
<topicmeta> | |
<navtitle>Decepticons</navtitle> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<val> | |
<prop action="flag" att="audience" val="my-audience"> | |
<startflag> | |
<alt-text>my-audience (</alt-text> | |
</startflag> | |
<endflag> | |
<alt-text>)</alt-text> | |
</endflag> | |
</prop> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> | |
<topic id="universe" xml:lang="en-us"> | |
<title>Life, the Universe and Everything</title> | |
<body> | |
<section id="everything"> | |
<title>Douglas Adams</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd"> | |
<map id="id-1596" title="dita-ot/dita-ot #1596"> | |
<topicref href="topic1.dita"/> | |
<topicref href="topic2.dita"/> | |
</map> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaultTasks 'ditaOt' | |
def ditaHome = System.env.DITA_HOME | |
def antHome = System.env.ANT_HOME | |
task ditaOt << { | |
ant.java(classname: "org.apache.tools.ant.launch.Launcher", fork: "true", failonerror: "true") { | |
ant.jvmarg(value: "-Dant.library.dir=${antHome}/lib") | |
ant.classpath { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns dita | |
(:require [saxon :as xml]) | |
(:import (net.sf.saxon.trans XmlCatalogResolver))) | |
(def xmldoc (slurp "/path/to/ditamap")) | |
(. net.sf.saxon.trans.XmlCatalogResolver | |
(setCatalog "/path/to/dita-ot/src/main/catalog-dita.xml" (.getUnderlyingConfiguration xml/proc) true)) | |
(def xdmnode (xml/compile-xml xmldoc)) |
OlderNewer