Skip to content

Instantly share code, notes, and snippets.

@JoshyPHP
Created August 17, 2013 21:19
Show Gist options
  • Save JoshyPHP/6258743 to your computer and use it in GitHub Desktop.
Save JoshyPHP/6258743 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<stylesheet outputMethod="html">
<param name="L_CODE"/>
<param name="L_COLON"/>
<param name="L_IMAGE"/>
<param name="L_SELECT_ALL_CODE"/>
<param name="L_WROTE"/>
<param name="S_VIEWFLASH"/>
<param name="S_VIEWIMG"/>
<param name="S_VIEWSMILIES"/>
<param name="T_SMILIES_PATH"/>
<template>
<match priority="0">p</match>
<element name="p" id="1" empty="maybe">
<closeTag id="1"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0">br</match>
<element name="br" id="2" void="yes" empty="yes">
<closeTag id="2"/>
</element>
</template>
<template>
<match priority="0">et</match>
<match priority="0">i</match>
<match priority="0">st</match>
</template>
<template>
<match priority="0">B</match>
<element name="span" id="3" empty="maybe">
<attribute name="style">
<output type="literal">font-weight: bold</output>
</attribute>
<closeTag id="3"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0">CODE</match>
<element name="dl" id="4">
<attribute name="class">
<output type="literal">codebox</output>
</attribute>
<closeTag id="4"/>
<element name="dt" id="5">
<closeTag id="5"/>
<output type="xpath">$L_CODE</output>
<output type="xpath">$L_COLON</output>
<output type="literal"> </output>
<element name="a" id="6" empty="maybe">
<attribute name="href">
<output type="literal">#</output>
</attribute>
<attribute name="onclick">
<output type="literal">selectCode(this); return false;</output>
</attribute>
<closeTag id="6"/>
<output type="xpath">$L_SELECT_ALL_CODE</output>
</element>
</element>
<element name="dd" id="7">
<closeTag id="7"/>
<element name="code" id="8" empty="maybe">
<closeTag id="8"/>
<applyTemplates/>
</element>
</element>
</element>
</template>
<template>
<match priority="0">COLOR</match>
<element name="span" id="9" empty="maybe">
<attribute name="style">
<output type="literal">color: </output>
<output type="xpath">@color</output>
</attribute>
<closeTag id="9"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0">EMAIL</match>
<element name="a" id="10" empty="maybe">
<attribute name="href">
<output type="literal">mailto:</output>
<output type="xpath">@email</output>
</attribute>
<closeTag id="10"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0">FLASH</match>
<element name="a" id="11" empty="maybe">
<attribute name="href">
<output type="xpath">@url</output>
</attribute>
<attribute name="class">
<output type="literal">postlink</output>
</attribute>
<closeTag id="11"/>
<output type="xpath">@url</output>
</element>
</template>
<template>
<match priority="0.5">FLASH[$S_VIEWFLASH]</match>
<element name="object" id="12">
<attribute name="classid">
<output type="literal">clsid:D27CDB6E-AE6D-11CF-96B8-444553540000</output>
</attribute>
<attribute name="codebase">
<output type="literal">http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0</output>
</attribute>
<attribute name="width">
<output type="xpath">@width</output>
</attribute>
<attribute name="height">
<output type="xpath">@height</output>
</attribute>
<closeTag id="12"/>
<element name="param" id="13" void="yes" empty="yes">
<attribute name="name">
<output type="literal">movie</output>
</attribute>
<attribute name="value">
<output type="xpath">@url</output>
</attribute>
<closeTag id="13"/>
</element>
<element name="param" id="14" void="yes" empty="yes">
<attribute name="name">
<output type="literal">play</output>
</attribute>
<attribute name="value">
<output type="literal">false</output>
</attribute>
<closeTag id="14"/>
</element>
<element name="param" id="15" void="yes" empty="yes">
<attribute name="name">
<output type="literal">loop</output>
</attribute>
<attribute name="value">
<output type="literal">false</output>
</attribute>
<closeTag id="15"/>
</element>
<element name="param" id="16" void="yes" empty="yes">
<attribute name="name">
<output type="literal">quality</output>
</attribute>
<attribute name="value">
<output type="literal">high</output>
</attribute>
<closeTag id="16"/>
</element>
<element name="param" id="17" void="yes" empty="yes">
<attribute name="name">
<output type="literal">allowScriptAccess</output>
</attribute>
<attribute name="value">
<output type="literal">never</output>
</attribute>
<closeTag id="17"/>
</element>
<element name="param" id="18" void="yes" empty="yes">
<attribute name="name">
<output type="literal">allowNetworking</output>
</attribute>
<attribute name="value">
<output type="literal">internal</output>
</attribute>
<closeTag id="18"/>
</element>
<element name="embed" id="19" void="yes" empty="yes">
<attribute name="src">
<output type="xpath">@url</output>
</attribute>
<attribute name="type">
<output type="literal">application/x-shockwave-flash</output>
</attribute>
<attribute name="pluginspage">
<output type="literal">http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash</output>
</attribute>
<attribute name="width">
<output type="xpath">@width</output>
</attribute>
<attribute name="height">
<output type="xpath">@height</output>
</attribute>
<attribute name="play">
<output type="literal">false</output>
</attribute>
<attribute name="loop">
<output type="literal">false</output>
</attribute>
<attribute name="quality">
<output type="literal">high</output>
</attribute>
<attribute name="allowscriptaccess">
<output type="literal">never</output>
</attribute>
<attribute name="allownetworking">
<output type="literal">internal</output>
</attribute>
<closeTag id="19"/>
</element>
</element>
</template>
<template>
<match priority="0.5">FLASH[not($S_VIEWFLASH)]</match>
<match priority="0.5">IMG[not($S_VIEWIMG)]</match>
<applyTemplates/>
</template>
<template>
<match priority="0">I</match>
<element name="span" id="20" empty="maybe">
<attribute name="style">
<output type="literal">font-style: italic</output>
</attribute>
<closeTag id="20"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0.5">IMG[$S_VIEWIMG]</match>
<element name="img" id="21" void="yes" empty="yes">
<attribute name="src">
<output type="xpath">@src</output>
</attribute>
<attribute name="alt">
<output type="xpath">$L_IMAGE</output>
</attribute>
<closeTag id="21"/>
</element>
</template>
<template>
<match priority="0">LIST</match>
<element name="ul" id="22" empty="maybe">
<closeTag id="22"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0.5">LIST[@type]</match>
<element name="ul" id="23" empty="maybe">
<attribute name="style">
<output type="literal">list-style-type: </output>
<output type="xpath">@type</output>
</attribute>
<closeTag id="23"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0.5">LIST[@type and contains('upperlowerdecim',substring(@type,1,5))]</match>
<element name="ol" id="24" empty="maybe">
<attribute name="style">
<output type="literal">list-style-type: </output>
<output type="xpath">@type</output>
</attribute>
<closeTag id="24"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0">LI</match>
<element name="li" id="25" empty="maybe">
<closeTag id="25"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0.5">QUOTE[@author]</match>
<element name="blockquote" id="26">
<closeTag id="26"/>
<element name="div" id="27">
<closeTag id="27"/>
<element name="cite" id="28">
<closeTag id="28"/>
<output type="xpath">@author</output>
<output type="literal"> </output>
<output type="xpath">$L_WROTE</output>
<output type="xpath">$L_COLON</output>
</element>
<applyTemplates/>
</element>
</element>
</template>
<template>
<match priority="0.5">QUOTE[not(@author)]</match>
<element name="blockquote" id="29">
<attribute name="class">
<output type="literal">uncited</output>
</attribute>
<closeTag id="29"/>
<element name="div" id="30" empty="maybe">
<closeTag id="30"/>
<applyTemplates/>
</element>
</element>
</template>
<template>
<match priority="0">SIZE</match>
<element name="span" id="31" empty="maybe">
<attribute name="style">
<output type="literal">font-size: </output>
<output type="xpath">@size</output>
<output type="literal">%; line-height: 116%;</output>
</attribute>
<closeTag id="31"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0">U</match>
<element name="span" id="32" empty="maybe">
<attribute name="style">
<output type="literal">text-decoration: underline</output>
</attribute>
<closeTag id="32"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0">URL</match>
<element name="a" id="33" empty="maybe">
<attribute name="href">
<output type="xpath">@url</output>
</attribute>
<attribute name="class">
<output type="literal">postlink</output>
</attribute>
<closeTag id="33"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0">MYEMAIL</match>
<element name="a" id="34" empty="maybe">
<attribute name="href">
<output type="literal">mailto:</output>
<output type="xpath">@myemail</output>
</attribute>
<closeTag id="34"/>
<applyTemplates/>
</element>
</template>
<template>
<match priority="0.5">E[not($S_VIEWSMILIES)]</match>
<output type="xpath">.</output>
</template>
<template>
<match priority="0">E</match>
<switch>
<case test=".=':ugeek:'">
<element name="img" id="35" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_e_ugeek.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:ugeek:</output>
</attribute>
<attribute name="title">
<output type="literal">Uber Geek</output>
</attribute>
<closeTag id="35"/>
</element>
</case>
<case test=".=':cry:'">
<element name="img" id="36" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_cry.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:cry:</output>
</attribute>
<attribute name="title">
<output type="literal">Crying or Very Sad</output>
</attribute>
<closeTag id="36"/>
</element>
</case>
<case test=".=':oops:'">
<element name="img" id="37" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_redface.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:oops:</output>
</attribute>
<attribute name="title">
<output type="literal">Embarrassed</output>
</attribute>
<closeTag id="37"/>
</element>
</case>
<case test=".=':razz:'or.=':-P'or.=':P'">
<element name="img" id="38" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_razz.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Razz</output>
</attribute>
<closeTag id="38"/>
</element>
</case>
<case test=".=':mad:'or.=':-x'or.=':x'">
<element name="img" id="39" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_mad.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Mad</output>
</attribute>
<closeTag id="39"/>
</element>
</case>
<case test=".=':evil:'">
<element name="img" id="40" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_evil.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:evil:</output>
</attribute>
<attribute name="title">
<output type="literal">Evil or Very Mad</output>
</attribute>
<closeTag id="40"/>
</element>
</case>
<case test=".=':twisted:'">
<element name="img" id="41" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_twisted.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:twisted:</output>
</attribute>
<attribute name="title">
<output type="literal">Twisted Evil</output>
</attribute>
<closeTag id="41"/>
</element>
</case>
<case test=".=':roll:'">
<element name="img" id="42" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_rolleyes.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:roll:</output>
</attribute>
<attribute name="title">
<output type="literal">Rolling Eyes</output>
</attribute>
<closeTag id="42"/>
</element>
</case>
<case test=".=':geek:'">
<element name="img" id="43" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_e_geek.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:geek:</output>
</attribute>
<attribute name="title">
<output type="literal">Geek</output>
</attribute>
<closeTag id="43"/>
</element>
</case>
<case test=".=':mrgreen:'">
<element name="img" id="44" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_mrgreen.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:mrgreen:</output>
</attribute>
<attribute name="title">
<output type="literal">Mr. Green</output>
</attribute>
<closeTag id="44"/>
</element>
</case>
<case test=".=':-|'or.=':|'">
<element name="img" id="45" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_neutral.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Neutral</output>
</attribute>
<closeTag id="45"/>
</element>
</case>
<case test=".=':arrow:'">
<element name="img" id="46" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_arrow.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:arrow:</output>
</attribute>
<attribute name="title">
<output type="literal">Arrow</output>
</attribute>
<closeTag id="46"/>
</element>
</case>
<case test=".=':idea:'">
<element name="img" id="47" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_idea.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:idea:</output>
</attribute>
<attribute name="title">
<output type="literal">Idea</output>
</attribute>
<closeTag id="47"/>
</element>
</case>
<case test=".=':?:'">
<element name="img" id="48" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_question.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:?:</output>
</attribute>
<attribute name="title">
<output type="literal">Question</output>
</attribute>
<closeTag id="48"/>
</element>
</case>
<case test=".=':!:'">
<element name="img" id="49" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_exclaim.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:!:</output>
</attribute>
<attribute name="title">
<output type="literal">Exclamation</output>
</attribute>
<closeTag id="49"/>
</element>
</case>
<case test=".=':lol:'">
<element name="img" id="50" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_lol.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:lol:</output>
</attribute>
<attribute name="title">
<output type="literal">Laughing</output>
</attribute>
<closeTag id="50"/>
</element>
</case>
<case test=".=':cool:'or.='8-)'">
<element name="img" id="51" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_cool.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Cool</output>
</attribute>
<closeTag id="51"/>
</element>
</case>
<case test=".=':wink:'or.=';-)'or.=';)'">
<element name="img" id="52" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_e_wink.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Wink</output>
</attribute>
<closeTag id="52"/>
</element>
</case>
<case test=".=':smile:'or.=':-)'or.=':)'">
<element name="img" id="53" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_e_smile.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Smile</output>
</attribute>
<closeTag id="53"/>
</element>
</case>
<case test=".=':grin:'or.=':-D'or.=':D'">
<element name="img" id="54" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_e_biggrin.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Very Happy</output>
</attribute>
<closeTag id="54"/>
</element>
</case>
<case test=".=':('or.=':-('or.=':sad:'">
<element name="img" id="55" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_e_sad.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Sad</output>
</attribute>
<closeTag id="55"/>
</element>
</case>
<case test=".=':???:'or.=':-?'or.=':?'">
<element name="img" id="56" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_e_confused.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Confused</output>
</attribute>
<closeTag id="56"/>
</element>
</case>
<case test=".=':shock:'">
<element name="img" id="57" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_eek.gif</output>
</attribute>
<attribute name="alt">
<output type="literal">:shock:</output>
</attribute>
<attribute name="title">
<output type="literal">Shocked</output>
</attribute>
<closeTag id="57"/>
</element>
</case>
<case test=".=':eek:'or.=':-o'or.=':o'">
<element name="img" id="58" void="yes" empty="yes">
<attribute name="class">
<output type="literal">smilies</output>
</attribute>
<attribute name="src">
<output type="xpath">$T_SMILIES_PATH</output>
<output type="literal">/icon_e_surprised.gif</output>
</attribute>
<attribute name="alt">
<output type="xpath">.</output>
</attribute>
<attribute name="title">
<output type="literal">Surprised</output>
</attribute>
<closeTag id="58"/>
</element>
</case>
<case>
<output type="xpath">.</output>
</case>
</switch>
</template>
</stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment