DITA Storm supports editing in WYSIWYG mode. It means that you can edit your XML documents as they were already processed by XSL transformation. To optimize performance and user experience on the brower end, XSL templates need to be compiled before provided to DITA Storm. Compilation process is simple and involves execution of command line script written in Java.
XSL Element Support
Currently DITA Storm supports following XSL elements and attributes:
| Element/Attribute |
Notes |
<xsl:stylesheet>
...
</xsl:styleheet>
|
. |
<xsl:template name='...' match='...'>
...
</xsl:template>
|
See XPath Support section for details. |
<xsl:apply-templates select='...'/>
|
See XPath Support section for details. |
<xsl:value-of select='...'/>
|
See XPath Support section for details. |
<xsl:choose>
...
</xsl:choose>
|
. |
<xsl:when test='...'>
...
</xsl:when>
|
See XPath Support section for details. |
<xsl:otherwise>
...
</xsl:otherwise>
|
. |
<xsl:if test='...'>
...
</xsl:if>
|
See XPath Support section for details. |
<xsl:call-template name='...'/>
|
. |
<xsl:attribute name='...'>
...
</xsl:attribute>
|
. |
XPath Support
Currently DITA Storm supports following XPath elements
| XPath Element |
Notes |
| /... |
match from root node |
| .../... |
match child nodes/elements |
|
ncname
|
match tag with specified name |
|
ncname[...] |
match tag or node according to specified condition |
| .. |
parent node |
| (...) |
bracket grouping |
|
number
|
numbers |
| @ncname
|
attributes |
| 'literal' |
strings |
| position() |
1-based position index |
| name() |
name of the element |
| $editing |
at this time editor only supports 'editing' variable. It is always set to 'true' in the context of the edtor. It can be used to differentiate between normal and DITA Editor rendering when same XSL transformation is being used for both. |
| ... = ... |
equals operator |
| ... != ... |
not-equals operator |
| ... | ... |
union operator on set of nodes |
| ... and ... |
boolean 'and' operator |
| ... or ... |
boolean 'or' operator |