Adding new stuff
This commit is contained in:
parent
9ef8a96f9a
commit
0b3d063cb3
1580 changed files with 0 additions and 0 deletions
110
vim-plugins/bundle/xptemplate/ftplugin/xslt/xslt.xpt.vim
Normal file
110
vim-plugins/bundle/xptemplate/ftplugin/xslt/xslt.xpt.vim
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
XPTemplate priority=lang- keyword=<
|
||||
|
||||
let s:f = g:XPTfuncs()
|
||||
|
||||
XPTvar $TRUE 1
|
||||
XPTvar $FALSE 0
|
||||
XPTvar $NULL NULL
|
||||
XPTvar $UNDEFINED NULL
|
||||
|
||||
XPTvar $VOID_LINE /* void */;
|
||||
XPTvar $CURSOR_PH cursor
|
||||
|
||||
XPTvar $BRif ' '
|
||||
XPTvar $BRel \n
|
||||
XPTvar $BRloop ' '
|
||||
XPTvar $BRstc ' '
|
||||
XPTvar $BRfun ' '
|
||||
|
||||
XPTinclude
|
||||
\ _common/common
|
||||
\ html/html
|
||||
\ xml/xml
|
||||
|
||||
XPTvar $CL <!--
|
||||
XPTvar $CM
|
||||
XPTvar $CR -->
|
||||
XPTinclude
|
||||
\ _comment/doubleSign
|
||||
|
||||
" ========================= Function and Variables =============================
|
||||
|
||||
" ================================= Snippets ===================================
|
||||
|
||||
|
||||
|
||||
|
||||
XPT sort " <xsl:sort ...
|
||||
<xsl:sort select="`what^" />
|
||||
|
||||
|
||||
XPT valueof " <xsl:value-of ...
|
||||
<xsl:value-of select="`what^" />
|
||||
|
||||
|
||||
XPT apply " <xsl:apply-templates ...
|
||||
<xsl:apply-templates select="`what^" />
|
||||
|
||||
|
||||
XPT param " <xsl:param ...
|
||||
<xsl:param name="`name^" `select...{{^select="`expr^"`}}^ />
|
||||
|
||||
|
||||
XPT import " <xsl:import ...
|
||||
<xsl:import href="`URI^" />
|
||||
|
||||
|
||||
XPT include " <xsl:include ...
|
||||
<xsl:include href="`URI^" />
|
||||
|
||||
|
||||
XPT stylesheet " <xsl:stylesheet ...
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
|
||||
|
||||
<xsl:output method="xml" indent="yes"/>
|
||||
|
||||
<xsl:template match="/`cursor^">
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
||||
XPT template " <xsl:template match= ...
|
||||
<xsl:template match="`match^">
|
||||
`cursor^
|
||||
</xsl:template>
|
||||
|
||||
|
||||
XPT foreach " <xsl:for-each select= ...
|
||||
<xsl:for-each select="`match^">
|
||||
`cursor^
|
||||
</xsl:for-each>
|
||||
|
||||
|
||||
XPT if " <xsl:if test= ...
|
||||
<xsl:if test="`test^">
|
||||
`cursor^
|
||||
</xsl:if>
|
||||
|
||||
|
||||
XPT choose " <xsl:choose ...
|
||||
XSET job=$CL void $CR
|
||||
<xsl:choose>
|
||||
<xsl:when test="`expr^">
|
||||
`job^
|
||||
</xsl:when>`...^
|
||||
<xsl:when test="`ex^">
|
||||
`job^
|
||||
</xsl:when>`...^
|
||||
`otherwise...{{^<xsl:otherwise>
|
||||
`cursor^
|
||||
</xsl:otherwise>`}}^
|
||||
</xsl:choose>
|
||||
|
||||
|
||||
XPT when " <xsl:when test= ...
|
||||
<xsl:when test="`ex^">
|
||||
`what^
|
||||
</xsl:when>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue