Language: XML

Untitled XML (6-May @ 20:56)

Syntax Highlighted Code

  1. <root>
  2.     <retinaNodesInfo>
  3.         <node type='folder' name='Wheel' id='1'>
  4.             <node type='folder' name='WheelHorn' id='2'>
  5. [85 more lines...]

Plain Code

<root>
    <retinaNodesInfo>
        <node type='folder' name='Wheel' id='1'>
            <node type='folder' name='WheelHorn' id='2'>
                <node type='folder' name='Red' id='3'>
                    <node type='content' id='4' name='Horn_Red_A' img='Horn_Red_A' x='270' y='416' w='117' h='118' />
                </node>
            </node>
            <node type='folder' name='WheelButtons' id='5'>
                <node type='folder' name='WheelLeftRedButton' id='6'>
                    <node type='content' id='7' name='WheelLeftRedButton_off' img='WheelLeftRedButton_off' x='150' y='470' w='32' h='32' />
                    <node type='content' id='8' name='WheelLeftRedButton_on' img='WheelLeftRedButton_on' x='150' y='470' w='32' h='32' />
                    <node type='content' id='9' name='WheelLeftRedButton_glow' img='WheelLeftRedButton_glow' x='112' y='432' w='108' h='110' />
                </node>
                <node type='folder' name='WheelLeftPurpleButton' id='10'>
                    <node type='content' id='11' name='WheelLeftPurpleButton_off' img='WheelLeftPurpleButton_off' x='194' y='465' w='41' h='42' />
                    <node type='content' id='12' name='WheelLeftPurpleButton_on' img='WheelLeftPurpleButton_on' x='194' y='465' w='41' h='42' />
                    <node type='content' id='13' name='WheelLeftPurpleButton_glow' img='WheelLeftPurpleButton_glow' x='169' y='438' w='93' h='95' />
                </node>
                <node type='folder' name='WheelBottomYellowButton' id='14'>
                    <node type='content' id='15' name='WheelBottomYellowButton_off' img='WheelBottomYellowButton_off' x='313' y='567' w='42' h='44' />
                    <node type='content' id='16' name='WheelBottomYellowButton_on' img='WheelBottomYellowButton_on' x='313' y='567' w='42' h='44' />
                </node>
                <node type='folder' name='WheelBottomRedButton' id='17'>
                    <node type='content' id='18' name='WheelBottomRedButton_off' img='WheelBottomRedButton_off' x='320' y='618' w='33' h='34' />
                    <node type='content' id='19' name='WheelBottomRedButton_on' img='WheelBottomRedButton_on' x='320' y='618' w='33' h='34' />
                </node>
                <node type='folder' name='WheelRightGreenButton' id='20'>
                    <node type='content' id='21' name='WheelRightGreenButton_off' img='WheelRightGreenButton_off' x='419' y='452' w='41' h='42' />
                    <node type='content' id='22' name='WheelRightGreenButton_on' img='WheelRightGreenButton_on' x='419' y='452' w='41' h='42' />
                </node>
                <node type='folder' name='WheelRightRedButton' id='23'>
                    <node type='content' id='24' name='WheelRightRedButton_off' img='WheelRightRedButton_off' x='470' y='454' w='32' h='32' />
                    <node type='content' id='25' name='WheelRightRedButton_on' img='WheelRightRedButton_on' x='470' y='454' w='32' h='32' />
                </node>
            </node>
            <node type='folder' name='WheelBase' id='26'>
                <node type='content' id='27' name='SteeringWheel_InnerCircle' img='SteeringWheel_InnerCircle' x='241' y='390' w='175' h='175' />
                <node type='content' id='28' name='SteeringWheel_OuterCirlcle' img='SteeringWheel_OuterCirlcle' x='71' y='222' w='512' h='509' />
                <node type='content' id='29' name='SteeringWheel_Spires' img='SteeringWheel_Spires' x='102' y='432' w='452' h='276' />
                <node type='content' id='30' name='SteeringWheel_BaseCircle' img='SteeringWheel_BaseCircle' x='219' y='371' w='213' h='214' />
            </node>
        </node>
    </retinaNodesInfo>
    <standardNodesInfo>
        <node type='folder' name='Wheel' id='1'>
            <node type='folder' name='WheelHorn' id='2'>
                <node type='folder' name='Red' id='3'>
                    <node type='content' id='4' name='Horn_Red_A' img='Horn_Red_A' x='135' y='208' w='59' h='59' />
                </node>
            </node>
            <node type='folder' name='WheelButtons' id='5'>
                <node type='folder' name='WheelLeftRedButton' id='6'>
                    <node type='content' id='7' name='WheelLeftRedButton_off' img='WheelLeftRedButton_off' x='75' y='235' w='16' h='16' />
                    <node type='content' id='8' name='WheelLeftRedButton_on' img='WheelLeftRedButton_on' x='75' y='235' w='16' h='16' />
                    <node type='content' id='9' name='WheelLeftRedButton_glow' img='WheelLeftRedButton_glow' x='56' y='216' w='54' h='55' />
                </node>
                <node type='folder' name='WheelLeftPurpleButton' id='10'>
                    <node type='content' id='11' name='WheelLeftPurpleButton_off' img='WheelLeftPurpleButton_off' x='97' y='232' w='21' h='21' />
                    <node type='content' id='12' name='WheelLeftPurpleButton_on' img='WheelLeftPurpleButton_on' x='97' y='232' w='21' h='21' />
                    <node type='content' id='13' name='WheelLeftPurpleButton_glow' img='WheelLeftPurpleButton_glow' x='84' y='219' w='47' h='48' />
                </node>
                <node type='folder' name='WheelBottomYellowButton' id='14'>
                    <node type='content' id='15' name='WheelBottomYellowButton_off' img='WheelBottomYellowButton_off' x='156' y='284' w='22' h='21' />
                    <node type='content' id='16' name='WheelBottomYellowButton_on' img='WheelBottomYellowButton_on' x='156' y='284' w='22' h='21' />
                </node>
                <node type='folder' name='WheelBottomRedButton' id='17'>
                    <node type='content' id='18' name='WheelBottomRedButton_off' img='WheelBottomRedButton_off' x='160' y='309' w='17' h='17' />
                    <node type='content' id='19' name='WheelBottomRedButton_on' img='WheelBottomRedButton_on' x='160' y='309' w='17' h='17' />
                </node>
                <node type='folder' name='WheelRightGreenButton' id='20'>
                    <node type='content' id='21' name='WheelRightGreenButton_off' img='WheelRightGreenButton_off' x='209' y='226' w='21' h='21' />
                    <node type='content' id='22' name='WheelRightGreenButton_on' img='WheelRightGreenButton_on' x='209' y='226' w='21' h='21' />
                </node>
                <node type='folder' name='WheelRightRedButton' id='23'>
                    <node type='content' id='24' name='WheelRightRedButton_off' img='WheelRightRedButton_off' x='235' y='227' w='16' h='16' />
                    <node type='content' id='25' name='WheelRightRedButton_on' img='WheelRightRedButton_on' x='235' y='227' w='16' h='16' />
                </node>
            </node>
            <node type='folder' name='WheelBase' id='26'>
                <node type='content' id='27' name='SteeringWheel_InnerCircle' img='SteeringWheel_InnerCircle' x='120' y='195' w='88' h='87' />
                <node type='content' id='28' name='SteeringWheel_OuterCirlcle' img='SteeringWheel_OuterCirlcle' x='36' y='111' w='255' h='255' />
                <node type='content' id='29' name='SteeringWheel_Spires' img='SteeringWheel_Spires' x='51' y='216' w='226' h='138' />
                <node type='content' id='30' name='SteeringWheel_BaseCircle' img='SteeringWheel_BaseCircle' x='109' y='185' w='107' h='108' />
            </node>
        </node>
    </standardNodesInfo>
</root>

Untitled XML (21-Apr @ 21:57)

Syntax Highlighted Code

  1. &#172;&#172;&#248;C&#8730;@ *&#338;&#163;&#172;&#248;%&#8730;&#960;@ &#338;&#163;(X&#8730;&#8804;&#338;&#245;Y&#8730;4z)*&#338;&#251;ke&#8730;&#338;&#245;&#8730;4iYx
  2. T
  3. tZ(Z&#8730;&#8804;tx&#338;&#242;iy&#8730;&#8804;Dz&#8730;&#172;X&#8730;&#8804;T&#338;&#242;Hh&#8730;T
  4. &#172;Y:J
  5. DxiI

Plain Code

Untitled XML (21-Apr @ 21:56)

Syntax Highlighted Code

  1. &#172;&#172;&#248;C&#8730;@ *&#338;&#163;&#172;&#248;%&#8730;&#960;@ &#338;&#163;(X&#8730;&#8804;&#338;&#245;Y&#8730;4z)*&#338;&#251;ke&#8730;&#338;&#245;&#8730;4iYx
  2. T
  3. tZ(Z&#8730;&#8804;tx&#338;&#242;iy&#8730;&#8804;Dz&#8730;&#172;X&#8730;&#8804;T&#338;&#242;Hh&#8730;T
  4. &#172;Y:J
  5. DxiI

Plain Code

Untitled XML (27-Mar @ 01:30)

Syntax Highlighted Code

  1. :d htƒ€ 10 1kà  0Ï€*+€0@r ó ‡  ,È g%* ã  Ô.€ ÿ– 5ÿºŠ
  2. K€ NwrTest M    €/9 @ 94e tchednes€s !`€
  3. ò‹
  4. lyă
  5. [11 more lines...]

Plain Code

:d htƒ€ 10 1kà  0Ï€*+€0@r ó ‡  ,È g%* ã  Ô.€ ÿ– 5ÿºŠ
K€ NwrTest M    €/9 @ 94e tchednes€s !`€
ò‹
lyă
H
GÀú     ] 4ÿ€)ÁuÀ:ùer‡@*AGDW-À)Å ½0 (À6€le  þp   
    È 
  Indian  DdAarmÃ(sÀtling Âj\
‚nÀ$L  `b@`ÿÝon[ýA_ ÿÆÝ…@d À    €,!à š}B2@9Ã0nch  Àw ( Àû€]A7yA%€/ÁF Â/`ÁBÂ$ PA
C-tit@9 ¤Ä@roc@—ÁC@¤ort-b@¨ed marshCJC - Ï wint€C僯e€+wr  C3„)JiáWÍ„ck 0;"á 2G "àŠ8çWàÆ dÀE[p:‚@
 
ckageáZSB)ÿ¼b,‹!?Ân ip `p>9"o"" ¡%^ba,Á5 y@í. aÀ»€ bmeÿ‹qÃ
ath¢
!:Ibðrida xa1 Bc rBak Îe`f„ulÁeÿ” :xÿ”`$áCÁ{o.nC*  Â8asseBaund#/ apsb R[ x
baw[ ,8ap )J€0q# J .0G.Å€e#!gäif ‘#BVƒ¢pCed;`D0Ì #ƒ€>+ `}T „Bparo äp-uÂp!RÏà¢%bÀ%uÿéìv€à˜€0 ÿ.éÅã1 m5% 1`Orap€… Áâshrin Zb‡l¢ -$“ ¦«an¥«˜"ñy#]`@"ÁÁJ     ŠÀ½àell-Á%M @,3ö "à¼sÂG$ÀŠ*  IslandG§ @‚ithÌ/AÀ)WRAF#f@##ner$veÃckC@ÆkCõà raiÁ Aá @`'„XladbI1Ãsea
"Ü-/D% 

Untitled XML (14-Mar @ 14:27)

Syntax Highlighted Code

  1. & ä x X T È & ä Ì  é Ä b   V ø Þ è / Æ é   /  ® ç W       Q    é ¹  À B ß      ã      ˜ ¯ Ë s
  2. r à     w Ý n ˜ é  Ý á « –   ¢ é 8 v ­   ã   Ž Û         V H "   § ~ é   %   û K n   b å Á      ä   § W Î a û +   = Ì a Œ Š     € n +          õ•w éÇ6£š¯ÒB ט
  3.  
  4.  

Plain Code

& ä x X T È & ä Ì  é Ä b   V ø Þ è / Æ é   /  ® ç W       Q    é ¹  À B ß      ã      ˜ ¯ Ë s 
r à     w Ý n ˜ é  Ý á « –   ¢ é 8 v ­   ã   Ž Û         V H "   § ~ é   %   û K n   b å Á      ä   § W Î a û +   = Ì a Œ Š     € n +          õ•w éÇ6£š¯ÒB ט

Untitled XML (9-Feb @ 18:59)

Syntax Highlighted Code

  1. MzExODgxLTAyNDU3NC0wMTM=

Plain Code

MzExODgxLTAyNDU3NC0wMTM=

Untitled XML (20-Jan @ 22:00)

Syntax Highlighted Code

  1. |  à  D  ¨     p  Ô  8  œ     d  È  ,    ô  X  ¼     „  è  L  °    x  Ü  @  ¤    

Plain Code

|  à  D  ¨    p  Ô  8  œ     d  È  ,    ô  X  ¼     „  è  L  °    x  Ü  @  ¤     

Untitled XML (2-Oct @ 06:36)

Syntax Highlighted Code

  1. html { overflow-x: auto; }
  2. BODY { font-family: Verdana, Tahoma, Arial, sans-serif;font-size: 11px;margin: 0px;padding: 0px;background url: (http://darkboopalace.b1.jcink.com/uploads/darkboopalace/c82bb834-shroobskin2.png);text-align: center;color: #E8E8E8; }
  3. body { background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/c82bb834-shroobskin2.png); }
  4. TABLE, TR, TD { font-family: Verdana, Tahoma, Arial, sans-serif;font-size: 11px;color: #E8E8E8;background-image: url(http://i29.tinypic.com/34e7p5c.png); }
  5. [95 more lines...]

Plain Code

html { overflow-x: auto; }
BODY { font-family: Verdana, Tahoma, Arial, sans-serif;font-size: 11px;margin: 0px;padding: 0px;background url: (http://darkboopalace.b1.jcink.com/uploads/darkboopalace/c82bb834-shroobskin2.png);text-align: center;color: #E8E8E8; }
body { background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/c82bb834-shroobskin2.png); }
TABLE, TR, TD { font-family: Verdana, Tahoma, Arial, sans-serif;font-size: 11px;color: #E8E8E8;background-image: url(http://i29.tinypic.com/34e7p5c.png); }
#ipbwrapper { text-align: center;width: 80.96916%;margin: 5px auto 0 auto; }
a:link, a:visited, a:active { text-decoration: underline;color: #E8E8E8; }
a:hover { text-decoration: underline;color: #E8E8E8; }
.caldate { text-align: right;font-weight: bold;font-size: 11px;padding: 4px;margin: 0px;color: #E8E8E8;background-color: #000; }
#calendarname { font-size: 22px;font-weight: bold; }
#padandcenter { margin-left: auto;margin-right: auto;text-align: center;padding: 14px 0px 14px 0px; }
#profilename { font-size: 28px;font-weight: bold; }
#photowrap { padding: 6px; }
#phototitle { font-size: 24px;border-bottom: 1px solid black; }
#photoimg { text-align: center;margin-top: 15px; }
#ucpmenu { line-height: 150%;width: 22%;border: 1px solid #345487;background-image: url(http://i29.tinypic.com/34e7p5c.png); }
#ucpmenu a { text-decoration: none; }
#ucpmenu a:hover { text-decoration: underline; }
#ucpmenu p { padding: 2px 5px 6px 9px;margin: 0px; }
#ucpcontent { line-height: 150%;width: auto;border: 1px solid #000;background-image: url(http://i29.tinypic.com/34e7p5c.png); }
#ucpcontent p { padding: 10px;margin: 0px; }
#ipsbanner { position: absolute;top: 0px;right: 5%; }
#ipsbanner { position:absolute; top:0px;right:5%; }
#logostrip { 
    border:1px solid #345487; 
    background-image:url(style_images/2/altlogostrip-2.gif);
    padding:0px;margin:0px;
}
#submenu { font-size: 10px;font-weight: bold;margin-bottom: 3px;color: #3A4F6C;border: 1px solid #C2CFDF;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
#submenu a:link, #submenu a:visited, #submenu a:active { font-weight: bold;font-size: 10px;text-decoration: none;color: #3A4F6C; }
#submenu a:hover { text-decoration: underline; }
#userlinks { border: 1px solid #C2CFDF;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
#userlinks a { text-decoration: none; }
#userlinks a:hover { text-decoration: underline; }
#navstrip { font-weight: bold;padding: 6px 0px 6px 0px; }
.activeuserstrip { padding: 6px;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
.normalname { font-size: 12px;font-weight: bold;color: #000; }
.normalname a:link, .normalname a:visited, .normalname a:active { font-size: 12px; }
.unreg { font-size: 11px;font-weight: bold;color: #E8E8E8; }
.post1 { background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin1.png); }
.post2 { background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin1.png); }
.postdetails { font-size: 10px;color: #E8E8E8; }
.postcolor { font-size: 12px;line-height: 160%;color: #E8E8E8; }
.postlinksbar { padding: 3px;margin-top: 1px;font-size: 10px;border-left: 1px solid #F5F9FD;color: #E8E8E8    border-right:1px solid #F5F9FD;background-color: #000; }
.signature { font-size: 10px;line-height: 150%;color: #E8E8E8; }
.row1 { background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin1.png); }
.row2 { background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin1.png); }
.row2 a { text-decoration: none;color: #E8E8E8; }
.row2 a:hover { text-decoration: underline; }
.row3 { background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin1.png); }
.row4 { background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin1.png); }
.darkrow1 { color: #E8E8E8;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
th.darkrow1 { text-align: left; }
.darkrow2 { font-size: 1px;color: #E8E8E8;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
div.darkrow2 { font-size: 11px;background-color: #E8E8E8; }
.darkrow3 { color: #E8E8E8;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
.hlight { background-color: #DFE6EF; }
.dlight { background-color: #EEF2F7; }
.maintitle { vertical-align: middle;font-weight: bold;padding: 8px 0px 8px 5px;color: #FFF;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin5.png); }
.maintitle a:link, .maintitle  a:visited, .maintitle  a:active { text-decoration: none;color: #FFF; }
.maintitle a:hover { text-decoration: underline; }
.titlemedium { font-weight: bold;padding: 6px;margin: 0px;color: #E8E8E8;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
.titlemedium  a:link, .titlemedium  a:visited, .titlemedium  a:active { text-decoration: underline;color: #E8E8E8;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
.plainborder { background-color: #F5F9FD;border: 1px solid #345487; }
.tableborder { padding: 0px;margin: 0px;width: 100%;background-color: #FFF;border: 1px solid #072A66; }
.tablefill { padding: 6px;background-color: #F5F9FD;border: 1px solid #345487; }
.tablepad { padding: 6px;background-color: #F5F9FD;border: 0 !important; }
.tablebasic { width: 100%;padding: 0px 0px 0px 0px;margin: 0px;border: 0px; }
.wrapmini { float: left;line-height: 1.5em;width: 25%; }
.pagelinks { float: left;line-height: 1.2em;width: 35%; }
.desc { font-size: 10px;color: #E8E8E8; }
.edit { font-size: 9px; }
.searchlite { font-weight: bold;color: #F00;background-color: #FF0; }
#QUOTE { white-space: normal;font-family: Verdana, Arial;font-size: 11px;padding: 2px;margin-top: 2px;color: #E8E8E8;background-color: #000;border: 1px solid #576984; }
#CODE { white-space: normal;font-family: Courier, Courier New, Verdana, Arial;font-size: 11px;padding: 2px;margin-top: 2px;color: #E8E8E8;background-color: #000;border: 1px solid #576984; }
form { display: inline; }
label { cursor: pointer; }
fieldset.search { padding: 6px;line-height: 150%; }
.forminput, .textinput, .radiobutton, .checkbox { font-size: 11px;font-family: verdana, helvetica, sans-serif;vertical-align: middle;margin-top: 2px;color: #E8E8E8;background-color: #000;border: 1px solid #576984; }
.codebuttons { font-size: 10px;font-family: verdana, helvetica, sans-serif;vertical-align: middle;margin-top: 2px;color: #E8E8E8;background-color: #000;border: 1px solid #576984; }
.thin { padding: 6px 0px 6px 0px;line-height: 140%;margin: 2px 0px 2px 0px;border-top: 1px solid #FFF;border-bottom: 1px solid #FFF; }
.thin a { text-decoration: none; }
.pformstrip { font-weight: bold;padding: 5px;margin-top: 1px;color: #E8E8E8;background-image: url(http://darkboopalace.b1.jcink.com/uploads/darkboopalace/shroobskin4.png); }
.pformleft { padding: 6px;margin-top: 1px;width: 25%;border-top: 1px solid #C2CFDF;border-right: 1px solid #C2CFDF;background-color: #000; }
.pformleftw { padding: 6px;margin-top: 1px;width: 40%;border-top: 1px solid #C2CFDF;border-right: 1px solid #C2CFDF;background-color: #000; }
.pformright { padding: 6px;margin-top: 1px;border-top: 1px solid #C2CFDF;background-color: #000; }
.copyright { font-family: Verdana, Tahoma, Arial, Sans-Serif;font-size: 9px;line-height: 12px; }
img { vertical-align: middle;border: 0px; }
img.attach { padding: 2px;border: 2px outset #EEF2F7; }
form div.tableborder div.pformstrip { border-bottom: 1px solid #fff;border-top: none; }
table.tablebasic td.pformleft { border: none; }
table.tablebasic td.pformleftw { border: none; }
table.tablebasic td.pformright { border: none; }
.purple { font-weight: bold;color: purple; }
.red { font-weight: bold;color: red; }
.green { font-weight: bold;color: green; }
.blue { font-weight: bold;color: blue; }
.orange { font-weight: bold;color: #F90; }
.warngood { color: green; }
.warnbad { color: red; }

Untitled XML (29-Jul @ 06:06)

Syntax Highlighted Code

  1. Ÿ2 Í=KŒ]Å•/·¤Óm©-KFâ2´°¹u

Plain Code

Ÿ2Í=KŒ]Å•/·¤Óm©-KFâ2´°¹u

Untitled XML (20-Jan @ 09:36)

ripienaar.devco.net

Syntax Highlighted Code

  1. <beans
  2.   xmlns="http://www.springframework.org/schema/beans"
  3.   xmlns:amq="http://activemq.apache.org/schema/core"
  4.   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. [70 more lines...]

Plain Code

<beans
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:amq="http://activemq.apache.org/schema/core"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
  http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">

    <broker xmlns="http://activemq.apache.org/schema/core" brokerName="stomp1-foo" useJmx="true" persistent="false">
        <destinationPolicy>
          <policyMap>
            <policyEntries>
              <policyEntry topic="mcollective.>" gcInactiveDestinations="true" inactiveTimoutBeforeGC="30000" producerFlowControl="false"/>
              <policyEntry topic=">" gcInactiveDestinations="true" inactiveTimoutBeforeGC="30000"/>
              <policyEntry queue=">" gcInactiveDestinations="true" inactiveTimoutBeforeGC="30000"/>
            </policyEntries>
          </policyMap>
        </destinationPolicy>

        <managementContext>
          <managementContext connectorPort="1099" jmxDomainName="org.apache.activemq"/>
        </managementContext>

        <networkConnectors>
          <networkConnector name="stomp1-stomp3" uri="static:(tcp://monitor3.fooltd.net:6166)" userName="amq" password="xxx" duplex="true" decreaseNetworkConsumerPriority="true" networkTTL="2" dynamicOnly="true"/>
        </networkConnectors>

        <!--
        <persistenceAdapter>
            <kahaDB directory="activemq-data" journalMaxFileLength="32mb"/>
        </persistenceAdapter>
        -->

        <plugins>
          <statisticsBrokerPlugin/>
          <simpleAuthenticationPlugin>
            <users>
            <!-- removed -->
            </users>
          </simpleAuthenticationPlugin>
          <authorizationPlugin>
            <map>
              <authorizationMap>
                <authorizationEntries>
                  <authorizationEntry queue=">" write="admins" read="admins" admin="admins" />
                  <authorizationEntry topic=">" write="admins" read="admins" admin="admins" />
                </authorizationEntries>
              </authorizationMap>
            </map>
          </authorizationPlugin>
        </plugins>

        <systemUsage>
          <systemUsage>
            <memoryUsage>
              <memoryUsage limit="80 mb" />
            </memoryUsage>
            <storeUsage>
              <storeUsage limit="1 gb" />
            </storeUsage>
            <tempUsage>
              <tempUsage limit="100 mb" />
            </tempUsage>
          </systemUsage>
        </systemUsage>

        <transportConnectors>
          <transportConnector name="openwire" uri="tcp://0.0.0.0:6166"/>
          <transportConnector name="stomp"   uri="stomp://0.0.0.0:6163"/>
        </transportConnectors>

    </broker>

    <import resource="jetty.xml"/>
</beans>

Your Price blogger theme (3-Nov @ 18:55)

desbest.myopenid.com

Syntax Highlighted Code

  1.  <?xml version="1.0" encoding="UTF-8" ?>
  2.   <!DOCTYPE html (View Source for full doctype...)>
  3. - <html b:version="2" class="v2" expr:dir="data:blog.languageDirection" xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://www.google.com/2005/gml/b" xmlns:data="http://www.google.com/2005/gml/data" xmlns:expr="http://www.google.com/2005/gml/expr">
  4. - <head>
  5. [1171 more lines...]

Plain Code

  <?xml version="1.0" encoding="UTF-8" ?> 
  <!DOCTYPE html (View Source for full doctype...)> 
- <html b:version="2" class="v2" expr:dir="data:blog.languageDirection" xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://www.google.com/2005/gml/b" xmlns:data="http://www.google.com/2005/gml/data" xmlns:expr="http://www.google.com/2005/gml/expr">
- <head>
  <meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible" /> 
- <b:if cond="data:blog.isMobile">
  <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0" name="viewport" /> 
  <b:else /> 
  <meta content="width=1100" name="viewport" /> 
  </b:if>
  <b:include data="blog" name="all-head-content" /> 
- <title>
  <data:blog.pageTitle /> 
  </title>
- <b:skin>
- <![CDATA[ /*
-----------------------------------------------
Blogger Template Style
Name:     Ethereal
Designer: Jason Morrow
URL:      jasonmorrow.etsy.com
----------------------------------------------- */

/* Variable definitions
   ====================
   <Variable name="keycolor" description="Main Color" type="color" default="#000000" value="#3dc67e"/>

   <Group description="Body Text" selector="body">
     <Variable name="body.font" description="Font" type="font"
         default="normal normal 13px Arial, Tahoma, Helvetica, FreeSans, sans-serif" value="normal normal 16px Arial, Tahoma, Helvetica, FreeSans, sans-serif;"/>
     <Variable name="body.text.color" description="Text Color" type="color" default="#666666" value="#005863"/>
   </Group>

   <Group description="Background" selector=".body-fauxcolumns-outer">
     <Variable name="body.background.color" description="Outer Background" type="color" default="#fb5e53" value="#3dc67e"/>
     <Variable name="content.background.color" description="Main Background" type="color" default="#ffffff" value="#b9c0d0"/>
     <Variable name="body.border.color" description="Border Color" type="color" default="#fb5e53" value="#b9c0d0"/>
   </Group>

   <Group description="Links" selector=".main-inner">
     <Variable name="link.color" description="Link Color" type="color" default="#2198a6" value="#3da56e"/>
     <Variable name="link.visited.color" description="Visited Color" type="color" default="#4d469c" value="#46949c"/>
     <Variable name="link.hover.color" description="Hover Color" type="color" default="$(link.color)" value="#3da56e"/>
   </Group>

   <Group description="Blog Title" selector=".header h1">
     <Variable name="header.font" description="Font" type="font"
         default="normal normal 60px Times, 'Times New Roman', FreeSerif, serif" value="normal normal 20px Verdana, Geneva, sans-serif;"/>
     <Variable name="header.text.color" description="Text Color" type="color" default="#ff8b8b" value="#3da56e"/>
   </Group>

   <Group description="Blog Description" selector=".header .description">
     <Variable name="description.text.color" description="Description Color" type="color"
         default="#666666" value="#666666"/>
   </Group>

   <Group description="Tabs Text" selector=".tabs-inner .widget li a">
     <Variable name="tabs.font" description="Font" type="font"
         default="normal normal 12px Arial, Tahoma, Helvetica, FreeSans, sans-serif" value="normal normal 12px Arial, Tahoma, Helvetica, FreeSans, sans-serif"/>
     <Variable name="tabs.selected.text.color" description="Selected Color" type="color" default="#ffffff" value="#ffffff"/>
     <Variable name="tabs.text.color" description="Text Color" type="color" default="$(body.text.color)" value="#666666"/>
   </Group>

   <Group description="Tabs Background" selector=".tabs-outer .PageList">
     <Variable name="tabs.selected.background.color" description="Selected Color" type="color" default="#ffa183" value="#4effa2"/>
     <Variable name="tabs.background.color" description="Background Color" type="color" default="#ffdfc7" value="#c2fae4"/>
     <Variable name="tabs.border.bevel.color" description="Bevel Color" type="color" default="#fb5e53" value="#c2fae4"/>
   </Group>

   <Group description="Post Title" selector="h3.post-title, h4, h3.post-title a">
     <Variable name="post.title.font" description="Font" type="font"
         default="normal normal 24px Times, Times New Roman, serif" value="normal normal 24px Times, Times New Roman, serif"/>
     <Variable name="post.title.text.color" description="Text Color" type="color" default="#2198a6" value="#3dc67e"/>
   </Group>

   <Group description="Gadget Title" selector="h2">
     <Variable name="widget.title.font" description="Title Font" type="font"
        default="normal bold 12px Arial, Tahoma, Helvetica, FreeSans, sans-serif" value="normal bold 12px Verdana, Geneva, sans-serif"/>
     <Variable name="widget.title.text.color" description="Text Color" type="color" default="$(body.text.color)" value="#000000"/>
     <Variable name="widget.title.border.bevel.color" description="Bevel Color" type="color" default="#dbdbdb" value="#dbdbdb"/>
   </Group>

   <Group description="Accents" selector=".main-inner .widget">
     <Variable name="widget.alternate.text.color" description="Alternate Color" type="color" default="#cccccc" value="#666666"/>
     <Variable name="widget.border.bevel.color" description="Bevel Color" type="color" default="#dbdbdb" value="#dbdbdb"/>
   </Group>

   <Variable name="body.background" description="Body Background" type="background"
       color="$(body.background.color)" default="$(color) none repeat-x scroll top left" value="$(color) url(http://4.bp.blogspot.com/_4LuuX7t8jC8/THpb1Ker0oI/AAAAAAAAAMM/n-mEQ6iZpDw/s1600-R/back.jpg) repeat scroll top center"/>
   <Variable name="body.background.gradient" description="Body Gradient Cap" type="url"
       default="none" value="none"/>
   <Variable name="body.background.imageBorder" description="Body Image Border" type="url"
       default="none" value="none"/>
   <Variable name="body.background.imageBorder.position.left" description="Body Image Border Left" type="length"
       default="0" value="0"/>
   <Variable name="body.background.imageBorder.position.right" description="Body Image Border Right" type="length"
       default="0" value="0"/>
   <Variable name="header.background.gradient" description="Header Background Gradient" type="url" default="none" value="none"/>
   <Variable name="content.background.gradient" description="Content Gradient" type="url" default="none" value="url(http://www.blogblog.com/1kt/ethereal/white-fade.png)"/>

   <Variable name="link.decoration" description="Link Decoration" type="string" default="none" value="none"/>
   <Variable name="link.visited.decoration" description="Link Visited Decoration" type="string" default="$(link.decoration)" value="$(link.decoration)"/>
   <Variable name="link.hover.decoration" description="Link Hover Decoration" type="string" default="underline" value="underline"/>

   <Variable name="widget.padding.top" description="Widget Padding Top" type="length" default="15px" value="15px"/>

   <Variable name="date.space" description="Date Space" type="length" default="15px" value="15px"/>

   <Variable name="post.first.padding.top" description="First Post Padding Top" type="length" default="0" value="0"/>

   <Variable name="startSide" description="Side where text starts in blog language" type="automatic" default="left" value="left"/>
   <Variable name="endSide" description="Side where text ends in blog language" type="automatic" default="right" value="right"/>
*/

/* Content
----------------------------------------------- */
body {
  font: $(body.font);
  color: $(body.text.color);
  background: $(body.background);
}

html body .content-outer {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

a:link {
  text-decoration: $(link.decoration);
  color: $(link.color);
}

a:visited {
  text-decoration: $(link.visited.decoration);
  color: $(link.visited.color);
}

a:hover {
  text-decoration: $(link.hover.decoration);
  color: $(link.hover.color);
}

.main-inner {
  padding-top: $(date.space);
}

.body-fauxcolumn-outer {
  background: transparent $(body.background.gradient) repeat-x scroll top center;
}

.content-fauxcolumns .fauxcolumn-inner {
  background: $(content.background.color) $(content.background.gradient) repeat-x scroll top left;
  border-left: 1px solid $(body.border.color);
  border-right: 1px solid $(body.border.color);
}

/* Flexible Background
----------------------------------------------- */
.content-fauxcolumn-outer .fauxborder-left {
  width: 100%;
  padding-left: $(body.background.imageBorder.position.left);
  margin-left: -$(body.background.imageBorder.position.left);
  background-color: transparent;
  background-image: $(body.background.imageBorder);
  background-repeat: no-repeat;
  background-position: left top;
}


.content-fauxcolumn-outer .fauxborder-right {
  margin-right: -$(body.background.imageBorder.position.right);
  width: $(body.background.imageBorder.position.right);
  background-color: transparent;
  background-image: $(body.background.imageBorder);
  background-repeat: no-repeat;
  background-position: right top;
}


/* Columns
----------------------------------------------- */

.content-inner {
  padding: 0;
}

/* Header
----------------------------------------------- */
.header-inner {
  padding: 27px 0 3px;
}

.header-inner .section {
  margin: 0 35px;
}

.Header h1 {
  font: $(header.font);
  color: $(header.text.color);
}

.Header h1 a {
  color: $(header.text.color);
}

.Header .description {
  font-size: 115%;
  color: $(description.text.color);
}

.header-inner .Header .titlewrapper,
.header-inner .Header .descriptionwrapper {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
}

/* Tabs
----------------------------------------------- */
.tabs-outer {
  position: relative;
  background: transparent;
}

.tabs-cap-top, .tabs-cap-bottom {
  position: absolute;
  width: 100%;
}

.tabs-cap-bottom {
  bottom: 0;
}

.tabs-inner {
  padding: 0;
}

.tabs-inner .section {
  margin: 0 35px;
}

*+html body .tabs-inner .widget li {
  padding: 1px;
}

.PageList {
  border-bottom: 1px solid $(tabs.border.bevel.color);
}

.tabs-inner .widget li.selected a,
.tabs-inner .widget li a:hover {
  position: relative;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  -webkit-border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -goog-ms-border-top-left-radius: 5px;
  -goog-ms-border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;

  background: $(tabs.selected.background.color) none ;
  color: $(tabs.selected.text.color);
}

.tabs-inner .widget li a {
  display: inline-block;
  margin: 0;
  margin-right: 1px;
  padding: .65em 1.5em;
  font: $(tabs.font);
  color: $(tabs.text.color);
  background-color: $(tabs.background.color);

  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  -webkit-border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -goog-ms-border-top-left-radius: 5px;
  -goog-ms-border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

/* Headings
----------------------------------------------- */
h2 {
  font: $(widget.title.font);
  color: $(widget.title.text.color);
}

/* Widgets
----------------------------------------------- */
.main-inner .column-left-inner {
  padding: 0 0 0 20px;
}

.main-inner .column-left-inner .section {
  margin-right: 0;
}

.main-inner .column-right-inner {
  padding: 0 20px 0 0;
}

.main-inner .column-right-inner .section {
  margin-left: 0;
}

.main-inner .section {
  padding: 0;
}

.main-inner .widget {
  padding: 0 0 15px;
  margin: 20px 0;
  border-bottom: 1px solid $(widget.border.bevel.color);
}

.main-inner .widget h2 {
  margin: 0;
  padding: .6em 0 .5em;
}

.footer-inner .widget h2 {
  padding: 0 0 .4em;
}

.main-inner .widget h2 + div, .footer-inner .widget h2 + div {
  padding-top: $(widget.padding.top);
}

.main-inner .widget .widget-content {
  margin: 0;
  padding: 15px 0 0;
}

.main-inner .widget ul, .main-inner .widget #ArchiveList ul.flat {
  margin: -$(widget.padding.top) -15px -15px;
  padding: 0;

  list-style: none;
}

.main-inner .sidebar .widget h2 {
  border-bottom: 1px solid $(widget.title.border.bevel.color);
}

.main-inner .widget #ArchiveList {
  margin: -$(widget.padding.top) 0 0;
}

.main-inner .widget ul li, .main-inner .widget #ArchiveList ul.flat li {
  padding: .5em 15px;
  text-indent: 0;
}

.main-inner .widget #ArchiveList ul li {
  padding-top: .25em;
  padding-bottom: .25em;
}

.main-inner .widget ul li:first-child, .main-inner .widget #ArchiveList ul.flat li:first-child {
  border-top: none;
}

.main-inner .widget ul li:last-child, .main-inner .widget #ArchiveList ul.flat li:last-child {
  border-bottom: none;
}

.main-inner .widget .post-body ul {
  padding: 0 2.5em;
  margin: .5em 0;

  list-style: disc;
}

.main-inner .widget .post-body ul li {
  padding: 0.25em 0;
  margin-bottom: .25em;
  color: $(body.text.color);
  border: none;
}

.footer-inner .widget ul {
  padding: 0;

  list-style: none;
}

.widget .zippy {
  color: $(widget.alternate.text.color);
}

/* Posts
----------------------------------------------- */
.main.section {
  margin: 0 20px;
}

body .main-inner .Blog {
  padding: 0;
  background-color: transparent;
  border: none;
}

.main-inner .widget h2.date-header {
  border-bottom: 1px solid $(widget.title.border.bevel.color);
}

.date-outer {
  position: relative;
  margin: $(date.space) 0 20px;
}

.date-outer:first-child {
  margin-top: 0;
}

.date-posts {
  clear: both;
}

.post-outer, .inline-ad {
  border-bottom: 1px solid $(widget.border.bevel.color);
  padding: 30px 0;
}

.post-outer {
  padding-bottom: 10px;
}

.post-outer:first-child {
  padding-top: $(post.first.padding.top);
  border-top: none;
}

.post-outer:last-child, .inline-ad:last-child {
  border-bottom: none;
}

.post-body img {
  padding: 8px;
}

h3.post-title, h4 {
  font: $(post.title.font);
  color: $(post.title.text.color);
}

h3.post-title a {
  font: $(post.title.font);
  color: $(post.title.text.color);
  text-decoration: none;
}

h3.post-title a:hover {
  color: $(link.hover.color);
  text-decoration: underline;
}

.post-header {
  margin: 0 0 1.5em;
}

.post-body {
  line-height: 1.4;
}

.post-footer {
  margin: 1.5em 0 0;
}

#blog-pager {
  padding: 15px;
}

.blog-feeds, .post-feeds {
  margin: 1em 0;
  text-align: center;
}

.post-outer .comments {
  margin-top: 2em;
}

/* Footer
----------------------------------------------- */
.footer-inner {
  padding: 30px 0;
  overflow: hidden;
}



  ]]> 
  </b:skin>
- <b:template-skin>
  <b:variable default="930px" name="content.width" type="length" value="860px" /> 
  <b:variable default="0" name="main.column.left.width" type="length" value="0px" /> 
  <b:variable default="360px" name="main.column.right.width" type="length" value="260px" /> 
- <![CDATA[       body {
        min-width: $(content.width);
      }

      .content-outer, .content-fauxcolumn-outer, .region-inner {
        min-width: $(content.width);
        max-width: $(content.width);
        _width: $(content.width);
      }

      .main-inner .columns {
        padding-left: $(main.column.left.width);
        padding-right: $(main.column.right.width);
      }

      .main-inner .fauxcolumn-center-outer {
        left: $(main.column.left.width);
        right: $(main.column.right.width);
        /* IE6 does not respect left and right together */
        _width: expression(this.parentNode.offsetWidth -
            parseInt("$(main.column.left.width)") -
            parseInt("$(main.column.right.width)") + 'px');
      }

      .main-inner .fauxcolumn-left-outer {
        width: $(main.column.left.width);
      }

      .main-inner .fauxcolumn-right-outer {
        width: $(main.column.right.width);
      }

      .main-inner .column-left-outer {
        width: $(main.column.left.width);
        right: 100%;
        margin-left: -$(main.column.left.width);
      }

      .main-inner .column-right-outer {
        width: $(main.column.right.width);
        margin-right: -$(main.column.right.width);
      }

      #layout {
        min-width: 0;
      }

      #layout .content-outer {
        min-width: 0;
        width: 800px;
      }

      #layout .region-inner {
        min-width: 0;
        width: auto;
      }
      
  ]]> 
  </b:template-skin>
  </head>
- <body expr:class=""loading" + data:blog.mobileClass">
- <div class="body-fauxcolumns">
- <div class="fauxcolumn-outer body-fauxcolumn-outer">
- <div class="cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left">
  <div class="fauxborder-right" /> 
  <div class="fauxcolumn-inner" /> 
  </div>
- <div class="cap-bottom">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
  </div>
  </div>
- <div class="content">
- <div class="content-fauxcolumns">
- <div class="fauxcolumn-outer content-fauxcolumn-outer">
- <div class="cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left">
  <div class="fauxborder-right" /> 
  <div class="fauxcolumn-inner" /> 
  </div>
- <div class="cap-bottom">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
  </div>
  </div>
- <div class="content-outer">
- <div class="content-cap-top cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left content-fauxborder-left">
  <div class="fauxborder-right content-fauxborder-right" /> 
- <div class="content-inner">
- <header>
- <div class="header-outer">
- <div class="header-cap-top cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left header-fauxborder-left">
  <div class="fauxborder-right header-fauxborder-right" /> 
- <div class="region-inner header-inner">
- <b:section class="header" id="header" maxwidgets="1" showaddelement="no">
- <b:widget id="Header1" locked="true" title="Hz Enterprise (Header)" type="Header">
- <b:includable id="main">
- <b:if cond="data:useImage">
- <b:if cond="data:imagePlacement == "BEHIND"">
- <!--       Show image as background to text. You can't really calculate the width
      reliably in JS because margins are not taken into account by any of
      clientWidth, offsetWidth or scrollWidth, so we don't force a minimum
      width if the user is using shrink to fit.
      This results in a margin-width's worth of pixels being cropped. If the
      user is not using shrink to fit then we expand the header.
      
  --> 
- <b:if cond="data:mobile">
- <div id="header-inner">
- <div class="titlewrapper" style="background: transparent">
- <h1 class="title" style="background: transparent; border-width: 0px">
  <b:include name="title" /> 
  </h1>
  </div>
  <b:include name="description" /> 
  </div>
  <b:else /> 
- <div expr:style=""background-image: url(\"" + data:sourceUrl + "\"); " + "background-position: " + data:backgroundPositionStyleStr + "; " + data:widthStyleStr + "min-height: " + data:height + "_height: " + data:height + "background-repeat: no-repeat; "" id="header-inner">
- <div class="titlewrapper" style="background: transparent">
- <h1 class="title" style="background: transparent; border-width: 0px">
  <b:include name="title" /> 
  </h1>
  </div>
  <b:include name="description" /> 
  </div>
  </b:if>
  <b:else /> 
- <!-- Show the image only
  --> 
- <div id="header-inner">
- <a expr:href="data:blog.homepageUrl" style="display: block">
  <img expr:alt="data:title" expr:height="data:height" expr:id="data:widget.instanceId + "_headerimg"" expr:src="data:sourceUrl" expr:width="data:width" style="display: block" /> 
  </a>
- <!-- Show the description
  --> 
- <b:if cond="data:imagePlacement == "BEFORE_DESCRIPTION"">
  <b:include name="description" /> 
  </b:if>
  </div>
  </b:if>
  <b:else /> 
- <!-- No header image 
  --> 
- <div id="header-inner">
- <div class="titlewrapper">
- <h1 class="title">
  <b:include name="title" /> 
  </h1>
  </div>
  <b:include name="description" /> 
  </div>
  </b:if>
  </b:includable>
- <b:includable id="title">
- <b:if cond="data:blog.url == data:blog.homepageUrl">
  <data:title /> 
  <b:else /> 
- <a expr:href="data:blog.homepageUrl">
  <data:title /> 
  </a>
  </b:if>
  </b:includable>
- <b:includable id="description">
- <div class="descriptionwrapper">
- <p class="description">
- <span>
  <data:description /> 
  </span>
  </p>
  </div>
  </b:includable>
  </b:widget>
  </b:section>
  </div>
  </div>
- <div class="header-cap-bottom cap-bottom">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
  </div>
  </header>
- <div class="tabs-outer">
- <div class="tabs-cap-top cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left tabs-fauxborder-left">
  <div class="fauxborder-right tabs-fauxborder-right" /> 
- <div class="region-inner tabs-inner">
  <b:section class="tabs" id="crosscol" maxwidgets="1" showaddelement="yes" /> 
  <b:section class="tabs" id="crosscol-overflow" showaddelement="no" /> 
  </div>
  </div>
- <div class="tabs-cap-bottom cap-bottom">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
  </div>
- <div class="main-outer">
- <div class="main-cap-top cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left main-fauxborder-left">
  <div class="fauxborder-right main-fauxborder-right" /> 
- <div class="region-inner main-inner">
- <div class="columns fauxcolumns">
- <div class="fauxcolumn-outer fauxcolumn-center-outer">
- <div class="cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left">
  <div class="fauxborder-right" /> 
  <div class="fauxcolumn-inner" /> 
  </div>
- <div class="cap-bottom">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
  </div>
- <div class="fauxcolumn-outer fauxcolumn-left-outer">
- <div class="cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left">
  <div class="fauxborder-right" /> 
  <div class="fauxcolumn-inner" /> 
  </div>
- <div class="cap-bottom">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
  </div>
- <div class="fauxcolumn-outer fauxcolumn-right-outer">
- <div class="cap-top">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
- <div class="fauxborder-left">
  <div class="fauxborder-right" /> 
  <div class="fauxcolumn-inner" /> 
  </div>
- <div class="cap-bottom">
  <div class="cap-left" /> 
  <div class="cap-right" /> 
  </div>
  </div>
- <!--  corrects IE6 width calculation 
  --> 
- <div class="columns-inner">
- <div class="column-center-outer">
- <div class="column-center-inner">
- <b:section class="main" id="main" showaddelement="no">
- <b:widget id="Blog1" locked="true" title="Blog Posts" type="Blog">
- <b:includable id="nextprev">
- <div class="blog-pager" id="blog-pager">
- <b:if cond="data:newerPageUrl">
- <span id="blog-pager-newer-link">
- <a class="blog-pager-newer-link" expr:href="data:newerPageUrl" expr:id="data:widget.instanceId + "_blog-pager-newer-link"" expr:title="data:newerPageTitle">
  <data:newerPageTitle /> 
  </a>
  </span>
  </b:if>
- <b:if cond="data:olderPageUrl">
- <span id="blog-pager-older-link">
- <a class="blog-pager-older-link" expr:href="data:olderPageUrl" expr:id="data:widget.instanceId + "_blog-pager-older-link"" expr:title="data:olderPageTitle">
  <data:olderPageTitle /> 
  </a>
  </span>
  </b:if>
- <a class="home-link" expr:href="data:blog.homepageUrl">
  <data:homeMsg /> 
  </a>
  </div>
  <div class="clear" /> 
  </b:includable>
- <b:includable id="shareButtons" var="post">
- <a class="share-button sb-email" expr:href="data:post.sharePostUrl + "&target=email"" expr:title="data:top.emailThisMsg" target="_blank">
- <span class="share-button-link-text">
  <data:top.emailThisMsg /> 
  </span>
  </a>
- <a class="share-button sb-blog" expr:href="data:post.sharePostUrl + "&target=blog"" expr:onclick=""window.open(this.href, \"_blank\", \"height=270,width=475\"); return false;"" expr:title="data:top.blogThisMsg" target="_blank">
- <span class="share-button-link-text">
  <data:top.blogThisMsg /> 
  </span>
  </a>
- <a class="share-button sb-twitter" expr:href="data:post.sharePostUrl + "&target=twitter"" expr:title="data:top.shareToTwitterMsg" target="_blank">
- <span class="share-button-link-text">
  <data:top.shareToTwitterMsg /> 
  </span>
  </a>
- <a class="share-button sb-facebook" expr:href="data:post.sharePostUrl + "&target=facebook"" expr:onclick=""window.open(this.href, \"_blank\", \"height=430,width=640\"); return false;"" expr:title="data:top.shareToFacebookMsg" target="_blank">
- <span class="share-button-link-text">
  <data:top.shareToFacebookMsg /> 
  </span>
  </a>
- <a class="share-button sb-buzz" expr:href="data:post.sharePostUrl + "&target=buzz"" expr:onclick=""window.open(this.href, \"_blank\", \"height=415,width=690\"); return false;"" expr:title="data:top.shareToBuzzMsg" target="_blank">
- <span class="share-button-link-text">
  <data:top.shareToBuzzMsg /> 
  </span>
  </a>
  </b:includable>
- <b:includable id="backlinks" var="post">
  <a name="links" /> 
- <h4>
  <data:post.backlinksLabel /> 
  </h4>
- <b:if cond="data:post.numBacklinks != 0">
- <dl class="comments-block" id="comments-block">
- <b:loop values="data:post.backlinks" var="backlink">
- <div class="collapsed-backlink backlink-control">
- <dt class="comment-title">
  <span class="backlink-toggle-zippy"> </span> 
- <a expr:href="data:backlink.url" rel="nofollow">
  <data:backlink.title /> 
  </a>
  <b:include data="backlink" name="backlinkDeleteIcon" /> 
  </dt>
- <dd class="comment-body collapseable">
  <data:backlink.snippet /> 
  </dd>
- <dd class="comment-footer collapseable">
- <span class="comment-author">
  <data:post.authorLabel /> 
  <data:backlink.author /> 
  </span>
- <span class="comment-timestamp">
  <data:post.timestampLabel /> 
  <data:backlink.timestamp /> 
  </span>
  </dd>
  </div>
  </b:loop>
  </dl>
  </b:if>
- <p class="comment-footer">
- <a class="comment-link" expr:href="data:post.createLinkUrl" expr:id="data:widget.instanceId + "_backlinks-create-link"" target="_blank">
  <data:post.createLinkLabel /> 
  </a>
  </p>
  </b:includable>
- <b:includable id="post" var="post">
- <div class="post hentry">
  <a expr:name="data:post.id" /> 
- <b:if cond="data:post.title">
- <h3 class="post-title entry-title">
- <b:if cond="data:post.link">
- <a expr:href="data:post.link">
  <data:post.title /> 
  </a>
  <b:else /> 
- <b:if cond="data:post.url">
- <a expr:href="data:post.url">
  <data:post.title /> 
  </a>
  <b:else /> 
  <data:post.title /> 
  </b:if>
  </b:if>
  </h3>
  </b:if>
- <div class="post-header">
  <div class="post-header-line-1" /> 
  </div>
- <div class="post-body entry-content">
  <data:post.body /> 
  <div style="clear: both;" /> 
- <!--  clear for photos floats 
  --> 
  </div>
- <b:if cond="data:post.hasJumpLink">
- <div class="jump-link">
- <a expr:href="data:post.url + "#more"" expr:title="data:post.title">
  <data:post.jumpText /> 
  </a>
  </div>
  </b:if>
- <div class="post-footer">
- <div class="post-footer-line post-footer-line-1">
- <span class="post-comment-link">
- <b:if cond="data:blog.pageType != "item"">
- <b:if cond="data:blog.pageType != "static_page"">
- <b:if cond="data:post.allowComments">
- <a class="comment-link" expr:href="data:post.addCommentUrl" expr:onclick="data:post.addCommentOnclick">
- <b:if cond="data:post.numComments == 1">
  1 
  <data:top.commentLabel /> 
  <b:else /> 
  <data:post.numComments /> 
  <data:top.commentLabelPlural /> 
  </b:if>
  </a>
  </b:if>
  </b:if>
  </b:if>
  </span>
- <span class="post-icons">
- <!--  email post links 
  --> 
- <b:if cond="data:post.emailPostUrl">
- <span class="item-action">
- <a expr:href="data:post.emailPostUrl" expr:title="data:top.emailPostMsg">
  <img alt="" class="icon-action" height="13" src="http://img1.blogblog.com/img/icon18_email.gif" width="18" /> 
  </a>
  </span>
  </b:if>
- <!--  quickedit pencil 
  --> 
  <b:include data="post" name="postQuickEdit" /> 
  </span>
  </div>
  <div class="post-footer-line post-footer-line-2" /> 
  <div class="post-footer-line post-footer-line-3" /> 
  </div>
  </div>
  </b:includable>
- <b:includable id="status-message">
- <b:if cond="data:navMessage">
- <div class="status-msg-wrap">
- <div class="status-msg-body">
  <data:navMessage /> 
  </div>
- <div class="status-msg-border">
- <div class="status-msg-bg">
- <div class="status-msg-hidden">
  <data:navMessage /> 
  </div>
  </div>
  </div>
  </div>
  <div style="clear: both;" /> 
  </b:if>
  </b:includable>
- <b:includable id="comment-form" var="post">
- <div class="comment-form">
  <a name="comment-form" /> 
- <h4 id="comment-post-message">
  <data:postCommentMsg /> 
  </h4>
- <p>
  <data:blogCommentMessage /> 
  </p>
  <data:blogTeamBlogMessage /> 
  <a expr:href="data:post.commentFormIframeSrc" id="comment-editor-src" /> 
  <iframe allowtransparency="true" class="blogger-iframe-colorize blogger-comment-from-post" frameborder="0" height="410" id="comment-editor" name="comment-editor" src="" width="100%" /> 
  <data:post.friendConnectJs /> 
  <data:post.cmtfpIframe /> 
- <b:if cond="data:showCmtPopup">
  <div id="comment-popup" style="width:100px;height:20px;" /> 
  </b:if>
- <script type="text/javascript">
  BLOG_CMT_createIframe(' 
  <data:post.appRpcRelayPath /> 
  ', ' 
  <data:post.communityId /> 
  '); 
  </script>
  </div>
  </b:includable>
- <b:includable id="backlinkDeleteIcon" var="backlink">
- <span expr:class=""item-control " + data:backlink.adminClass">
- <a expr:href="data:backlink.deleteUrl" expr:title="data:top.deleteBacklinkMsg">
  <img src="//www.blogger.com/img/icon_delete13.gif" /> 
  </a>
  </span>
  </b:includable>
- <b:includable id="postQuickEdit" var="post">
- <b:if cond="data:post.editUrl">
- <span expr:class=""item-control " + data:post.adminClass">
- <a expr:href="data:post.editUrl" expr:title="data:top.editPostMsg">
  <img alt="" class="icon-action" height="18" src="http://img2.blogblog.com/img/icon18_edit_allbkg.gif" width="18" /> 
  </a>
  </span>
  </b:if>
  </b:includable>
- <b:includable id="main" var="top">
- <b:if cond="data:top.showPlusOne">
  <script expr:src="data:top.plusOneJsUrl" /> 
  </b:if>
- <!--  posts 
  --> 
- <div class="blog-posts hfeed">
  <b:include data="top" name="status-message" /> 
  <data:defaultAdStart /> 
- <b:loop values="data:posts" var="post">
- <b:if cond="data:post.isDateStart">
  <b:if cond="data:post.isFirstPost == "false""></div></div></b:if> 
  </b:if>
  <b:if cond="data:post.isDateStart"><div class="date-outer"></b:if> 
- <b:if cond="data:post.dateHeader">
- <h2 class="date-header">
- <span>
  <data:post.dateHeader /> 
  </span>
  </h2>
  </b:if>
  <b:if cond="data:post.isDateStart"><div class="date-posts"></b:if> 
- <div class="post-outer">
  <b:include data="post" name="post" /> 
- <b:if cond="data:blog.pageType == "static_page"">
  <b:include data="post" name="comments" /> 
  </b:if>
- <b:if cond="data:blog.pageType == "item"">
  <b:include data="post" name="comments" /> 
  </b:if>
  </div>
- <b:if cond="data:post.includeAd">
- <b:if cond="data:post.isFirstPost">
  <data:defaultAdEnd /> 
  <b:else /> 
  <data:adEnd /> 
  </b:if>
- <div class="inline-ad">
  <data:adCode /> 
  </div>
  <data:adStart /> 
  </b:if>
- <b:if cond="data:post.trackLatency">
  <data:post.latencyJs /> 
  </b:if>
  </b:loop>
  <b:if cond="data:numPosts != 0"></div></div></b:if> 
  <data:adEnd /> 
  </div>
- <!--  navigation 
  --> 
  <b:include name="nextprev" /> 
- <!--  feed links 
  --> 
- <!--  <b:include name='feedLinks'/> 
  --> 
- <b:if cond="data:top.showStars">
  <script src="//www.google.com/jsapi" type="text/javascript" /> 
- <script type="text/javascript">
  google.load("annotations", "1", {"locale": " 
  <data:top.languageCode /> 
  "}); function initialize() { google.annotations.setApplicationId( 
  <data:top.blogspotReviews /> 
  ); google.annotations.createAll(); google.annotations.fetch(); } google.setOnLoadCallback(initialize); 
  </script>
  </b:if>
  </b:includable>
- <b:includable id="commentDeleteIcon" var="comment">
- <span expr:class=""item-control " + data:comment.adminClass">
- <b:if cond="data:showCmtPopup">
- <div class="goog-toggle-button">
  <div class="goog-inline-block comment-action-icon" /> 
  </div>
  <b:else /> 
- <a class="comment-delete" expr:href="data:comment.deleteUrl" expr:title="data:top.deleteCommentMsg">
  <img src="//www.blogger.com/img/icon_delete13.gif" /> 
  </a>
  </b:if>
  </span>
  </b:includable>
- <b:includable id="feedLinks">
- <b:if cond="data:blog.pageType != "item"">
- <!--  Blog feed links 
  --> 
- <b:if cond="data:feedLinks">
- <div class="blog-feeds">
  <b:include data="feedLinks" name="feedLinksBody" /> 
  </div>
  </b:if>
  <b:else /> 
- <!-- Post feed links 
  --> 
- <div class="post-feeds">
- <b:loop values="data:posts" var="post">
- <b:if cond="data:post.allowComments">
- <b:if cond="data:post.feedLinks">
  <b:include data="post.feedLinks" name="feedLinksBody" /> 
  </b:if>
  </b:if>
  </b:loop>
  </div>
  </b:if>
  </b:includable>
- <b:includable id="feedLinksBody" var="links">
- <div class="feed-links">
  <data:feedLinksMsg /> 
- <b:loop values="data:links" var="f">
- <a class="feed-link" expr:href="data:f.url" expr:type="data:f.mimeType" target="_blank">
  <data:f.name /> 
  ( 
  <data:f.feedType /> 
  ) 
  </a>
  </b:loop>
  </div>
  </b:includable>
- <b:includable id="comments" var="post">
- <div class="comments" id="comments">
  <a name="comments" /> 
- <b:if cond="data:post.allowComments">
- <h4>
- <b:if cond="data:post.numComments == 1">
  1 
  <data:commentLabel /> 
  : 
  <b:else /> 
  <data:post.numComments /> 
  <data:commentLabelPlural /> 
  : 
  </b:if>
  </h4>
- <b:if cond="data:post.commentPagingRequired">
- <span class="paging-control-container">
- <a expr:class="data:post.oldLinkClass" expr:href="data:post.oldestLinkUrl">
  <data:post.oldestLinkText /> 
  </a>
    
- <a expr:class="data:post.oldLinkClass" expr:href="data:post.olderLinkUrl">
  <data:post.olderLinkText /> 
  </a>
    
  <data:post.commentRangeText /> 
    
- <a expr:class="data:post.newLinkClass" expr:href="data:post.newerLinkUrl">
  <data:post.newerLinkText /> 
  </a>
    
- <a expr:class="data:post.newLinkClass" expr:href="data:post.newestLinkUrl">
  <data:post.newestLinkText /> 
  </a>
  </span>
  </b:if>
- <div expr:id="data:widget.instanceId + "_comments-block-wrapper"">
- <dl expr:class="data:post.avatarIndentClass" id="comments-block">
- <b:loop values="data:post.comments" var="comment">
- <dt expr:class=""comment-author " + data:comment.authorClass" expr:id="data:comment.anchorName">
- <b:if cond="data:comment.favicon">
  <img expr:src="data:comment.favicon" height="16px" style="margin-bottom:-2px;" width="16px" /> 
  </b:if>
  <a expr:name="data:comment.anchorName" /> 
The XML page cannot be displayed 

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

The operation completed successfully. Error processing resource 'file:///C:/Users/nichol38/AppData/Local/Temp/template-1129...

          <macro:include id='main-column-left-sections' name='sections'>

"#" onclick="return false" onfocus="h()" class="b">- <b:if cond="data:blog.enabledCommentProfileImages">
  <data:comment.authorAvatarImage /> 
  </b:if>
- <b:if cond="data:comment.authorUrl">
- <a expr:href="data:comment.authorUrl" rel="nofollow">
  <data:comment.author /> 
  </a>
  <b:else /> 

Untitled XML (5-Oct @ 03:12)

Syntax Highlighted Code

  1. <configure
  2.    xmlns="http://namespaces.zope.org/zope"
  3.    xmlns:browser="http://namespaces.zope.org/browser"
  4.    i18n_domain="meteor">
  5. [35 more lines...]

Plain Code

<configure
   xmlns="http://namespaces.zope.org/zope"
   xmlns:browser="http://namespaces.zope.org/browser"
   i18n_domain="meteor">

  <browser:resourceDirectory
     name="meteor.app.security"
     directory="static"
     />

  <browser:page
     for="*"
     name="security"
     template="views/macros.pt"
     permission="zope.Public"
     />

  <browser:page
     for="meteor.app.portal.interfaces.IMeteorPortal"
     name="signup"
     permission="zope.Public"
     class=".views.signup.MeteorMemberSignup"
     />

  <browser:page
     for="meteor.app.portal.interfaces.IMeteorPortal"
     name="adduser"
     permission="zope.ManageSite"
     class=".views.user.AddUser"
     />

  <browser:page
     for="meteor.app.portal.interfaces.IMeteorPortal"
     name="addmember"
     permission="zope.ManageSite"
     class=".views.signup.AddMember"
     />

</configure>

Untitled XML (15-Sep @ 03:41)

Syntax Highlighted Code

  1. <class class=".channel.Channel">
  2.   <implements
  3.      interface="zope.annotation.interfaces.IAttributeAnnotatable"
  4.      />
  5. [14 more lines...]

Plain Code

<class class=".channel.Channel">
  <implements
     interface="zope.annotation.interfaces.IAttributeAnnotatable"
     />
  <implements
     interface="zope.container.interfaces.IContainer" 
     />
  <implements
     interface="zope.keyreference.interfaces.IKeyReference"
     />
  <require
     permission="zope.View"
     interface="..interfaces.channel.IChannel"
     />
  <require
     permission="zope.ManageContent"
     set_schema="..interfaces.channel.IChannel"
     />
</class>

Untitled XML (17-May @ 21:57)

Syntax Highlighted Code

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
  2. <HTML lang=en xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Examples - Printable Map</TITLE>
  3. <META http-equiv=Content-Type content="text/html; charset=windows-1252">
  4. <META content="MSHTML 6.00.6000.16544" name=GENERATOR>
  5. [96 more lines...]

Plain Code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=en xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Examples - Printable Map</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<SCRIPT language=JavaScript><!--
if (window.focus) focus()
// -->
    </SCRIPT>
</HEAD>
<BODY>
<SCRIPT type=text/javascript>
    // <![CDATA[
    com.adobe.htmltemplate.loadCondAssets("dropdown", "backcompat");
    // ]]>
</SCRIPT>

<CENTER></CENTER>
<CENTER>
<P>
<TABLE cellSpacing=2 cellPadding=0 width=400 border=0>
  <TBODY>
  <TR height=15>
    <TD height=15></TD></TR>
  <TR>
    <TD class=size2>With the example below, select different viewing modes, 
      try zooming in and out of the image, and then print the result from your 
      browser.</TD></TR></TBODY></TABLE><EMBED name=printable_map 
src=/svg/demos/printmap/map.svgz width=400 height=400></CENTER>
<P>
<SCRIPT language=JavaScript1.2><!--
/*
                        * This function turns on/off various layers of the SVG picture.
                        * It is called when the user clicks on any of the checkboxes in
                        * the form below.
                        *
                        * Input Parameters:
                        *   checkbox     - Form object (checkbox) that was clicked on.
                        *   element_name - SVG element name that should be made visible/
                        *                  invisible.
                        */
                        function hilite_elem (checkbox, element_name)
                        {
                            var svgobj;
                            var svgstyle;
                            var svgdoc = document.printable_map.getSVGDocument();

                            // For each element, get the element's style object, then set
                            // its visibility according to the state of the checkbox.

                            svgobj = svgdoc.getElementById(element_name);
                            svgstyle = svgobj.getStyle();
                            if (!checkbox.checked)
                            {
                                // Hide layer.
                                svgstyle.setProperty('visibility', 'hidden');
                            }
                            else
                            {
                                // SHow layer.
                                svgstyle.setProperty('visibility', 'visible');
                            }

                        }
// -->
    </SCRIPT>

<FORM name=hilite_form>
<CENTER>
<P>
<TABLE cellSpacing=2 cellPadding=0 width=400 border=0>
  <TBODY>
  <TR>
    <TD colSpan=2>Visible layers:<BR>&nbsp;</TD></TR>
  <TR>
    <TD><INPUT onclick="hilite_elem(this,'topography')" type=checkbox 
      value="">Topography</TD>
    <TD><INPUT onclick="hilite_elem(this,'labels')" type=checkbox 
      value="">Labels</TD></TR>
  <TR>
    <TD><INPUT onclick="hilite_elem(this,'streets')" type=checkbox 
      value="">Streets</TD>
    <TD><INPUT onclick="hilite_elem(this,'points_of_interest')" type=checkbox 
      value="">Points of Interest</TD></TR>
  <TR>
    <TD><INPUT onclick="hilite_elem(this,'freeways')" type=checkbox 
      value="">Freeways</TD>
    <TD><INPUT onclick="hilite_elem(this,'border_legend')" type=checkbox 
      value="">Legend</TD></TR></TBODY></TABLE></CENTER>
<P>
<SCRIPT><!--
// Make sure all checkboxes are checked whenever the page
                            // is reloaded in the browser.
                            for (var i = 0;  i < document.hilite_form.elements.length;  i++)
                                if (document.hilite_form.elements[i].type == 'checkbox')
                                    document.hilite_form.elements[i].checked = true;
// -->
    </SCRIPT>
</FORM>
<SCRIPT src="http://www.adobe.com/js/htmltemplate/beforeonload.js" 
type=text/javascript></SCRIPT>
</P></BODY></HTML>

Untitled XML (13-May @ 17:08)

mrgenixus

Syntax Highlighted Code

  1. <?xml version="1.0" ?>
  2. <?xml-stylesheet type="text/xsl" href="howto.xsl" ?>
  3. <document title="Wordpress Themes">
  4.   <section title="Step-by-Step">
  5. [19 more lines...]

Plain Code

<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="howto.xsl" ?>
<document title="Wordpress Themes">
  <section title="Step-by-Step">
    <section title="Comment header">
      <code>
        /*   
        Theme Name: Rose
        Theme URI: the-theme's-homepage
        Description: a-brief-description
        Author: your-name
        Author URI: your-URI
        Template: use-this-to-define-a-parent-theme--optional
        Version: a-number--optional
        .
        General comments/License Statement if any.
        .
        */
      </code>
    </section>
  </section>
  <section title="See Also">
  </section>
</document>

Oi, Gui (15-Apr @ 18:28)

Syntax Highlighted Code

  1. Gui, esse site é um teste
  2.  

Plain Code

Gui, esse site é um teste

Untitled XML (4-Apr @ 05:20)

Syntax Highlighted Code

  1. <?xml version="1.0" encoding="iso-8859-2"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3.  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
  5. [17 more lines...]

Plain Code

<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<head>
  <meta http-equiv="Content-type" content="application/xhtml+xml; charset=iso-8859-2" />
  <meta name="Description" content=" [wstaw tu opis strony] " />
  <meta name="Keywords" content=" [wstaw tu slowa kluczowe] " />
  <meta name="Author" content=" [dane autora] " />
  <meta name="Generator" content="kED" />

  <title> [tytuł strony] </title>

  <link rel="stylesheet" href=" [nazwa_arkusza_stylow.css] " type="text/css" />
</head>
<body>
śśś
<!-- tutaj wstaw tresc strony -->

</body>
</html>

Untitled XML (17-Mar @ 23:14)

Syntax Highlighted Code

  1. (dolmenenv)root@newuses4:/opt/dolmenenv/projects/ebc# ./bin/ebc-ctl fg
  2. bin/paster serve /opt/dolmenenv/projects/ebc/parts/etc/deploy.ini
  3. 2010-03-17 23:10:45,797 WARNING [root] Developer mode is enabled: this is a security risk and should NOT be enabled on production servers. Developer mode can usually be turned off by setting the `devmode` option to `off` or by removing it from the instance configuration file completely.
  4. /root/.buildout/eggs/martian-0.11.1-py2.6.egg/martian/components.py:56: UserWarning: Content type not provided for '<class 'dolmen.app.site.application.Dolmen'>'. Using 'Dolmen' instead. This prevents the internationalization of the type name.
  5. [204 more lines...]

Plain Code

(dolmenenv)root@newuses4:/opt/dolmenenv/projects/ebc# ./bin/ebc-ctl fg
bin/paster serve /opt/dolmenenv/projects/ebc/parts/etc/deploy.ini
2010-03-17 23:10:45,797 WARNING [root] Developer mode is enabled: this is a security risk and should NOT be enabled on production servers. Developer mode can usually be turned off by setting the `devmode` option to `off` or by removing it from the instance configuration file completely.
/root/.buildout/eggs/martian-0.11.1-py2.6.egg/martian/components.py:56: UserWarning: Content type not provided for '<class 'dolmen.app.site.application.Dolmen'>'. Using 'Dolmen' instead. This prevents the internationalization of the type name.
  return self.execute(class_, **kw)
Traceback (most recent call last):
  File "bin/paster", line 201, in <module>
    paste.script.command.run()
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
    result = self.command()
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 276, in command
    relative_to=base, global_conf=vars)
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 313, in loadapp
    **kw)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 225, in loadobj
    return context.create()
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 188, in invoke
    filtered = context.next_context.create()
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 110, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
    val = callable(*args, **kw)
  File "/root/.buildout/eggs/grokcore.startup-0.4-py2.6.egg/grokcore/startup/startup.py", line 16, in application_factory
    return zope.app.wsgi.getWSGIApplication(zope_conf)
  File "/root/.buildout/eggs/zope.app.wsgi-3.6.1-py2.6.egg/zope/app/wsgi/__init__.py", line 158, in getWSGIApplication
    db = config(configfile, schemafile, features)
  File "/root/.buildout/eggs/zope.app.wsgi-3.6.1-py2.6.egg/zope/app/wsgi/__init__.py", line 147, in config
    appsetup.config(options.site_definition, features=features)
  File "/root/.buildout/eggs/zope.app.appsetup-3.13.0-py2.6.egg/zope/app/appsetup/appsetup.py", line 111, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 651, in file
    include(context, name, package)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 538, in end
    self.stack.pop().finish()
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 538, in end
    self.stack.pop().finish()
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 338, in start_element_ns
    AttributesNSImpl(newattrs, qnames))
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 234, in startElementNS
    self.context.begin(name, data, info)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 535, in begin
    self.stack.append(self.stack[-1].contained(__name, __data, __info))
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 836, in contained
    return RootStackItem.contained(self, name, data, info)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 704, in contained
    factory = self.context.factory(self.context, name)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 481, in factory
    raise ConfigurationError("Unknown directive", ns, n)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/dolmenenv/projects/ebc/parts/etc/site.zcml", line 4.2-4.27
    ZopeXMLConfigurationError: File "/opt/dolmenenv/projects/ebc/src/ebc/configure.zcml", line 28.2-28.37
    ZopeXMLConfigurationError: File "/root/.buildout/eggs/zope.sendmail-3.7.1-py2.6.egg/zope/sendmail/configure.zcml", line 13.2
    ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/mail', u'smtpMailer')
(dolmenenv)root@newuses4:/opt/dolmenenv/projects/ebc# ./bin/ebc-ctl fg
bin/paster serve /opt/dolmenenv/projects/ebc/parts/etc/deploy.ini
2010-03-17 23:12:15,965 WARNING [root] Developer mode is enabled: this is a security risk and should NOT be enabled on production servers. Developer mode can usually be turned off by setting the `devmode` option to `off` or by removing it from the instance configuration file completely.
/root/.buildout/eggs/martian-0.11.1-py2.6.egg/martian/components.py:56: UserWarning: Content type not provided for '<class 'dolmen.app.site.application.Dolmen'>'. Using 'Dolmen' instead. This prevents the internationalization of the type name.
  return self.execute(class_, **kw)
Traceback (most recent call last):
  File "bin/paster", line 201, in <module>
    paste.script.command.run()
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
    result = self.command()
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 276, in command
    relative_to=base, global_conf=vars)
  File "/root/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 313, in loadapp
    **kw)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 225, in loadobj
    return context.create()
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 188, in invoke
    filtered = context.next_context.create()
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 110, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/root/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
    val = callable(*args, **kw)
  File "/root/.buildout/eggs/grokcore.startup-0.4-py2.6.egg/grokcore/startup/startup.py", line 16, in application_factory
    return zope.app.wsgi.getWSGIApplication(zope_conf)
  File "/root/.buildout/eggs/zope.app.wsgi-3.6.1-py2.6.egg/zope/app/wsgi/__init__.py", line 158, in getWSGIApplication
    db = config(configfile, schemafile, features)
  File "/root/.buildout/eggs/zope.app.wsgi-3.6.1-py2.6.egg/zope/app/wsgi/__init__.py", line 147, in config
    appsetup.config(options.site_definition, features=features)
  File "/root/.buildout/eggs/zope.app.appsetup-3.13.0-py2.6.egg/zope/app/appsetup/appsetup.py", line 111, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 651, in file
    include(context, name, package)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 538, in end
    self.stack.pop().finish()
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 538, in end
    self.stack.pop().finish()
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 338, in start_element_ns
    AttributesNSImpl(newattrs, qnames))
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 234, in startElementNS
    self.context.begin(name, data, info)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 535, in begin
    self.stack.append(self.stack[-1].contained(__name, __data, __info))
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 836, in contained
    return RootStackItem.contained(self, name, data, info)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 704, in contained
    factory = self.context.factory(self.context, name)
  File "/root/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 481, in factory
    raise ConfigurationError("Unknown directive", ns, n)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/dolmenenv/projects/ebc/parts/etc/site.zcml", line 4.2-4.27
    ZopeXMLConfigurationError: File "/opt/dolmenenv/projects/ebc/src/ebc/configure.zcml", line 28.2-28.37
    ZopeXMLConfigurationError: File "/root/.buildout/eggs/zope.sendmail-3.7.1-py2.6.egg/zope/sendmail/configure.zcml", line 13.2
    ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/mail', u'smtpMailer')

Untitled XML (17-Mar @ 23:02)

Syntax Highlighted Code

  1. <configure xmlns="http://namespaces.zope.org/zope"
  2.            xmlns:browser="http://namespaces.zope.org/browser"
  3.            xmlns:grok="http://namespaces.zope.org/grok">
  4.   <include package="grok" />
  5. [31 more lines...]

Plain Code

<configure xmlns="http://namespaces.zope.org/zope"
           xmlns:browser="http://namespaces.zope.org/browser"
           xmlns:grok="http://namespaces.zope.org/grok">
  <include package="grok" />
  <include package="grokui.admin" />
<!--  <includeDependencies package="." />-->
  <include package="dolmen.app.site" />
  <include package="dolmen.app.layout" />
  <include package="megrok.z3cform.layout" />
  <include package="dolmen.app.content" />
  <include package="dolmen.app.container" />
  <include package="dolmen.app.authentication" />
  <include package="dolmen.app.breadcrumbs" />
  <include package="menhir.contenttype.user" />
  <include package="dolmen.widget.image" />
  <include package="grokcore.view" file="meta.zcml" />
  <include package="megrok.resource" />
  <include package="megrok.layout" file="meta.zcml" />
  <include package="menhir.contenttype.document" />
  <include package="dolmen.widget.tinymce" />
  <include package="dolmen.app.search" />
  <include package="menhir.simple.livesearch" />
  <include package="dolmen.app.viewselector" />
  <include package="menhir.contenttype.folder" />
  <include package="menhir.contenttype.image" />
  <include package="menhir.contenttype.photoalbum" />
  <include package="zope.sendmail" />
<include package="PIL" />
<include package="dolmen.App.authentication" />
<include package="dolmen.Authentication" />

  <grok:grok package="." />
  <!-- Skin  -->
  <browser:defaultSkin name="publicscreen"/>
</configure>

Untitled XML (8-Aug @ 00:57)

Syntax Highlighted Code

  1. <metal:block use-macro="context/@@scaffolding/macros/xhtml-strict" />
  2. <html metal:use-macro="context/@@scaffolding/macros/page">
  3.     <metal:block fill-slot="container">
  4.         <div id="container">
  5. [43 more lines...]

Plain Code

<metal:block use-macro="context/@@scaffolding/macros/xhtml-strict" />
<html metal:use-macro="context/@@scaffolding/macros/page">
    <metal:block fill-slot="container">
        <div id="container">
            <table class="memberlisting">
                <tr>
                    <th>UserID</th>
                    <th>Name</th>
                    <th>eMail</th>
                    <th tal:repeat="header python:sorted(view.roles())" tal:content="python:header"></th>
                </tr>
                <span tal:define="data python:view.members()">
                    <span tal:repeat="principal python:data.keys()">
                        <tr>
                            <td tal:content="python:principal"></td>
                            <td tal:content="python:data[principal][1]['fullname']"></td>
                            <td tal:content="python:data[principal][1]['email']"></td>
                            <span tal:repeat="permission python:data[principal][0]">
                                <span tal:define="itemnum repeat/permission/number">
                                    <span tal:condition="python:data[principal][0][itemnum-1][0] == sorted(view.roles())[itemnum-1] 
                                                            and 'Allow' in str(data[principal][0][itemnum-1][1])
                                                    ">
                                        <td style="background:green;text-align: center">
                                            <a tal:attributes="href python:'/'.join(view.url().split('/')[:-1]) + '/membermanager' + '?user=' + principal + '&role=' + sorted(view.roles())[itemnum-1] + '&directive=removerole'" 
                                           tal:content="python:'ENABLED'" 
                                           style="color:yellow;">
                                            </a>
                                        </td>
                                    </span>
                                    <span tal:condition="python:data[principal][0][itemnum-1][0] == sorted(view.roles())[itemnum-1] 
                                                            and 'Deny' in str(data[principal][0][itemnum-1][1])
                                                    ">
                                        <td style="background:red;text-align: center">
                                            <a tal:attributes="href python:'/'.join(view.url().split('/')[:-1]) + '/membermanager' + '?user=' + principal + '&role=' + sorted(view.roles())[itemnum-1] + '&directive=addrole'" 
                                           tal:content="python:'DISABLED'" 
                                           style="color:white">
                                            </a>
                                        </td>
                                    </span>
                                </span>
                            </span>
                        </tr>
                    </span>
                </span>
            </table>
        </div>
    </metal:block>
</html>

Untitled XML (11-May @ 00:25)

Syntax Highlighted Code

  1. <settings>
  2.     <global>
  3.         <darcs          description="path to the darcs executable"      >/usr/bin/darcs                     </darcs>
  4.         <darcs-options  description="general options for darcs"         >                                   </darcs-options>
  5. [173 more lines...]

Plain Code

<settings>
    <global>
        <darcs          description="path to the darcs executable"      >/usr/bin/darcs                     </darcs>
        <darcs-options  description="general options for darcs"         >                                   </darcs-options>
        <gpg            description="path to the gpg executable"        >/usr/bin/gpg                       </gpg>
        <gpg-options    description="general options for gpg"           >                                   </gpg-options>
    </global>
    <repository>
        <name           description="used to determine the web path"    >quickplay                          </name>
        <location       description="location on filesystem"            >/var/www/darcs-repos/quickplay     </location>
        <allow-read     description="allow reads (get,pull)"            >no                                 </allow-read>
        <allow-write    description="allow writes (apply,push)"         >yes                                </allow-write>
        <verify-read    description="no or keyring location"            >no                                 </verify-read>
        <verify-write   description="no or keyring location"            >yes                                </verify-write>
    </repository>
</settings>



<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">

    <start>
        <element name="settings">
            <interleave>
                <optional>
                    <element name="global">
                        <ref name="globalContent"/>
                    </element>
                </optional>
                <optional>
                    <element name="defaults">
                        <ref name="defaultsContent"/>
                    </element>
                </optional>
                <zeroOrMore>
                    <element name="repository">
                        <ref name="repositoryContent"/>
                    </element>
                </zeroOrMore>
            </interleave>
        </element>
    </start>

    <define name="stringContent">
        <optional>
            <attribute name="description"/>
        </optional>
        <text/>
    </define>

    <define name="booleanContent">
        <optional>
            <attribute name="description"/>
        </optional>
        <choice>
            <value>yes</value>
            <value>true</value>
            <value>no></value>
            <value>false</value>
        </choice>
    </define>

    <define name="globalContent">
        <interleave>
            <optional>
                <element name="darcs">
                    <ref name="stringContent"/>
                </element>
            </optional>
            <optional>
                <element name="darcs-options">
                    <ref name="stringContent"/>
                </element>
            </optional>
            <optional>
                <element name="gpg">
                    <ref name="stringContent"/>
                </element>
            </optional>
            <optional>
                <element name="gpg-options">
                    <ref name="stringContent"/>
                </element>
            </optional>
        </interleave>
    </define>

    <define name="defaultsContent">
        <interleave>
            <optional>
                <element name="allow-read">
                    <ref name="booleanContent"/>
                </element>
            </optional>
            <optional>
                <element name="allow-write">
                    <ref name="booleanContent"/>
                </element>
            </optional>
            <optional>
                <element name="verify-read">
                    <ref name="stringContent"/>
                </element>
            </optional>
            <optional>
                <element name="verify-write">
                    <ref name="stringContent"/>
                </element>
            </optional>
        </interleave>
    </define>

    <define name="repositoryContent">
        <interleave>
            <element name="name">
                    <ref name="stringContent"/>
            </element>
            <element name="location">
                    <ref name="stringContent"/>
            </element>
            <optional>
                <element name="allow-read">
                    <ref name="booleanContent"/>
                </element>
            </optional>
            <optional>
                <element name="allow-write">
                    <ref name="booleanContent"/>
                </element>
            </optional>
            <optional>
                <element name="verify-read">
                    <ref name="stringContent"/>
                </element>
            </optional>
            <optional>
                <element name="verify-write">
                    <ref name="stringContent"/>
                </element>
            </optional>
        </interleave>
    </define>


</grammar>




#!/usr/bin/python
from lxml import etree
import sys

try:
    relaxNGFile = open("/home/orbisvicis/darcs-cgi/xml/relaxng-config.xml")
    try:
        relaxNGDoc = etree.parse(relaxNGFile)
        relaxNG = etree.RelaxNG(relaxNGDoc)
    finally:
        relaxNGFile.close()
except IOError:
    print "File open failed ::"


try:
    configFile = open("/home/orbisvicis/darcs-cgi/xml/config.xml")
    try:
        configFileDoc = etree.parse(configFile)
    finally:
        configFile.close()
except IOError:
    print "File open failed ::"


#print etree.tostring(configFileDoc, pretty_print=True)
print relaxNG.validate(configFileDoc)
relaxNG.assertValid(configFileDoc)
print relaxNG.error_log.last_error

Untitled XML (1-Jan @ 13:21)

Syntax Highlighted Code

  1. <?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="css_all" deleted="false" description="color: #xxxxxx;" enabled="true" name="col">color: #${cursor};</template><template autoinsert="true" context="css_all" deleted="false" description="font-size" enabled="true" name="fsi">font-size: ${cursor}px;</template><template autoinsert="true" context="css_all" deleted="false" description="font-weight: bold;" enabled="true" name="fwb">font-weight: bold;</template><template autoinsert="true" context="css_all" deleted="false" description="font-weight: normal;" enabled="true" name="fwn">font-weight: normal;</template><template autoinsert="true" context="css_all" deleted="false" description="height" enabled="true" name="he">height: ${cursor}px;</template><template autoinsert="true" context="css_new" deleted="false" description="new css file" enabled="true" id="org.eclipse.wst.css.ui.internal.templates.newcss" name="New CSS File">@CHARSET "${encoding}";</template><template autoinsert="true" context="css_all" deleted="false" description="text:decoration: none;" enabled="true" name="tden">text-decoration: none;</template><template autoinsert="true" context="css_all" deleted="false" description="text-decoration: underline;" enabled="true" name="tdeu">text-decoration: underline;</template><template autoinsert="true" context="css_all" deleted="false" description="width" enabled="true" name="wi">width: ${cursor}px;</template></templates>

Plain Code

<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="css_all" deleted="false" description="color: #xxxxxx;" enabled="true" name="col">color: #${cursor};</template><template autoinsert="true" context="css_all" deleted="false" description="font-size" enabled="true" name="fsi">font-size: ${cursor}px;</template><template autoinsert="true" context="css_all" deleted="false" description="font-weight: bold;" enabled="true" name="fwb">font-weight: bold;</template><template autoinsert="true" context="css_all" deleted="false" description="font-weight: normal;" enabled="true" name="fwn">font-weight: normal;</template><template autoinsert="true" context="css_all" deleted="false" description="height" enabled="true" name="he">height: ${cursor}px;</template><template autoinsert="true" context="css_new" deleted="false" description="new css file" enabled="true" id="org.eclipse.wst.css.ui.internal.templates.newcss" name="New CSS File">@CHARSET "${encoding}";</template><template autoinsert="true" context="css_all" deleted="false" description="text:decoration: none;" enabled="true" name="tden">text-decoration: none;</template><template autoinsert="true" context="css_all" deleted="false" description="text-decoration: underline;" enabled="true" name="tdeu">text-decoration: underline;</template><template autoinsert="true" context="css_all" deleted="false" description="width" enabled="true" name="wi">width: ${cursor}px;</template></templates>

Untitled XML (14-Nov @ 08:33)

Syntax Highlighted Code

  1. <?xml version="1.0"?>
  2. <rss version="2.0">
  3. <channel>
  4. <link>http://www.abc.net.au/news/business</link>
  5. [320 more lines...]

Plain Code

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<link>http://www.abc.net.au/news/business</link>
<title>ABC News: Business</title>
<description>Latest ABC Business and Finance news</description>
<image>
<title>ABC News</title>
<link>http://www.abc.net.au/news/</link>
<url>http://abc.net.au/news/img/newslogo88.gif</url>
</image>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<copyright>ABC News Online</copyright>
<pubDate>Fri, 14  Nov 2008 18:44:36 +1100</pubDate>
<lastBuildDate>Fri, 14  Nov 2008 18:44:36 +1100</lastBuildDate>
<item>
<title>French pilots strike against retirement changes</title>
<description>Pilots at Air France are beginning a four-day strike in protest at Government plans to raise their retirement age.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420413.htm</link>
<guid isPermaLink="false">2420413</guid>
<pubDate>Fri, 14  Nov 2008 18:41:00 +1100</pubDate>
<category>work</category>
<category>air-transport</category>
<category>france</category>
</item>
<item>
<title>Work starts on 'world first' clean coal project</title>
<description>Construction has begun in central Queensland on what the state and federal governments say is a world first clean coal project.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420002.htm</link>
<guid isPermaLink="false">2420002</guid>
<pubDate>Fri, 14  Nov 2008 13:46:00 +1100</pubDate>
<category>electricity-energy-and-utilities</category>
<category>coal</category>
<category>biloela-4715</category>
<category>gladstone-4680</category>
</item>
<item>
<title>Market claws back ground at close</title>
<description>The Australian share market has finished higher at the close of trade, despite paring back early gains.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420325.htm</link>
<guid isPermaLink="false">2420325</guid>
<pubDate>Fri, 14  Nov 2008 17:06:00 +1100</pubDate>
<category>stockmarket</category>
<category>futures-markets</category>
<category>currency-markets</category>
<category>australia</category>
</item>
<item>
<title>Toyota chief applauds Govt rescue package</title>
<description>The head of Toyota in Australia says the Government has taken on board the car industry's requests in its new car plan announced this week.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420347.htm</link>
<guid isPermaLink="false">2420347</guid>
<pubDate>Fri, 14  Nov 2008 17:20:00 +1100</pubDate>
<category>automotive</category>
<category>federal-government</category>
<category>australia</category>
</item>
<item>
<title>Hungarian prostitute used to defend the 'midnight miner'</title>
<description>The defence lawyer in the criminal trial of the man dubbed the 'midnight miner' has used an ancient legal case of a Hungarian prostitute to defend his client.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420296.htm</link>
<guid isPermaLink="false">2420296</guid>
<pubDate>Fri, 14  Nov 2008 17:19:00 +1100</pubDate>
<category>mining</category>
<category>courts-and-trials</category>
<category>alice-springs-0870</category>
<category>darwin-0800</category>
</item>
<item>
<title>Govt to keep, improve AWAs</title>
<description>The Federal Government has confirmed existing Australian Workplace Agreements (AWAs) can continue, but only if they meet the proposed new minimum employment standards.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420341.htm</link>
<guid isPermaLink="false">2420341</guid>
<pubDate>Fri, 14  Nov 2008 17:18:00 +1100</pubDate>
<category>business-economics-and-finance</category>
<category>industrial-relations</category>
<category>federal-government</category>
<category>social-policy</category>
<category>australia</category>
</item>
<item>
<title>Qld Opposition attacks rising power prices</title>
<description>The Queensland Opposition says the State Government has no excuse for rising power prices.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420315.htm</link>
<guid isPermaLink="false">2420315</guid>
<pubDate>Fri, 14  Nov 2008 17:00:00 +1100</pubDate>
<category>electricity-energy-and-utilities</category>
<category>states-and-territories</category>
<category>australia</category>
<category>qld</category>
</item>
<item>
<title>RACQ urges $31.5b for Qld roads</title>
<description>The RACQ is calling for $31.5 billion of the Federal Government's Infrastructure Australia fund to be designated to Queensland roads.</description>
<link>http://www.abc.net.au/news/stories/2008/11/13/2418574.htm</link>
<guid isPermaLink="false">2418574</guid>
<pubDate>Thu, 13  Nov 2008 12:08:00 +1100</pubDate>
<category>business-economics-and-finance</category>
<category>industry</category>
<category>building-and-construction</category>
<category>regional-development</category>
<category>community-and-society</category>
<category>urban-development-and-planning</category>
<category>government-and-politics</category>
<category>federal-state-issues</category>
<category>regional</category>
<category>activism-and-lobbying</category>
<category>australia</category>
<category>qld</category>
<category>brisbane-4000</category>
<category>bundaberg-4670</category>
<category>cairns-4870</category>
<category>longreach-4730</category>
<category>mackay-4740</category>
<category>maroochydore-4558</category>
<category>mount-isa-4825</category>
<category>rockhampton-4700</category>
<category>southport-4215</category>
<category>toowoomba-4350</category>
<category>townsville-4810</category>
</item>
<item>
<title>Local market recovery slows</title>
<description>The recovery on the Australian share market has tapered off.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420121.htm</link>
<guid isPermaLink="false">2420121</guid>
<pubDate>Fri, 14  Nov 2008 15:00:00 +1100</pubDate>
<category>stockmarket</category>
<category>futures-markets</category>
<category>currency-markets</category>
<category>australia</category>
</item>
<item>
<title>Govt won't increase ABC Learning funding: Gillard</title>
<description>The Government has ruled out topping up its rescue package for ABC Learning, saying the $22m already given is enough.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420089.htm</link>
<guid isPermaLink="false">2420089</guid>
<pubDate>Fri, 14  Nov 2008 14:45:00 +1100</pubDate>
<category>company-news</category>
<category>banking</category>
<category>child-care</category>
<category>federal-government</category>
<category>australia</category>
<category>qld</category>
</item>
<item>
<title>Govt 'not surprised' by ANZ jobs cuts</title>
<description>The Federal Government says it is disappointed, but not surprised by ANZ Bank plans to cut up to 1,000 jobs.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2420091.htm</link>
<guid isPermaLink="false">2420091</guid>
<pubDate>Fri, 14  Nov 2008 14:40:00 +1100</pubDate>
<category>company-news</category>
<category>banking</category>
<category>federal-government</category>
<category>australia</category>
</item>
<item>
<title>WA shipbuilder win lucrative US contract</title>
<description>The Perth shipbuilder Austal has won a contract with the US Defence Department which is potentially worth more than $2.5 billion.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419998.htm</link>
<guid isPermaLink="false">2419998</guid>
<pubDate>Fri, 14  Nov 2008 13:43:00 +1100</pubDate>
<category>company-news</category>
<category>defence-industry</category>
<category>stockmarket</category>
<category>agreements-and-treaties</category>
<category>sea-transport</category>
<category>wa</category>
<category>perth-6000</category>
</item>
<item>
<title>CBA lends millions to collapsed ABC Learning</title>
<description>The Commonwealth Bank has confirmed it lent more money to ABC Learning.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419818.htm</link>
<guid isPermaLink="false">2419818</guid>
<pubDate>Fri, 14  Nov 2008 12:04:00 +1100</pubDate>
<category>business-economics-and-finance</category>
<category>industry</category>
<category>banking</category>
<category>family-and-children</category>
<category>child-care</category>
<category>australia</category>
<category>qld</category>
</item>
<item>
<title>Minister aware of forest contract woes</title>
<description>Tasmania's Resources Minister, David Llewellyn, has admitted there are problems in the forestry industry.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419981.htm</link>
<guid isPermaLink="false">2419981</guid>
<pubDate>Fri, 14  Nov 2008 13:35:00 +1100</pubDate>
<category>timber</category>
<category>tas</category>
</item>
<item>
<title>Demand for homes coming back to life: Mirvac</title>
<description>One of Australia's biggest property developers says it is starting to see signs of a rebound in the demand for homes.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419965.htm</link>
<guid isPermaLink="false">2419965</guid>
<pubDate>Fri, 14  Nov 2008 13:23:00 +1100</pubDate>
<category>business-economics-and-finance</category>
<category>consumer-finance</category>
<category>consumer-protection</category>
<category>economic-trends</category>
<category>industry</category>
<category>housing</category>
<category>australia</category>
</item>
<item>
<title>Market follows Wall Street's lead</title>
<description>The Australian share market has shot up in early trade after plunging to a four-year low yesterday.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419551.htm</link>
<guid isPermaLink="false">2419551</guid>
<pubDate>Fri, 14  Nov 2008 10:12:00 +1100</pubDate>
<category>business-economics-and-finance</category>
<category>finance-markets</category>
<category>stockmarket</category>
<category>currency-markets</category>
<category>international-financial-crisis</category>
<category>australia</category>
</item>
<item>
<title>Work begins on Queensland clean coal plant</title>
<description>Work is starting in central Queensland on Australia's first pilot plant using clean coal technology.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419900.htm</link>
<guid isPermaLink="false">2419900</guid>
<pubDate>Fri, 14  Nov 2008 12:43:00 +1100</pubDate>
<category>business-economics-and-finance</category>
<category>industry</category>
<category>electricity-energy-and-utilities</category>
<category>environment</category>
<category>alternative-energy</category>
<category>government-and-politics</category>
<category>federal-government</category>
<category>coal</category>
<category>australia</category>
<category>qld</category>
<category>biloela-4715</category>
</item>
<item>
<title>ANZ staff in the dark: union</title>
<description>The Finance Sector Union in SA says the ANZ Bank is leaving workers in the dark about their future.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419765.htm</link>
<guid isPermaLink="false">2419765</guid>
<pubDate>Fri, 14  Nov 2008 11:43:00 +1100</pubDate>
<category>banking</category>
<category>unemployment</category>
<category>unions</category>
<category>work</category>
<category>sa</category>
<category>adelaide-5000</category>
</item>
<item>
<title>More concerns over carbon trading</title>
<description>Another Tasmanian industry has expressed concern at the Federal Government's proposed emissions trading scheme.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419814.htm</link>
<guid isPermaLink="false">2419814</guid>
<pubDate>Fri, 14  Nov 2008 12:03:00 +1100</pubDate>
<category>industry</category>
<category>air-pollution</category>
<category>tas</category>
<category>railton-7305</category>
</item>
<item>
<title>Aurora predicts another difficult year</title>
<description>Tasmania's electricity retailer Aurora Energy has acknowledged the hardship families and businesses have faced with rising electricity prices.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419748.htm</link>
<guid isPermaLink="false">2419748</guid>
<pubDate>Fri, 14  Nov 2008 11:35:00 +1100</pubDate>
<category>electricity-energy-and-utilities</category>
<category>tas</category>
</item>
<item>
<title>Hedge funds to be 'decimated' by financial crisis</title>
<description>Billionaire investor George Soros says hedge funds will be decimated by the financial crisis.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419653.htm</link>
<guid isPermaLink="false">2419653</guid>
<pubDate>Fri, 14  Nov 2008 10:50:00 +1100</pubDate>
<category>business-economics-and-finance</category>
<category>international-financial-crisis</category>
<category>united-states</category>
</item>
<item>
<title>Paper industry attacks emissions trading scheme</title>
<description>The body representing the paper industry, A3P, has joined the attack on the carbon emissions trading scheme, saying it could lead to a loss of investments throughout the country.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419631.htm</link>
<guid isPermaLink="false">2419631</guid>
<pubDate>Fri, 14  Nov 2008 10:46:00 +1100</pubDate>
<category>packaging</category>
<category>climate-change</category>
<category>air-pollution</category>
<category>sa</category>
<category>adelaide-5000</category>
</item>
<item>
<title>ANZ to slash up to 1,000 jobs</title>
<description>The ANZ Bank is expected to announce that it is cutting between 500 and 1,000 jobs later today.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419360.htm</link>
<guid isPermaLink="false">2419360</guid>
<pubDate>Fri, 14  Nov 2008 07:26:00 +1100</pubDate>
<category>business-economics-and-finance</category>
<category>industry</category>
<category>banking</category>
<category>unemployment</category>
<category>australia</category>
<category>melbourne-3000</category>
</item>
<item>
<title>Bishop calls for more consultation on gas hub</title>
<description>The Catholic Bishop of Broome has asked the Premier, Colin Barnett, for a "stay of execution" over a proposed gas processing hub on the Dampier Peninsula.</description>
<link>http://www.abc.net.au/news/stories/2008/11/14/2419462.htm</link>
<guid isPermaLink="false">2419462</guid>
<pubDate>Fri, 14  Nov 2008 09:11:00 +1100</pubDate>
<category>oil-and-gas</category>
<category>regional-development</category>
<category>indigenous</category>
<category>religion-and-beliefs</category>
<category>catholic</category>
<category>wa</category>
<category>broome-6725</category>
<category>karratha-6714</category>
</item>
</channel>
</rss>

XSLT range (4-Sep @ 23:27)

remy

Syntax Highlighted Code

  1. <xsl:template match="b">
  2.   <xsl:for-each select="item[position()>=3 and 7>=position()]" >

Plain Code

<xsl:template match="b">
  <xsl:for-each select="item[position()>=3 and 7>=position()]" >

Untitled XML (30-Jun @ 15:00)

Syntax Highlighted Code

  1.  
  2. <c:choose>
  3.     <c:when test="${!empty param.JSSpec}">
  4. <script type="text/javascript" src="/jsspec/JSSpec.js?autorun=false&autototals=false&runlinks=1">
  5. [5 more lines...]

Plain Code


<c:choose>
    <c:when test="${!empty param.JSSpec}">
<script type="text/javascript" src="/jsspec/JSSpec.js?autorun=false&autototals=false&runlinks=1">
</script>
<link rel="spec" rev="sample" href="test/spec/SampleWorkflowSpec.html" type="text/html" charset="utf-8">
<link rel="spec" rev="basic" href="test/spec/BasicWorkflowSpec.html" type="text/html" charset="utf-8">
    </c:when>
</c:choose>    

Untitled XML (29-Jun @ 16:01)

yansky

Syntax Highlighted Code

  1. <?xml version="1.0"?>
  2. <bindings xmlns="http://www.mozilla.org/xbl"
  3.  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  4.  xmlns:html="http://www.w3.org/1999/xhtml">
  5. [903 more lines...]

Plain Code

<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl"
 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 xmlns:html="http://www.w3.org/1999/xhtml">


<binding id="item1" styleexplicitcontent="true">
<!-- Net Usage Item GUI, licensed under the Mozilla Public License (C) 2008 Loune lpgcritter at nasquan dot com  -->
    <!-- <resources>
    <stylesheet src="chrome://"/>
    </resources> -->
    <content>

        <svg
            xmlns:svg="http://www.w3.org/2000/svg"
            xmlns="http://www.w3.org/2000/svg"
            xmlns:xlink="http://www.w3.org/1999/xlink"
            version="1.0"
            x="0"
            y="0"
            width="0"
            height="0"
            id="netusagesvgdefstub" />


        <!-- XXXXXXXXXXXXXXXXXXXXXXX CUT HERE XXXXXXXXXXXXXXXXXXXXXXXXX -->

            
            
        <svg
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:cc="http://web.resource.org/cc/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:svg="http://www.w3.org/2000/svg"
             xmlns="http://www.w3.org/2000/svg"
             xmlns:xlink="http://www.w3.org/1999/xlink"
             xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
             xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
             version="1.0"
             x="0.00000000"
             y="0.00000000"
             width="126"
             height="23"
             id="netusagesvg"
             sodipodi:version="0.32"
             inkscape:version="0.44"
             sodipodi:docname="netusage1.svg"
             sodipodi:docbase="D:\Workspace\netusage">
            <metadata
                 id="metadata65">
                <rdf:RDF>
                    <cc:Work
                         rdf:about="">
                        <dc:format>image/svg+xml</dc:format>
                        <dc:type
                             rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
                    </cc:Work>
                </rdf:RDF>
            </metadata>
            <sodipodi:namedview
                 inkscape:window-height="641"
                 inkscape:window-width="1136"
                 inkscape:pageshadow="2"
                 inkscape:pageopacity="0.0"
                 borderopacity="1.0"
                 bordercolor="#666666"
                 pagecolor="#ffffff"
                 id="base"
                 inkscape:zoom="11.313709"
                 inkscape:cx="47.127219"
                 inkscape:cy="0.49738615"
                 inkscape:window-x="245"
                 inkscape:window-y="259"
                 inkscape:current-layer="layer2"
                 showguides="true"
                 inkscape:guide-bbox="true"
                 height="23px"
                 width="126px" />
            <defs
                 id="netusagedefs">
                <linearGradient
                     id="linearGradient2243">
                    <stop
                         style="stop-color:#75ff00;stop-opacity:1"
                         offset="0"
                         id="stop2245" />
                    <stop
                         style="stop-color:#2f7f39;stop-opacity:1"
                         offset="1"
                         id="stop2247" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2258">
                    <stop
                         style="stop-color:#fff07a;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2260" />
                    <stop
                         style="stop-color:#ff9e4e;stop-opacity:1.0000000"
                         offset="0.50000000"
                         id="stop2262" />
                    <stop
                         style="stop-color:#ff5000;stop-opacity:1.0000000"
                         offset="0.50925928"
                         id="stop2264" />
                    <stop
                         style="stop-color:#ffd600;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2266" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2178">
                    <stop
                         style="stop-color:#9cdc62;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2184" />
                    <stop
                         style="stop-color:#72e035;stop-opacity:1.0000000"
                         offset="0.37201953"
                         id="stop2188" />
                    <stop
                         style="stop-color:#5ea32a;stop-opacity:1;"
                         offset="0.37201953"
                         id="stop2190" />
                    <stop
                         style="stop-color:#b0ea7a;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2186" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2083">
                    <stop
                         style="stop-color:#7fff00;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2085" />
                    <stop
                         style="stop-color:#cfd218;stop-opacity:1.0000000"
                         offset="0.29076648"
                         id="stop2152" />
                    <stop
                         style="stop-color:#e0b21c;stop-opacity:1.0000000"
                         offset="0.71105301"
                         id="stop2156" />
                    <stop
                         style="stop-color:#ee2420;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2087" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2073">
                    <stop
                         style="stop-color:#7c92b9;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2075" />
                    <stop
                         style="stop-color:#ffffff;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2077" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2051">
                    <stop
                         style="stop-color:#747474;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2053" />
                    <stop
                         style="stop-color:#ffffff;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2055" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2115">
                    <stop
                         style="stop-color:#1b45c4;stop-opacity:1;"
                         offset="0"
                         id="stop2117" />
                    <stop
                         style="stop-color:#0140ff;stop-opacity:0;"
                         offset="1"
                         id="stop2119" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2292">
                    <stop
                         id="stop2294"
                         offset="0"
                         style="stop-color:#ffe31c;stop-opacity:1;" />
                    <stop
                         id="stop2296"
                         offset="1"
                         style="stop-color:#ffffff;stop-opacity:0;" />
                </linearGradient>
                <linearGradient
                     x1="-39.743919"
                     y1="271.64819"
                     x2="456.23572"
                     y2="271.64819"
                     id="linearGradient2081"
                     xlink:href="#linearGradient2083"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.409736,0,0,0.208754,30.24163,211.051)" />
                <linearGradient
                     x1="295.08344"
                     y1="343.32632"
                     x2="295.08344"
                     y2="224.68822"
                     id="linearGradient2172"
                     xlink:href="#linearGradient2051"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.369234,0,0,0.410816,-15.19644,-99.69333)" />
                <linearGradient
                     x1="222.15965"
                     y1="237.48343"
                     x2="222.15965"
                     y2="301.78006"
                     id="linearGradient2174"
                     xlink:href="#linearGradient2073"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.341899,0,0,0.26744,-9.276913,-60.6394)" />
                <linearGradient
                     x1="162.57631"
                     y1="245.21945"
                     x2="162.57631"
                     y2="298.0766"
                     id="linearGradient2176"
                     xlink:href="#linearGradient2178"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.245416,0,0,0.242214,-4.287223,-52.43637)" />
                <linearGradient
                     x1="162.57631"
                     y1="245.21945"
                     x2="162.57631"
                     y2="298.07651"
                     id="linearGradient2256"
                     xlink:href="#linearGradient2258"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.348017,0,0,0.208754,-8.863015,-44.14369)" />
                <linearGradient
                     collect="always"
                     xlink:href="#linearGradient2115"
                     id="linearGradient2314"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(3.046092,0,0,0.458,-842.6463,-147.6332)"
                     x1="297.30167"
                     y1="354.22491"
                     x2="297.30167"
                     y2="371.1955" />
                <linearGradient
                     collect="always"
                     xlink:href="#linearGradient2292"
                     id="linearGradient2316"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(3.012188,0,0,0.447051,-831.282,-150.2732)"
                     x1="297.31323"
                     y1="354.22491"
                     x2="297.31323"
                     y2="371.1955" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2243"
                     id="linearGradient2249"
                     x1="136.79781"
                     y1="19.51153"
                     x2="136.79781"
                     y2="7.1371608"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.883905,0,0,0.889813,-105.5481,-0.606724)" />
                <clipPath
                     id="clipoffpeak">
                    <rect
                         id="clipoffpeakrect"
                         width="117.875"
                         height="14.520815"
                         x="7"
                         y="5.75"
                         rx="0"
                         ry="0" />
                </clipPath>
                <clipPath
                     id="clipbars">
                    <rect
                     width="113.4"
                     height="13.6"
                     rx="2.258666"
                     ry="2.1103067"
                     x="6.7890587"
                     y="4.9000001"
                     id="rect2815" />
                </clipPath>
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2258"
                     id="linearGradient2827"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.334468,0,0,0.219789,-8.452445,-47.85567)"
                     x1="162.86516"
                     y1="245.21945"
                     x2="162.86516"
                     y2="298.07651" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2073"
                     id="linearGradient2817"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.353131,0,0,0.268212,-10.60411,-95.53958)"
                     x1="223.25398"
                     y1="237.48343"
                     x2="223.25398"
                     y2="301.78006" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2051"
                     id="linearGradient2821"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.384191,0,0,0.437012,-17.52787,-141.364)"
                     x1="295.08344"
                     y1="343.32632"
                     x2="295.08344"
                     y2="224.68822" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2073"
                     id="linearGradient2828"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.353131,0,0,0.268212,-10.85411,-95.53958)"
                     x1="223.25398"
                     y1="237.48343"
                     x2="223.25398"
                     y2="301.78006" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2115"
                     id="linearGradient2835"
                     x1="68.125"
                     y1="7.25"
                     x2="68.125"
                     y2="25.077589"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.752725,0,0,0.50003,-4.602051,9.1255)" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2292"
                     id="linearGradient2839"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(1.061878,0,0,0.460027,-9.204941,9.533024)"
                     x1="68.125"
                     y1="7.25"
                     x2="68.125"
                     y2="43.715527" />
            </defs>
            <g
                 id="layer1">
                <rect
                     width="123.5"
                     height="21.5"
                     rx="9.8386154"
                     ry="10.379341"
                     x="1.5"
                     y="1"
                     style="fill:url(#linearGradient2172);fill-opacity:1;stroke:black;stroke-width:0.99999976;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.63492067"
                     id="rectouter" />
                <rect
                     width="114.3"
                     height="14.1"
                     rx="2.2586658"
                     ry="2.1103072"
                     x="6.3"
                     y="5"
                     style="fill:url(#linearGradient2174);fill-opacity:1;stroke:black;stroke-width:1.00000012;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.6719577"
                     id="rectinner" />
                <g
                     inkscape:groupmode="layer"
                     id="layer2"
                     inkscape:label="bars"
                     clip-path="url(#clipbars)">
                    <rect
                         width="113.5"
                         height="13.1"
                         rx="2.1912799"
                         ry="1.5982112"
                         x="6.8"
                         y="5.5"
                         style="opacity:1;fill:url(#linearGradient2827);fill-opacity:1;stroke:none;stroke-width:1.87557006;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
                         id="peakover" />
                    <rect
                         width="113.5"
                         height="13.1"
                         rx="2.1912799"
                         ry="1.5982111"
                         x="6.8"
                         y="5.5"
                         style="opacity:1;fill:url(#linearGradient2176);fill-opacity:1;stroke:none;stroke-width:1.87557006;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
                         id="peak" />
                    <path
                         d="M 3.053786,4.2362938 L 10.742332,4.2362938 L 6.8980586,9.6416242 L 3.053786,4.2362938 z "
                         style="fill:black;fill-opacity:1;stroke:none;stroke-width:1.25;stroke-miterlimit:4;stroke-opacity:1"
                         id="patharrow" />
                    <rect
                         style="opacity:1;fill:url(#linearGradient2839);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
                         id="offpeakover"
                         width="113.5"
                         height="5.5"
                         x="6.8"
                         y="13"
                         rx="0"
                         ry="0" />
                    <rect
                         style="opacity:1;fill:url(#linearGradient2835);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
                         id="offpeak"
                         width="113.5"
                         height="5.5"
                         x="6.8"
                         y="13"
                         rx="0"
                         ry="0" />
                    <path
                         d="M 9.2731107,18.772569 L 4.421751,18.698553 L 6.9057977,15.557182 L 9.2731107,18.772569 z "
                         style="opacity:1;fill:white;fill-opacity:1;stroke:none;stroke-width:1.25;stroke-miterlimit:4;stroke-opacity:1"
                         id="patharrow2"
                         inkscape:transform-center-y="3.7231195" />

                    <g
                         id="iconerror"
                         transform="matrix(0.93714,0,0,0.940057,-97.13415,33.75136)">
                        <path
                             transform="matrix(0.427044,0,0,0.492997,65.22645,-17.42024)"
                             sodipodi:open="true"
                             sodipodi:end="12.497908"
                             sodipodi:start="6.2292315"
                             d="M 144.93554,-11.799526 A 14.672466,11.932427 0 1 1 144.92252,-11.972325"
                             sodipodi:ry="11.932427"
                             sodipodi:rx="14.672466"
                             sodipodi:cy="-11.156038"
                             sodipodi:cx="130.28442"
                             id="iconerrorcircle"
                             style="opacity:1;fill:red;fill-opacity:0.78835976;stroke:black;stroke-width:2.32200027;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
                             sodipodi:type="arc" />
                        <path
                             id="path2253"
                             d="M 123.9972,-25.849435 L 118.00283,-20.400574"
                             style="fill:none;fill-opacity:0.78835976;fill-rule:evenodd;stroke:white;stroke-width:1.59812951;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
                        <path
                             id="path2255"
                             d="M 123.82577,-19.935489 L 117.67426,-25.814523"
                             style="fill:none;fill-opacity:0.78835976;fill-rule:evenodd;stroke:white;stroke-width:1.59812939;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
                    </g>
                    <path
                         style="opacity:0.88144334;fill:url(#linearGradient2249);fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999976;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.47692309"
                         d="M 13.195219,6.1889253 L 13.195219,11.292777 L 8.4873981,11.292777 L 15.549124,18.675132 L 22.24872,11.292777 L 17.450357,11.292776 L 17.540899,6.1889253 L 13.195219,6.1889253 z "
                         id="icondown"
                         sodipodi:nodetypes="cccccccc" />
                </g>
                <text
                         x="117.5"
                         y="16.8"
                         style="font-size:14px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr;text-anchor:end;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial"
                         id="pclabelouter"
                         xml:space="preserve"
                         sodipodi:linespacing="125%"><tspan
                            x="117.5"
                            y="16.8"
                            id="pclabel">0%</tspan></text>
                <text
                     xml:space="preserve"
                     style="font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;fill:#fff5f5;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;display:none;font-family:Arial"
                     x="85.661148"
                     y="17.569111"
                     id="pc2labelouter"
                     sodipodi:linespacing="125%"><tspan
                        sodipodi:role="line"
                        x="85.661148"
                        y="17.569111"
                        id="pc2label">0%</tspan></text>
            </g>
        </svg>

            
        <!-- XXXXXXXXXXXXXXXXXXXXXXX CUT HERE XXXXXXXXXXXXXXXXXXXXXXXXX -->



    </content>

    <implementation implements="nsIObserver, nsIDOMEventListener">
        <constructor>
            <![CDATA[

            //var svg = document.getAnonymousElementByAttribute(this, 'id', 'netusagesvg');
            //var suspid = svg.suspendRedraw(1000);
            
            // get num from id
            var sitemid = this.getAttribute('id');
            this.itemid = parseInt(sitemid[sitemid.length-1], 10);

            this.defprefix = "";
            this.svghack = window.navigator.userAgent.indexOf("; rv:1.8") != -1;

            if (this.svghack) {

                // hack for bug https://bugzilla.mozilla.org/show_bug.cgi?id=309020
                this.defprefix = "nu"+this.itemid+"_";

                var existingStub = document.getElementById(this.defprefix+'netusagesvgdefstub');
                if (existingStub) {
                    // remove previous stub
                    existingStub.parentNode.removeChild(existingStub);
                }

                // mass append nu0_ ids to the defs
                var tmplstub = document.getAnonymousElementByAttribute(this, 'id', "netusagesvgdefstub");
                tmplstub.setAttribute("id", this.defprefix+'netusagesvgdefstub');

                document.getAnonymousElementByAttribute(this, 'id', "netusagedefs").setAttribute("id", this.defprefix+'netusagedefs');
                this.alterNodeId(document.getAnonymousElementByAttribute(this, 'id', this.defprefix+"netusagedefs"), this.defprefix);

                var svgdefstub = document.importNode(tmplstub, true);
                var svgdefs = document.importNode(document.getAnonymousElementByAttribute(this, 'id', this.defprefix+"netusagedefs"), true);

                svgdefstub.appendChild(svgdefs);
                var c = svgdefstub.cloneNode(true);

                document.documentElement.appendChild(c);

                var elids = ['layer2', 'rectouter', 'rectinner', 'peak', 'peakover', 'offpeak', 'offpeakover', 'icondown'];
                for(var i in elids) {
                
                    var r = document.getAnonymousElementByAttribute(this, 'id', elids[i]).getAttribute('clip-path');
                    if (r != null) {
                        r = r.replace(/url\(#([^)]+)/, "url("+document.location+"#"+this.defprefix+"$1");
                        document.getAnonymousElementByAttribute(this, 'id', elids[i]).setAttribute("clip-path", r);
                    }
                    r = document.getAnonymousElementByAttribute(this, 'id', elids[i]).getAttribute('style');
                    if (r != null) {
                        r = r.replace(/fill: url\(#([^)]+)/, "fill: url("+document.location+"#"+this.defprefix+"$1");
                        
                        document.getAnonymousElementByAttribute(this, 'id', elids[i]).setAttribute("style", r);
                    }
                }
            }

            var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);
            prefs = prefs.getBranch("extensions.netusage.");            

            if(prefs.getBoolPref('widen')){

                var elids2 = ['netusagesvg', 'rectouter', 'rectinner', 'peakover', 'peak', 'offpeakover', 'offpeak', 'pclabel', 'pclabelouter', 'pc2labelouter', 'pc2label'];
                for(var i in elids2) {

                    var e = document.getAnonymousElementByAttribute(this, 'id', elids2[i]), huh = 'x';

                    if(e.hasAttribute('width')){
                    
                        huh = 'width';
                    
                    }
                
                    var getW = Number(e.getAttribute(huh))+prefs.getIntPref("widenNumber");

                    e.setAttribute(huh, getW);

                }
        
            }        

            // GUI
            this.maxWidth = parseInt(document.getAnonymousElementByAttribute(this, 'id', 'peakover').getAttribute("width"), 10);
            this.maxWidth2 = parseInt(document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').getAttribute("width"), 10);
            // for New Modern offpeak which progresses backwards
            this.baseX = parseInt(document.getAnonymousElementByAttribute(this, 'id', this.defprefix+'clipoffpeakrect').getAttribute("x"), 10);
            
            // The following two function fails when running outside chrome
            // flashing timer
            try {
            this.timer = Components.classes['@mozilla.org/timer;1'].createInstance(Components.interfaces.nsITimer);
            } catch (e) { dump("EXCEPTION flashing timer create failed" + e); }
            
            try {
            this.addEventListener('DOMAttrModified', this, false);
            } catch (e) { dump("EXCEPTION addEventListener DOMAttrModified failed" + e); }

            //svg.unsuspendRedraw(suspid);
            
            // set state to initial values
            this.refreshItem("text", this.getAttribute("text"));
            this.refreshItem("text2", this.getAttribute("text2"));
            this.refreshItem("pc", parseInt(this.getAttribute("pc"), 10));
            this.refreshItem("pc2", parseInt(this.getAttribute("pc2"), 10));
            this.refreshItem("arrow", parseInt(this.getAttribute("arrow"), 10));
            this.refreshItem("arrow2", parseInt(this.getAttribute("arrow2"), 10));
            this.refreshItem("status", this.getAttribute("status"));
            this.refreshItem("flashing", this.getAttribute("flashing"));
            
            ]]>
        </constructor>

        <destructor>
            <![CDATA[
            if (this.timer)
                this.timer.cancel();
            this.timer = null;
            ]]>
        </destructor>

        <property name="arrow">
            <getter>
                return parseInt(this.getAttribute('arrow'));
            </getter>
            <setter>
                <![CDATA[
            this.setAttribute("arrow", val);
            ]]>
            </setter>
        </property>

        <property name="arrow2">
            <getter>
                return parseInt(this.getAttribute('arrow2'));
            </getter>
            <setter>
                <![CDATA[
            this.setAttribute("arrow2", val);
            ]]>
            </setter>
        </property>



        <property name="pc">
            <getter>
                return parseInt(this.getAttribute('pc'));
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("pc", val);
            ]]>
            </setter>
        </property>


        <property name="pc2">
            <getter>
                return parseInt(this.getAttribute('pc2'));
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("pc2", val);
            ]]>
            </setter>
        </property>

        <property name="status">
            <getter>
                return this.getAttribute('status');
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("status", val);
            ]]>
            </setter>
        </property>


        <property name="text">
            <getter>
                return this.getAttribute('text');
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("text", val);
            ]]>
            </setter>
        </property>
        <property name="text2">
            <getter>
                return this.getAttribute('text2');
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("text2", val);
            ]]>
            </setter>
        </property>
        <property name="flashing">
            <getter>
                return this.getAttribute('flashing');
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("flashing", val); // val needs to be turned into string or else DOMAttrModified won't trip
            ]]>
            </setter>
        </property>

        <method name="alterNodeId">
            <parameter name="root" />
            <parameter name="prepend_id" />
            <body>
                <![CDATA[
            for (var i = 0; i < root.childNodes.length; i++) {
                this.alterNodeId(root.childNodes[i], prepend_id);
                if (!root.childNodes[i].setAttribute)
                    continue;
                //root.childNodes[i].setAttribute("id", prepend_id+root.childNodes[i].id);
                root.childNodes[i].id = prepend_id+root.childNodes[i].id;
                //if (root.childNodes[i].getAttributeNS("http://www.w3.org/1999/xlink", "href") != null) {
                var xlinkhref = root.childNodes[i].getAttribute("xlink:href");
                if (xlinkhref != null) {
                    root.childNodes[i].setAttribute("xlink:href", "#"+prepend_id+xlinkhref.substring(1, xlinkhref.length));
                    //alert(root.childNodes[i].getAttribute("xlink:href"));
                }
            }
            ]]>
            </body>
        </method>

        <method name="observe">
            <parameter name="subject" />
            <parameter name="topic" />
            <parameter name="data" />
            <body>
                <![CDATA[
            if (topic == 'timer-callback') {
                try {
                // flash
                var svg = document.getAnonymousElementByAttribute(this, 'id', 'netusagesvg');
                if (this.anipos >= 9 || this.anipos <= 5) {
                    this.anistep = -this.anistep;
                }
                if (this.flashEnabled || (!this.flashEnabled && this.anipos < 9)) {
                    //svg.style.MozOpacity = '0.'+this.anipos;
                    svg.setAttribute('style', 'opacity: 0.'+this.anipos);
                    this.anipos += this.anistep;
                } else {
                    // flashing disabled and cycle is complete
                    this.timer.cancel();
                    //svg.style.opacity = '1';
                    svg.setAttribute('style', 'opacity: 1');
                    this.anipos = 9;
                    this.anistep = 1;
                }
                } catch (e) { this.timer.cancel(); alert('netusage flash timer-callback error: '+e); }
            }

            ]]>
            </body>
        </method>


        <method name="handleEvent">
            <parameter name="e" />
            <body>
                <![CDATA[
            //dump('DOMAttrModified '+e.attrName+' '+e.originalTarget+'\n');
            if (e.type == 'DOMAttrModified' && e.originalTarget == this) {
                if (e.attrName == 'status' || e.attrName == 'text' || e.attrName == 'text2' || e.attrName == 'flashing')
                    this.refreshItem(e.attrName, e.newValue);
                else
                    this.refreshItem(e.attrName, parseInt(e.newValue, 10));
                //e.prevValue = 
                
                /* dump('event {\n');
                for(i in e) {
                    dump(i + ": " + e[i] +"\n")
                }
                dump('}\n'); */
                
            }
            ]]>
            </body>
        </method>


        <method name="refreshItem">
            <parameter name="attr" />
            <parameter name="v" />
            <body>
                <![CDATA[
            var maxWidth = parseInt(this.maxWidth); // TODO do we really need to parseInt? was it a bug?
            var maxWidth2 = parseInt(this.maxWidth2);
            var baseX = parseInt(this.baseX);
            var svg = document.getAnonymousElementByAttribute(this, 'id', 'netusagesvg');
            var suspid = svg.suspendRedraw(1000);
            //e.prevValue = 
            
            if (attr == 'pc') {
                if (v < 100) {
                    document.getAnonymousElementByAttribute(this, 'id', 'peakover').style.display = 'none';
                    document.getAnonymousElementByAttribute(this, 'id', 'peak').setAttribute('width', maxWidth * v / 100);
                }
                else {
                    document.getAnonymousElementByAttribute(this, 'id', 'peakover').style.display = '';
                    document.getAnonymousElementByAttribute(this, 'id', 'peak').setAttribute('width', maxWidth * 100 / v);
                }
            }
            else if (attr == 'pc2') {
                if ((document.getAnonymousElementByAttribute(this, 'id', 'offpeak').getAttribute('clip-path')+"").indexOf('clipoffpeak') == -1) {
                    if (v < 100) {
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').style.display = 'none';
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeak').setAttribute('width', maxWidth2 * v / 100);
                    }
                    else {
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').style.display = '';
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeak').setAttribute('width', maxWidth2 * 100 / v);
                    }
                }
                else {
                    // for New Modern theme, where off peak bar comes the opposite direction
                    var clipoffpeakrect = this.svghack ? document.getElementById(this.defprefix+'clipoffpeakrect') : document.getAnonymousElementByAttribute(this, 'id', 'clipoffpeakrect');

                    if (v < 100) {
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').style.display = 'none';
                        clipoffpeakrect.setAttribute('x', baseX + maxWidth - maxWidth * v / 100);
                        clipoffpeakrect.setAttribute('width', maxWidth * v / 100);
                    }
                    else {
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').style.display = '';
                        clipoffpeakrect.setAttribute('x', baseX + maxWidth - maxWidth * 100 / v);
                        clipoffpeakrect.setAttribute('width', maxWidth * 100 / v);
                    }
                    
                    // hack for bug that doesn't redraw clipping
                    var cp = document.getAnonymousElementByAttribute(this, 'id', 'offpeak').getAttribute('clip-path');
                    document.getAnonymousElementByAttribute(this, 'id', 'offpeak').setAttribute('clip-path', '');
                    document.getAnonymousElementByAttribute(this, 'id', 'offpeak').setAttribute('clip-path', cp);
                }
            }
            else if (attr == 'arrow') {
                if (v <= 100) {
                    document.getAnonymousElementByAttribute(this, 'id', 'patharrow').setAttribute('transform', 'translate('+(maxWidth * v / 100)+',0)');
                }
            }
            else if (attr == 'arrow2') {
                if (v > 0 && v <= 100) {
                    document.getAnonymousElementByAttribute(this, 'id', 'patharrow2').style.display = '';
                    if ((document.getAnonymousElementByAttribute(this, 'id', 'offpeak').getAttribute('clip-path')+"").indexOf('clipoffpeak') == -1)
                        document.getAnonymousElementByAttribute(this, 'id', 'patharrow2').setAttribute('transform', 'translate('+(maxWidth2 * v / 100)+',0)');
                    else // for New Modern Theme
                        document.getAnonymousElementByAttribute(this, 'id', 'patharrow2').setAttribute('transform', 'translate(-'+(maxWidth * v / 100)+',0)');
                } else {
                    document.getAnonymousElementByAttribute(this, 'id', 'patharrow2').style.display = 'none';
                }
            }
            else if (attr == 'status') {
                switch(v) {
                    case 'fetching':
                        document.getAnonymousElementByAttribute(this, 'id', "iconerror").setAttribute("display", "none");
                        document.getAnonymousElementByAttribute(this, 'id', "icondown").setAttribute("display", "");
                        break;
                    case 'error':
                        document.getAnonymousElementByAttribute(this, 'id', "iconerror").setAttribute("display", "");
                        document.getAnonymousElementByAttribute(this, 'id', "icondown").setAttribute("display", "none");
                        break;
                    default:
                        document.getAnonymousElementByAttribute(this, 'id', "iconerror").setAttribute("display", "none");
                        document.getAnonymousElementByAttribute(this, 'id', "icondown").setAttribute("display", "none");
                }
            }
            else if (attr == 'text') {
                var el = document.createTextNode(v);
                var pclabel = document.getAnonymousElementByAttribute(this, 'id', 'pclabel');
                if (pclabel.hasChildNodes()) {
                    pclabel.removeChild(pclabel.firstChild);
                }
                pclabel.appendChild(el);
            }
            else if (attr == 'text2') {
                var el = document.createTextNode(v);
                var pclabel = document.getAnonymousElementByAttribute(this, 'id', 'pc2label');
                if (pclabel.hasChildNodes()) {
                    pclabel.removeChild(pclabel.firstChild);
                }
                pclabel.appendChild(el);
            }
            else if (attr == 'flashing') {
                if (!v || v == "false") {
                    this.flashEnabled = false;

                } else {
                    this.anipos = 9;
                    this.anistep = 1;
                    this.flashEnabled = true;

                    if (!this.timer)
                            return; // TODO This happens because on first run, netusage update has returned when usagebar constructor has not been run yet
                    this.timer.cancel();
                    this.timer.init(this, 150, this.timer.TYPE_REPEATING_SLACK);
                }
            }
            svg.unsuspendRedraw(suspid);

            ]]>
            </body>
        </method>


    </implementation>
</binding>



</bindings>

Untitled XML (29-Jun @ 16:00)

yansky

Syntax Highlighted Code

  1. <?xml version="1.0"?>
  2. <!--
  3.  
  4. The NetUsage Project
  5. [257 more lines...]

Plain Code

<?xml version="1.0"?>
<!--

The NetUsage Project
http://netusage.mozdev.org/

Copyright (C) 2006, NetUsage Project
This extension can be freely distributed under
the terms of the Mozilla Public Licence 1.1
See the licence at http://www.mozilla.org/MPL/


Net Usage Item

XULPref

-->

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>


<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns:html="http://www.w3.org/1999/xhtml"
    title="Net Usage Preferences"
    style="margin: 0px; padding: 0px;"
    onload="startup();"
    ondialogaccept="return fbAccept();"
    id="netusageprefsdlg">

<script type="application/x-javascript" src="usagelib.js" />
<script type="application/x-javascript" src="usagePrefs.js" />
<stack width="100%" style="background-color: #FFFFFF;">
    <hbox pack="end" style="background: url(chrome://netusageitem/skin/banner.png) top left no-repeat; height: 64px"></hbox>
    <description width="100%" id="nuiversion" style="color: #000000; font-size: 8pt; font-weight: bold;" />
</stack>
<vbox style="padding: 5px" flex="1">
<groupbox orient="horizontal" width="100%">
    <caption label="General Settings" />

    <vbox flex="1">
        <grid flex="1">
            <columns>
                <column flex="1" />
                <column flex="3" />
            </columns>
            <rows id="generalgrid">
                <row>
                    <label control="selisp" value="ISP" />
                    <hbox>
                        <menulist id="selcountry" disabled="false" oncommand="refreshISPList(null);">
                            <menupopup id="selcts">
                                <menuitem id="ct_more" value="more" label="More..." />
                            </menupopup>
                        </menulist>
                        <menulist id="selisp" disabled="false" flex="1"  oncommand="settingsChanged=true; refreshISPPrefs(false);"
                            preftype="string"
                            prefstring="extensions.netusage.0.userisp"
                            prefattribute="value">
                            <menupopup id="selisps">
                                <menuitem id="ispsna" value="na" label="Disable Usage Extension" />
                            </menupopup>
                        </menulist>
                    </hbox>
                </row>
                <row>
                    <label control="selinterval" value="Auto Refresh" />
                    <menulist id="selinterval" disabled="false" oncommand="settingsChanged=true;"
                        preftype="int"
                        prefstring="extensions.netusage.0.checkinterval"
                        prefattribute="value">
                        <menupopup>
                            <menuitem value="-1" label="Disabled" />
                            <menuitem value="900" label="Every 15 minutes" />
                            <menuitem value="1800" label="Every 30 minutes" />
                            <menuitem value="3600" label="Every hour" />
                            <menuitem value="7200" label="Every 2 hours" />
                            <menuitem value="14400" label="Every 4 hours" />
                            <menuitem value="21600" label="Every 6 hours" />
                            <menuitem value="43200" label="Every 12 hours" />
                            <menuitem value="86400" label="Every 24 hours" />
                        </menupopup>
                    </menulist>
                </row>
                <row id="rowuuname">
                    <label id="lbluuname" control="uuname" value="Username" />
                    <textbox id="uuname" flex="1" />
                </row>
                <row id="rowupass">
                    <label id="lblupass" control="upass" value="Password" />
                    <textbox id="upass" flex="1" type="password" />
                </row>
            </rows>
        </grid>
    </vbox>

</groupbox>



<groupbox orient="horizontal" width="100%">
    <caption label="ISP Settings" />

    <vbox flex="1">
        <description id="lbldescisp"></description>
        <grid>
            <columns>
                <column />
                <column flex="1" />
            </columns>
            <rows id="ispprefgrid">

            </rows>
        </grid>
    </vbox>

</groupbox>

<groupbox orient="horizontal" width="100%">
    <caption label="Time Settings" />

    <vbox flex="1">
        <label value="Configuration of the following time related settings are optional." />
        <grid>
            <columns>
                <column />
                <column flex="1" />
            </columns>
            <rows id="">
                <row>
                <label value="Offpeak (In Local time)" />
                <hbox>
                    <label value="From" />
                    <menulist id="seloffpeakstarttime" disabled="false" oncommand="settingsChanged=true;"
                        preftype="int"
                        prefstring="extensions.netusage.0.vars.offpeakstarttime"
                        prefattribute="value">
                        <menupopup>
                            <menuitem value="0" label="12:00 AM Midnight" />
                            <menuitem value="3600" label="1:00 AM" />
                            <menuitem value="7200" label="2:00 AM" />
                            <menuitem value="10800" label="3:00 AM" />
                            <menuitem value="14400" label="4:00 AM" />
                            <menuitem value="18000" label="5:00 AM" />
                            <menuitem value="21600" label="6:00 AM" />
                            <menuitem value="25200" label="7:00 AM" />
                            <menuitem value="28800" label="8:00 AM" />
                            <menuitem value="32400" label="9:00 AM" />
                            <menuitem value="36000" label="10:00 AM" />
                            <menuitem value="39600" label="11:00 AM" />
                            <menuitem value="43200" label="12:00 PM Noon" />
                            <menuitem value="46800" label="1:00 PM" />
                            <menuitem value="50400" label="2:00 PM" />
                            <menuitem value="54000" label="3:00 PM" />
                            <menuitem value="57600" label="4:00 PM" />
                            <menuitem value="61200" label="5:00 PM" />
                            <menuitem value="64800" label="6:00 PM" />
                            <menuitem value="68400" label="7:00 PM" />
                            <menuitem value="72000" label="8:00 PM" />
                            <menuitem value="75600" label="9:00 PM" />
                            <menuitem value="79200" label="10:00 PM" />
                            <menuitem value="82800" label="11:00 PM" />
                        </menupopup>
                    </menulist>
                    <label value="to" />
                    <menulist id="seloffpeakendtime" disabled="false" oncommand="settingsChanged=true;"
                        preftype="int"
                        prefstring="extensions.netusage.0.vars.offpeakendtime"
                        prefattribute="value">
                        <menupopup>
                            <menuitem value="0" label="12:00 AM Midnight" />
                            <menuitem value="3600" label="1:00 AM" />
                            <menuitem value="7200" label="2:00 AM" />
                            <menuitem value="10800" label="3:00 AM" />
                            <menuitem value="14400" label="4:00 AM" />
                            <menuitem value="18000" label="5:00 AM" />
                            <menuitem value="21600" label="6:00 AM" />
                            <menuitem value="25200" label="7:00 AM" />
                            <menuitem value="28800" label="8:00 AM" />
                            <menuitem value="32400" label="9:00 AM" />
                            <menuitem value="36000" label="10:00 AM" />
                            <menuitem value="39600" label="11:00 AM" />
                            <menuitem value="43200" label="12:00 PM Noon" />
                            <menuitem value="46800" label="1:00 PM" />
                            <menuitem value="50400" label="2:00 PM" />
                            <menuitem value="54000" label="3:00 PM" />
                            <menuitem value="57600" label="4:00 PM" />
                            <menuitem value="61200" label="5:00 PM" />
                            <menuitem value="64800" label="6:00 PM" />
                            <menuitem value="68400" label="7:00 PM" />
                            <menuitem value="72000" label="8:00 PM" />
                            <menuitem value="75600" label="9:00 PM" />
                            <menuitem value="79200" label="10:00 PM" />
                            <menuitem value="82800" label="11:00 PM" />
                        </menupopup>
                    </menulist>
                </hbox>
                </row>
                <row>
                    <label value="ISP Accounting Timezone" />

                    <menulist id="selisptime" disabled="false" oncommand="settingsChanged=true;"
                        preftype="int"
                        prefstring="extensions.netusage.0.vars.isptz"
                        prefattribute="value">
                        <menupopup>
                            <menuitem id="selisptimedefault" value="86400" label="Default/Local Time" />

                            <menuitem value="46800" label="(GMT+13:00)" />
                            <menuitem value="43200" label="(GMT+12:00) New Zealand" />
                            <menuitem value="39600" label="(GMT+11:00) NSW VIC TAS Summer Time" />
                            <menuitem value="37800" label="(GMT+10:30) SA Summer Time" />
                            <menuitem value="36000" label="(GMT+10:00) QLD; NSW VIC TAS Winter Time" />
                            <menuitem value="34200" label="(GMT+09:30) NT; SA Winter Time" />
                            <menuitem value="32400" label="(GMT+09:00) WA Summer Time" />
                            <menuitem value="28800" label="(GMT+08:00) WA Winter Time" />
                            <menuitem value="25200" label="(GMT+07:00)" />
                            <menuitem value="21600" label="(GMT+06:00)" />
                            <menuitem value="18000" label="(GMT+05:00)" />
                            <menuitem value="14400" label="(GMT+04:00)" />
                            <menuitem value="10800" label="(GMT+03:00)" />
                            <menuitem value="7200" label="(GMT+02:00)" />
                            <menuitem value="3600" label="(GMT+01:00)" />
                            <menuitem value="0" label="(GMT+00:00)" />
                            <menuitem value="-3600" label="(GMT-01:00)" />
                            <menuitem value="-7200" label="(GMT-02:00)" />
                            <menuitem value="-10800" label="(GMT-03:00)" />
                            <menuitem value="-14400" label="(GMT-04:00)" />
                            <menuitem value="-18000" label="(GMT-05:00)" />
                            <menuitem value="-21600" label="(GMT-06:00)" />
                            <menuitem value="-25200" label="(GMT-07:00)" />
                            <menuitem value="-28800" label="(GMT-08:00)" />
                            <menuitem value="-32400" label="(GMT-09:00)" />
                            <menuitem value="-36000" label="(GMT-10:00)" />
                            <menuitem value="-39600" label="(GMT-11:00)" />
                            <menuitem value="-43200" label="(GMT-12:00)" />
                        </menupopup>
                    </menulist>
                </row>
            </rows>
        </grid>
    </vbox>

</groupbox>
<spacer style="margin-top:10px;" />
<groupbox orient="horizontal" width="100%">
<checkbox label="Widen NetUsage Bar By" checked="false" prefstring="extensions.netusage.widen" prefattribute="checked" preftype="bool" />
<textbox id="widepix" preftype="int" prefstring="extensions.netusage.widenNumber" />Pixels  (requires a restart)
</groupbox>
<spacer style="margin-bottom:10px;" />
<hbox>
    <hbox>
        <button label="Clear all settings" id="btnclear"  onclick="clearAllSettings();" />
    </hbox>
    <hbox flex="1" pack="end">
        <button label="OK" id="btnok" onclick="if (onOK()) window.close();" />
        <button label="Cancel" onclick="window.close();" />
    </hbox>
</hbox>

</vbox>

</window>

Untitled XML (29-Jun @ 15:56)

Syntax Highlighted Code

  1. <?xml version="1.0"?>
  2. <bindings xmlns="http://www.mozilla.org/xbl"
  3.  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  4.  xmlns:html="http://www.w3.org/1999/xhtml">
  5. [903 more lines...]

Plain Code

<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl"
 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 xmlns:html="http://www.w3.org/1999/xhtml">


<binding id="item1" styleexplicitcontent="true">
<!-- Net Usage Item GUI, licensed under the Mozilla Public License (C) 2008 Loune lpgcritter at nasquan dot com  -->
    <!-- <resources>
    <stylesheet src="chrome://"/>
    </resources> -->
    <content>

        <svg
            xmlns:svg="http://www.w3.org/2000/svg"
            xmlns="http://www.w3.org/2000/svg"
            xmlns:xlink="http://www.w3.org/1999/xlink"
            version="1.0"
            x="0"
            y="0"
            width="0"
            height="0"
            id="netusagesvgdefstub" />


        <!-- XXXXXXXXXXXXXXXXXXXXXXX CUT HERE XXXXXXXXXXXXXXXXXXXXXXXXX -->

            
            
        <svg
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:cc="http://web.resource.org/cc/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:svg="http://www.w3.org/2000/svg"
             xmlns="http://www.w3.org/2000/svg"
             xmlns:xlink="http://www.w3.org/1999/xlink"
             xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
             xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
             version="1.0"
             x="0.00000000"
             y="0.00000000"
             width="126"
             height="23"
             id="netusagesvg"
             sodipodi:version="0.32"
             inkscape:version="0.44"
             sodipodi:docname="netusage1.svg"
             sodipodi:docbase="D:\Workspace\netusage">
            <metadata
                 id="metadata65">
                <rdf:RDF>
                    <cc:Work
                         rdf:about="">
                        <dc:format>image/svg+xml</dc:format>
                        <dc:type
                             rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
                    </cc:Work>
                </rdf:RDF>
            </metadata>
            <sodipodi:namedview
                 inkscape:window-height="641"
                 inkscape:window-width="1136"
                 inkscape:pageshadow="2"
                 inkscape:pageopacity="0.0"
                 borderopacity="1.0"
                 bordercolor="#666666"
                 pagecolor="#ffffff"
                 id="base"
                 inkscape:zoom="11.313709"
                 inkscape:cx="47.127219"
                 inkscape:cy="0.49738615"
                 inkscape:window-x="245"
                 inkscape:window-y="259"
                 inkscape:current-layer="layer2"
                 showguides="true"
                 inkscape:guide-bbox="true"
                 height="23px"
                 width="126px" />
            <defs
                 id="netusagedefs">
                <linearGradient
                     id="linearGradient2243">
                    <stop
                         style="stop-color:#75ff00;stop-opacity:1"
                         offset="0"
                         id="stop2245" />
                    <stop
                         style="stop-color:#2f7f39;stop-opacity:1"
                         offset="1"
                         id="stop2247" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2258">
                    <stop
                         style="stop-color:#fff07a;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2260" />
                    <stop
                         style="stop-color:#ff9e4e;stop-opacity:1.0000000"
                         offset="0.50000000"
                         id="stop2262" />
                    <stop
                         style="stop-color:#ff5000;stop-opacity:1.0000000"
                         offset="0.50925928"
                         id="stop2264" />
                    <stop
                         style="stop-color:#ffd600;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2266" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2178">
                    <stop
                         style="stop-color:#9cdc62;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2184" />
                    <stop
                         style="stop-color:#72e035;stop-opacity:1.0000000"
                         offset="0.37201953"
                         id="stop2188" />
                    <stop
                         style="stop-color:#5ea32a;stop-opacity:1;"
                         offset="0.37201953"
                         id="stop2190" />
                    <stop
                         style="stop-color:#b0ea7a;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2186" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2083">
                    <stop
                         style="stop-color:#7fff00;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2085" />
                    <stop
                         style="stop-color:#cfd218;stop-opacity:1.0000000"
                         offset="0.29076648"
                         id="stop2152" />
                    <stop
                         style="stop-color:#e0b21c;stop-opacity:1.0000000"
                         offset="0.71105301"
                         id="stop2156" />
                    <stop
                         style="stop-color:#ee2420;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2087" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2073">
                    <stop
                         style="stop-color:#7c92b9;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2075" />
                    <stop
                         style="stop-color:#ffffff;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2077" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2051">
                    <stop
                         style="stop-color:#747474;stop-opacity:1.0000000"
                         offset="0.00000000"
                         id="stop2053" />
                    <stop
                         style="stop-color:#ffffff;stop-opacity:1.0000000"
                         offset="1.0000000"
                         id="stop2055" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2115">
                    <stop
                         style="stop-color:#1b45c4;stop-opacity:1;"
                         offset="0"
                         id="stop2117" />
                    <stop
                         style="stop-color:#0140ff;stop-opacity:0;"
                         offset="1"
                         id="stop2119" />
                </linearGradient>
                <linearGradient
                     id="linearGradient2292">
                    <stop
                         id="stop2294"
                         offset="0"
                         style="stop-color:#ffe31c;stop-opacity:1;" />
                    <stop
                         id="stop2296"
                         offset="1"
                         style="stop-color:#ffffff;stop-opacity:0;" />
                </linearGradient>
                <linearGradient
                     x1="-39.743919"
                     y1="271.64819"
                     x2="456.23572"
                     y2="271.64819"
                     id="linearGradient2081"
                     xlink:href="#linearGradient2083"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.409736,0,0,0.208754,30.24163,211.051)" />
                <linearGradient
                     x1="295.08344"
                     y1="343.32632"
                     x2="295.08344"
                     y2="224.68822"
                     id="linearGradient2172"
                     xlink:href="#linearGradient2051"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.369234,0,0,0.410816,-15.19644,-99.69333)" />
                <linearGradient
                     x1="222.15965"
                     y1="237.48343"
                     x2="222.15965"
                     y2="301.78006"
                     id="linearGradient2174"
                     xlink:href="#linearGradient2073"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.341899,0,0,0.26744,-9.276913,-60.6394)" />
                <linearGradient
                     x1="162.57631"
                     y1="245.21945"
                     x2="162.57631"
                     y2="298.0766"
                     id="linearGradient2176"
                     xlink:href="#linearGradient2178"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.245416,0,0,0.242214,-4.287223,-52.43637)" />
                <linearGradient
                     x1="162.57631"
                     y1="245.21945"
                     x2="162.57631"
                     y2="298.07651"
                     id="linearGradient2256"
                     xlink:href="#linearGradient2258"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.348017,0,0,0.208754,-8.863015,-44.14369)" />
                <linearGradient
                     collect="always"
                     xlink:href="#linearGradient2115"
                     id="linearGradient2314"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(3.046092,0,0,0.458,-842.6463,-147.6332)"
                     x1="297.30167"
                     y1="354.22491"
                     x2="297.30167"
                     y2="371.1955" />
                <linearGradient
                     collect="always"
                     xlink:href="#linearGradient2292"
                     id="linearGradient2316"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(3.012188,0,0,0.447051,-831.282,-150.2732)"
                     x1="297.31323"
                     y1="354.22491"
                     x2="297.31323"
                     y2="371.1955" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2243"
                     id="linearGradient2249"
                     x1="136.79781"
                     y1="19.51153"
                     x2="136.79781"
                     y2="7.1371608"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.883905,0,0,0.889813,-105.5481,-0.606724)" />
                <clipPath
                     id="clipoffpeak">
                    <rect
                         id="clipoffpeakrect"
                         width="117.875"
                         height="14.520815"
                         x="7"
                         y="5.75"
                         rx="0"
                         ry="0" />
                </clipPath>
                <clipPath
                     id="clipbars">
                    <rect
                     width="113.4"
                     height="13.6"
                     rx="2.258666"
                     ry="2.1103067"
                     x="6.7890587"
                     y="4.9000001"
                     id="rect2815" />
                </clipPath>
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2258"
                     id="linearGradient2827"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.334468,0,0,0.219789,-8.452445,-47.85567)"
                     x1="162.86516"
                     y1="245.21945"
                     x2="162.86516"
                     y2="298.07651" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2073"
                     id="linearGradient2817"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.353131,0,0,0.268212,-10.60411,-95.53958)"
                     x1="223.25398"
                     y1="237.48343"
                     x2="223.25398"
                     y2="301.78006" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2051"
                     id="linearGradient2821"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.384191,0,0,0.437012,-17.52787,-141.364)"
                     x1="295.08344"
                     y1="343.32632"
                     x2="295.08344"
                     y2="224.68822" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2073"
                     id="linearGradient2828"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.353131,0,0,0.268212,-10.85411,-95.53958)"
                     x1="223.25398"
                     y1="237.48343"
                     x2="223.25398"
                     y2="301.78006" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2115"
                     id="linearGradient2835"
                     x1="68.125"
                     y1="7.25"
                     x2="68.125"
                     y2="25.077589"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(0.752725,0,0,0.50003,-4.602051,9.1255)" />
                <linearGradient
                     inkscape:collect="always"
                     xlink:href="#linearGradient2292"
                     id="linearGradient2839"
                     gradientUnits="userSpaceOnUse"
                     gradientTransform="matrix(1.061878,0,0,0.460027,-9.204941,9.533024)"
                     x1="68.125"
                     y1="7.25"
                     x2="68.125"
                     y2="43.715527" />
            </defs>
            <g
                 id="layer1">
                <rect
                     width="123.5"
                     height="21.5"
                     rx="9.8386154"
                     ry="10.379341"
                     x="1.5"
                     y="1"
                     style="fill:url(#linearGradient2172);fill-opacity:1;stroke:black;stroke-width:0.99999976;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.63492067"
                     id="rectouter" />
                <rect
                     width="114.3"
                     height="14.1"
                     rx="2.2586658"
                     ry="2.1103072"
                     x="6.3"
                     y="5"
                     style="fill:url(#linearGradient2174);fill-opacity:1;stroke:black;stroke-width:1.00000012;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.6719577"
                     id="rectinner" />
                <g
                     inkscape:groupmode="layer"
                     id="layer2"
                     inkscape:label="bars"
                     clip-path="url(#clipbars)">
                    <rect
                         width="113.5"
                         height="13.1"
                         rx="2.1912799"
                         ry="1.5982112"
                         x="6.8"
                         y="5.5"
                         style="opacity:1;fill:url(#linearGradient2827);fill-opacity:1;stroke:none;stroke-width:1.87557006;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
                         id="peakover" />
                    <rect
                         width="113.5"
                         height="13.1"
                         rx="2.1912799"
                         ry="1.5982111"
                         x="6.8"
                         y="5.5"
                         style="opacity:1;fill:url(#linearGradient2176);fill-opacity:1;stroke:none;stroke-width:1.87557006;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
                         id="peak" />
                    <path
                         d="M 3.053786,4.2362938 L 10.742332,4.2362938 L 6.8980586,9.6416242 L 3.053786,4.2362938 z "
                         style="fill:black;fill-opacity:1;stroke:none;stroke-width:1.25;stroke-miterlimit:4;stroke-opacity:1"
                         id="patharrow" />
                    <rect
                         style="opacity:1;fill:url(#linearGradient2839);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
                         id="offpeakover"
                         width="113.5"
                         height="5.5"
                         x="6.8"
                         y="13"
                         rx="0"
                         ry="0" />
                    <rect
                         style="opacity:1;fill:url(#linearGradient2835);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
                         id="offpeak"
                         width="113.5"
                         height="5.5"
                         x="6.8"
                         y="13"
                         rx="0"
                         ry="0" />
                    <path
                         d="M 9.2731107,18.772569 L 4.421751,18.698553 L 6.9057977,15.557182 L 9.2731107,18.772569 z "
                         style="opacity:1;fill:white;fill-opacity:1;stroke:none;stroke-width:1.25;stroke-miterlimit:4;stroke-opacity:1"
                         id="patharrow2"
                         inkscape:transform-center-y="3.7231195" />

                    <g
                         id="iconerror"
                         transform="matrix(0.93714,0,0,0.940057,-97.13415,33.75136)">
                        <path
                             transform="matrix(0.427044,0,0,0.492997,65.22645,-17.42024)"
                             sodipodi:open="true"
                             sodipodi:end="12.497908"
                             sodipodi:start="6.2292315"
                             d="M 144.93554,-11.799526 A 14.672466,11.932427 0 1 1 144.92252,-11.972325"
                             sodipodi:ry="11.932427"
                             sodipodi:rx="14.672466"
                             sodipodi:cy="-11.156038"
                             sodipodi:cx="130.28442"
                             id="iconerrorcircle"
                             style="opacity:1;fill:red;fill-opacity:0.78835976;stroke:black;stroke-width:2.32200027;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
                             sodipodi:type="arc" />
                        <path
                             id="path2253"
                             d="M 123.9972,-25.849435 L 118.00283,-20.400574"
                             style="fill:none;fill-opacity:0.78835976;fill-rule:evenodd;stroke:white;stroke-width:1.59812951;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
                        <path
                             id="path2255"
                             d="M 123.82577,-19.935489 L 117.67426,-25.814523"
                             style="fill:none;fill-opacity:0.78835976;fill-rule:evenodd;stroke:white;stroke-width:1.59812939;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
                    </g>
                    <path
                         style="opacity:0.88144334;fill:url(#linearGradient2249);fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999976;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.47692309"
                         d="M 13.195219,6.1889253 L 13.195219,11.292777 L 8.4873981,11.292777 L 15.549124,18.675132 L 22.24872,11.292777 L 17.450357,11.292776 L 17.540899,6.1889253 L 13.195219,6.1889253 z "
                         id="icondown"
                         sodipodi:nodetypes="cccccccc" />
                </g>
                <text
                         x="117.5"
                         y="16.8"
                         style="font-size:14px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr;text-anchor:end;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Arial"
                         id="pclabelouter"
                         xml:space="preserve"
                         sodipodi:linespacing="125%"><tspan
                            x="117.5"
                            y="16.8"
                            id="pclabel">0%</tspan></text>
                <text
                     xml:space="preserve"
                     style="font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:end;line-height:125%;writing-mode:lr-tb;text-anchor:end;fill:#fff5f5;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;display:none;font-family:Arial"
                     x="85.661148"
                     y="17.569111"
                     id="pc2labelouter"
                     sodipodi:linespacing="125%"><tspan
                        sodipodi:role="line"
                        x="85.661148"
                        y="17.569111"
                        id="pc2label">0%</tspan></text>
            </g>
        </svg>

            
        <!-- XXXXXXXXXXXXXXXXXXXXXXX CUT HERE XXXXXXXXXXXXXXXXXXXXXXXXX -->



    </content>

    <implementation implements="nsIObserver, nsIDOMEventListener">
        <constructor>
            <![CDATA[

            //var svg = document.getAnonymousElementByAttribute(this, 'id', 'netusagesvg');
            //var suspid = svg.suspendRedraw(1000);
            
            // get num from id
            var sitemid = this.getAttribute('id');
            this.itemid = parseInt(sitemid[sitemid.length-1], 10);

            this.defprefix = "";
            this.svghack = window.navigator.userAgent.indexOf("; rv:1.8") != -1;

            if (this.svghack) {

                // hack for bug https://bugzilla.mozilla.org/show_bug.cgi?id=309020
                this.defprefix = "nu"+this.itemid+"_";

                var existingStub = document.getElementById(this.defprefix+'netusagesvgdefstub');
                if (existingStub) {
                    // remove previous stub
                    existingStub.parentNode.removeChild(existingStub);
                }

                // mass append nu0_ ids to the defs
                var tmplstub = document.getAnonymousElementByAttribute(this, 'id', "netusagesvgdefstub");
                tmplstub.setAttribute("id", this.defprefix+'netusagesvgdefstub');

                document.getAnonymousElementByAttribute(this, 'id', "netusagedefs").setAttribute("id", this.defprefix+'netusagedefs');
                this.alterNodeId(document.getAnonymousElementByAttribute(this, 'id', this.defprefix+"netusagedefs"), this.defprefix);

                var svgdefstub = document.importNode(tmplstub, true);
                var svgdefs = document.importNode(document.getAnonymousElementByAttribute(this, 'id', this.defprefix+"netusagedefs"), true);

                svgdefstub.appendChild(svgdefs);
                var c = svgdefstub.cloneNode(true);

                document.documentElement.appendChild(c);

                var elids = ['layer2', 'rectouter', 'rectinner', 'peak', 'peakover', 'offpeak', 'offpeakover', 'icondown'];
                for(var i in elids) {
                
                    var r = document.getAnonymousElementByAttribute(this, 'id', elids[i]).getAttribute('clip-path');
                    if (r != null) {
                        r = r.replace(/url\(#([^)]+)/, "url("+document.location+"#"+this.defprefix+"$1");
                        document.getAnonymousElementByAttribute(this, 'id', elids[i]).setAttribute("clip-path", r);
                    }
                    r = document.getAnonymousElementByAttribute(this, 'id', elids[i]).getAttribute('style');
                    if (r != null) {
                        r = r.replace(/fill: url\(#([^)]+)/, "fill: url("+document.location+"#"+this.defprefix+"$1");
                        
                        document.getAnonymousElementByAttribute(this, 'id', elids[i]).setAttribute("style", r);
                    }
                }
            }

            var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);
            prefs = prefs.getBranch("extensions.netusage.");            

            if(prefs.getBoolPref('widen')){

                var elids2 = ['netusagesvg', 'rectouter', 'rectinner', 'peakover', 'peak', 'offpeakover', 'offpeak', 'pclabel', 'pclabelouter', 'pc2labelouter', 'pc2label'];
                for(var i in elids2) {

                    var e = document.getAnonymousElementByAttribute(this, 'id', elids2[i]), huh = 'x';

                    if(e.hasAttribute('width')){
                    
                        huh = 'width';
                    
                    }
                
                    var getW = Number(e.getAttribute(huh))+prefs.getIntPref("widenNumber");

                    e.setAttribute(huh, getW);

                }
        
            }        

            // GUI
            this.maxWidth = parseInt(document.getAnonymousElementByAttribute(this, 'id', 'peakover').getAttribute("width"), 10);
            this.maxWidth2 = parseInt(document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').getAttribute("width"), 10);
            // for New Modern offpeak which progresses backwards
            this.baseX = parseInt(document.getAnonymousElementByAttribute(this, 'id', this.defprefix+'clipoffpeakrect').getAttribute("x"), 10);
            
            // The following two function fails when running outside chrome
            // flashing timer
            try {
            this.timer = Components.classes['@mozilla.org/timer;1'].createInstance(Components.interfaces.nsITimer);
            } catch (e) { dump("EXCEPTION flashing timer create failed" + e); }
            
            try {
            this.addEventListener('DOMAttrModified', this, false);
            } catch (e) { dump("EXCEPTION addEventListener DOMAttrModified failed" + e); }

            //svg.unsuspendRedraw(suspid);
            
            // set state to initial values
            this.refreshItem("text", this.getAttribute("text"));
            this.refreshItem("text2", this.getAttribute("text2"));
            this.refreshItem("pc", parseInt(this.getAttribute("pc"), 10));
            this.refreshItem("pc2", parseInt(this.getAttribute("pc2"), 10));
            this.refreshItem("arrow", parseInt(this.getAttribute("arrow"), 10));
            this.refreshItem("arrow2", parseInt(this.getAttribute("arrow2"), 10));
            this.refreshItem("status", this.getAttribute("status"));
            this.refreshItem("flashing", this.getAttribute("flashing"));
            
            ]]>
        </constructor>

        <destructor>
            <![CDATA[
            if (this.timer)
                this.timer.cancel();
            this.timer = null;
            ]]>
        </destructor>

        <property name="arrow">
            <getter>
                return parseInt(this.getAttribute('arrow'));
            </getter>
            <setter>
                <![CDATA[
            this.setAttribute("arrow", val);
            ]]>
            </setter>
        </property>

        <property name="arrow2">
            <getter>
                return parseInt(this.getAttribute('arrow2'));
            </getter>
            <setter>
                <![CDATA[
            this.setAttribute("arrow2", val);
            ]]>
            </setter>
        </property>



        <property name="pc">
            <getter>
                return parseInt(this.getAttribute('pc'));
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("pc", val);
            ]]>
            </setter>
        </property>


        <property name="pc2">
            <getter>
                return parseInt(this.getAttribute('pc2'));
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("pc2", val);
            ]]>
            </setter>
        </property>

        <property name="status">
            <getter>
                return this.getAttribute('status');
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("status", val);
            ]]>
            </setter>
        </property>


        <property name="text">
            <getter>
                return this.getAttribute('text');
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("text", val);
            ]]>
            </setter>
        </property>
        <property name="text2">
            <getter>
                return this.getAttribute('text2');
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("text2", val);
            ]]>
            </setter>
        </property>
        <property name="flashing">
            <getter>
                return this.getAttribute('flashing');
            </getter>

            <setter>
                <![CDATA[
            this.setAttribute("flashing", val); // val needs to be turned into string or else DOMAttrModified won't trip
            ]]>
            </setter>
        </property>

        <method name="alterNodeId">
            <parameter name="root" />
            <parameter name="prepend_id" />
            <body>
                <![CDATA[
            for (var i = 0; i < root.childNodes.length; i++) {
                this.alterNodeId(root.childNodes[i], prepend_id);
                if (!root.childNodes[i].setAttribute)
                    continue;
                //root.childNodes[i].setAttribute("id", prepend_id+root.childNodes[i].id);
                root.childNodes[i].id = prepend_id+root.childNodes[i].id;
                //if (root.childNodes[i].getAttributeNS("http://www.w3.org/1999/xlink", "href") != null) {
                var xlinkhref = root.childNodes[i].getAttribute("xlink:href");
                if (xlinkhref != null) {
                    root.childNodes[i].setAttribute("xlink:href", "#"+prepend_id+xlinkhref.substring(1, xlinkhref.length));
                    //alert(root.childNodes[i].getAttribute("xlink:href"));
                }
            }
            ]]>
            </body>
        </method>

        <method name="observe">
            <parameter name="subject" />
            <parameter name="topic" />
            <parameter name="data" />
            <body>
                <![CDATA[
            if (topic == 'timer-callback') {
                try {
                // flash
                var svg = document.getAnonymousElementByAttribute(this, 'id', 'netusagesvg');
                if (this.anipos >= 9 || this.anipos <= 5) {
                    this.anistep = -this.anistep;
                }
                if (this.flashEnabled || (!this.flashEnabled && this.anipos < 9)) {
                    //svg.style.MozOpacity = '0.'+this.anipos;
                    svg.setAttribute('style', 'opacity: 0.'+this.anipos);
                    this.anipos += this.anistep;
                } else {
                    // flashing disabled and cycle is complete
                    this.timer.cancel();
                    //svg.style.opacity = '1';
                    svg.setAttribute('style', 'opacity: 1');
                    this.anipos = 9;
                    this.anistep = 1;
                }
                } catch (e) { this.timer.cancel(); alert('netusage flash timer-callback error: '+e); }
            }

            ]]>
            </body>
        </method>


        <method name="handleEvent">
            <parameter name="e" />
            <body>
                <![CDATA[
            //dump('DOMAttrModified '+e.attrName+' '+e.originalTarget+'\n');
            if (e.type == 'DOMAttrModified' && e.originalTarget == this) {
                if (e.attrName == 'status' || e.attrName == 'text' || e.attrName == 'text2' || e.attrName == 'flashing')
                    this.refreshItem(e.attrName, e.newValue);
                else
                    this.refreshItem(e.attrName, parseInt(e.newValue, 10));
                //e.prevValue = 
                
                /* dump('event {\n');
                for(i in e) {
                    dump(i + ": " + e[i] +"\n")
                }
                dump('}\n'); */
                
            }
            ]]>
            </body>
        </method>


        <method name="refreshItem">
            <parameter name="attr" />
            <parameter name="v" />
            <body>
                <![CDATA[
            var maxWidth = parseInt(this.maxWidth); // TODO do we really need to parseInt? was it a bug?
            var maxWidth2 = parseInt(this.maxWidth2);
            var baseX = parseInt(this.baseX);
            var svg = document.getAnonymousElementByAttribute(this, 'id', 'netusagesvg');
            var suspid = svg.suspendRedraw(1000);
            //e.prevValue = 
            
            if (attr == 'pc') {
                if (v < 100) {
                    document.getAnonymousElementByAttribute(this, 'id', 'peakover').style.display = 'none';
                    document.getAnonymousElementByAttribute(this, 'id', 'peak').setAttribute('width', maxWidth * v / 100);
                }
                else {
                    document.getAnonymousElementByAttribute(this, 'id', 'peakover').style.display = '';
                    document.getAnonymousElementByAttribute(this, 'id', 'peak').setAttribute('width', maxWidth * 100 / v);
                }
            }
            else if (attr == 'pc2') {
                if ((document.getAnonymousElementByAttribute(this, 'id', 'offpeak').getAttribute('clip-path')+"").indexOf('clipoffpeak') == -1) {
                    if (v < 100) {
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').style.display = 'none';
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeak').setAttribute('width', maxWidth2 * v / 100);
                    }
                    else {
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').style.display = '';
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeak').setAttribute('width', maxWidth2 * 100 / v);
                    }
                }
                else {
                    // for New Modern theme, where off peak bar comes the opposite direction
                    var clipoffpeakrect = this.svghack ? document.getElementById(this.defprefix+'clipoffpeakrect') : document.getAnonymousElementByAttribute(this, 'id', 'clipoffpeakrect');

                    if (v < 100) {
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').style.display = 'none';
                        clipoffpeakrect.setAttribute('x', baseX + maxWidth - maxWidth * v / 100);
                        clipoffpeakrect.setAttribute('width', maxWidth * v / 100);
                    }
                    else {
                        document.getAnonymousElementByAttribute(this, 'id', 'offpeakover').style.display = '';
                        clipoffpeakrect.setAttribute('x', baseX + maxWidth - maxWidth * 100 / v);
                        clipoffpeakrect.setAttribute('width', maxWidth * 100 / v);
                    }
                    
                    // hack for bug that doesn't redraw clipping
                    var cp = document.getAnonymousElementByAttribute(this, 'id', 'offpeak').getAttribute('clip-path');
                    document.getAnonymousElementByAttribute(this, 'id', 'offpeak').setAttribute('clip-path', '');
                    document.getAnonymousElementByAttribute(this, 'id', 'offpeak').setAttribute('clip-path', cp);
                }
            }
            else if (attr == 'arrow') {
                if (v <= 100) {
                    document.getAnonymousElementByAttribute(this, 'id', 'patharrow').setAttribute('transform', 'translate('+(maxWidth * v / 100)+',0)');
                }
            }
            else if (attr == 'arrow2') {
                if (v > 0 && v <= 100) {
                    document.getAnonymousElementByAttribute(this, 'id', 'patharrow2').style.display = '';
                    if ((document.getAnonymousElementByAttribute(this, 'id', 'offpeak').getAttribute('clip-path')+"").indexOf('clipoffpeak') == -1)
                        document.getAnonymousElementByAttribute(this, 'id', 'patharrow2').setAttribute('transform', 'translate('+(maxWidth2 * v / 100)+',0)');
                    else // for New Modern Theme
                        document.getAnonymousElementByAttribute(this, 'id', 'patharrow2').setAttribute('transform', 'translate(-'+(maxWidth * v / 100)+',0)');
                } else {
                    document.getAnonymousElementByAttribute(this, 'id', 'patharrow2').style.display = 'none';
                }
            }
            else if (attr == 'status') {
                switch(v) {
                    case 'fetching':
                        document.getAnonymousElementByAttribute(this, 'id', "iconerror").setAttribute("display", "none");
                        document.getAnonymousElementByAttribute(this, 'id', "icondown").setAttribute("display", "");
                        break;
                    case 'error':
                        document.getAnonymousElementByAttribute(this, 'id', "iconerror").setAttribute("display", "");
                        document.getAnonymousElementByAttribute(this, 'id', "icondown").setAttribute("display", "none");
                        break;
                    default:
                        document.getAnonymousElementByAttribute(this, 'id', "iconerror").setAttribute("display", "none");
                        document.getAnonymousElementByAttribute(this, 'id', "icondown").setAttribute("display", "none");
                }
            }
            else if (attr == 'text') {
                var el = document.createTextNode(v);
                var pclabel = document.getAnonymousElementByAttribute(this, 'id', 'pclabel');
                if (pclabel.hasChildNodes()) {
                    pclabel.removeChild(pclabel.firstChild);
                }
                pclabel.appendChild(el);
            }
            else if (attr == 'text2') {
                var el = document.createTextNode(v);
                var pclabel = document.getAnonymousElementByAttribute(this, 'id', 'pc2label');
                if (pclabel.hasChildNodes()) {
                    pclabel.removeChild(pclabel.firstChild);
                }
                pclabel.appendChild(el);
            }
            else if (attr == 'flashing') {
                if (!v || v == "false") {
                    this.flashEnabled = false;

                } else {
                    this.anipos = 9;
                    this.anistep = 1;
                    this.flashEnabled = true;

                    if (!this.timer)
                            return; // TODO This happens because on first run, netusage update has returned when usagebar constructor has not been run yet
                    this.timer.cancel();
                    this.timer.init(this, 150, this.timer.TYPE_REPEATING_SLACK);
                }
            }
            svg.unsuspendRedraw(suspid);

            ]]>
            </body>
        </method>


    </implementation>
</binding>



</bindings>

Untitled XML (24-Jun @ 10:09)

Syntax Highlighted Code

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <root>
  3.   <hello>foo <baz/> bar</hello>
  4.   <moar/>
  5. </root>

Plain Code

<?xml version="1.0" encoding="utf-8"?>
<root>
  <hello>foo <baz/> bar</hello>
  <moar/>
</root>

Untitled XML (15-Jun @ 08:51)

yansky

Syntax Highlighted Code

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="style/style.css" type="text/css"?>
  4. <window id="main" persist="screenX screenY width height" title="ScrapeBot3000" width="600" orient="horizontal" height="600" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  5. [93 more lines...]

Plain Code

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="style/style.css" type="text/css"?>
<window id="main" persist="screenX screenY width height" title="ScrapeBot3000" width="600" orient="horizontal" height="600" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="text/javascript" src="scrapeB.js"/>    

    <vbox id="holder" flex="1">
        <toolbox>
            <toolbar id="findfilesToolbar">
                <menubar id="scrapeMenubar">
                    <menu id="scrapeFileMenu" label="File">
                        <menupopup id="filePopup">
                            <menuitem id="scrapeInstall" label="Install Script"/>
                            <menuseparator/>
                            <menuitem id="programExit" label="Exit"/>
                        </menupopup>
                    </menu>
                    <menu id="scrapeSettingsMenu" label="Settings">
                        <menupopup id="edit-popup">
                            <menuitem id="scrapePreferences" label="Set Download Folder"/>
                        </menupopup>
                    </menu>
                    <menu id="scrapeHelpMenu" label="Help">
                        <menupopup id="help-popup">
                            <menuitem label="Help Contents"/>
                            <menuitem label="About"/>
                            <menuitem label="Donate"/>
                        </menupopup>
                    </menu>                    
                </menubar>
            </toolbar>
        </toolbox>
        <menuseparator/>
        <spacer style="height: 20px"/>
       
        <description id="descr">
            I can haz intarwebs?
        </description>

        <spacer style="height: 20px"/>

        
        <vbox id="selectContainer">
            
                <menulist id="selectScript">
                    <menupopup id="selectScriptMP">
                        <menuitem value="Select A Script To Run" label="Select A Script To Run"/>
                    </menupopup>
                </menulist>
            
           
                <groupbox id="sInfo">
                    <caption label="Script Info:"/>
                    <label class="sInfoLabels" value="Filename:"/>
                    <description value=""/>
                    <label class="sInfoLabels" value="Script Name:"/>
                    <description value=""/>
                    <label class="sInfoLabels" value="Version:"/>
                    <description value=""/>
                    <label class="sInfoLabels" value="Description:"/>
                    <description value=""/>
                    <label class="sInfoLabels" value="Author:"/>
                    <description value=""/>    
                    <label class="sInfoLabels" value="Start Page:"/>
                    <description id="stPage" value=""/>                        
                </groupbox>
            
        </vbox>
        
        <vbox id="pBucket">
            <label value="Enter Photobucket URL:"/>
            <textbox id="pbucketU" size="300"/>
        </vbox>
        
        <spacer style="height: 20px"/>
        
        <hbox id="rsButtons">    
            <button id="runButton" label="Run Script"/>
            <button id="stopButton" label="Stop Script"/>
        </hbox>
        <spacer style="height: 10px"/>
        <hbox>
            <progressmeter id="progress" value="0%"/>
            <image id="progressImage" height="16px" width="16px" src="images/ajax-loader.gif"/>
            <label id="progressLabel" value="Finished"/>
            <spacer flex="1"/>
        </hbox>   

        <groupbox flex="1">
          <caption label="current page"/><label id="currentPage" value=""/>
          <browser type="content" src="" flex="1" id="showResponse"/>
        </groupbox>
    </vbox>


    
</window>

Untitled XML (13-Jun @ 06:58)

Syntax Highlighted Code

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="style/style.css" type="text/css"?>
  4. <window id="main" persist="screenX screenY width height" title="ScrapeBot3000" width="600" orient="horizontal" height="600" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  5. [92 more lines...]

Plain Code

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="style/style.css" type="text/css"?>
<window id="main" persist="screenX screenY width height" title="ScrapeBot3000" width="600" orient="horizontal" height="600" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="text/javascript" src="scrapeB.js"/>    

    <vbox id="holder" flex="1">
        <toolbox>
            <toolbar id="findfiles-toolbar">
                <menubar id="scrapeMenubar">
                    <menu id="scrapeFileMenu" label="File">
                        <menupopup id="file-popup">
                            <menuitem label="Install Script"/>
                            <menuseparator/>
                            <menuitem id="programExit" label="Exit"/>
                        </menupopup>
                    </menu>
                    <menu id="scrapeSettingsMenu" label="Settings">
                        <menupopup id="edit-popup">
                            <menuitem label="Preferences"/>
                        </menupopup>
                    </menu>
                    <menu id="scrapeHelpMenu" label="Help">
                        <menupopup id="help-popup">
                            <menuitem label="Help Contents"/>
                            <menuitem label="About"/>
                            <menuitem label="Donate"/>
                        </menupopup>
                    </menu>                    
                </menubar>
            </toolbar>
        </toolbox>
        <menuseparator/>
        <spacer style="height: 20px"/>
       
        <description id="descr">
            I can haz intarwebs?
        </description>

        <spacer style="height: 20px"/>

        
        <vbox id="selectContainer">
            <hbox id="selHFirst">
                <menulist id="selectScript">
                    <menupopup id="selectScriptMP">
                        <menuitem value="Select A Script To Run" label="Select A Script To Run"/>
                    </menupopup>
                </menulist>
            </hbox>
            <hbox id="selHSecond">
                <groupbox id="sInfo">
                    <caption label="Script Info:"/>
                    <label value=""/>
                    <description value=""/>
                    <label value=""/>
                    <description value=""/>
                    <label value=""/>
                    <description value=""/>
                    <label value=""/>
                    <description value=""/>
                    <label value=""/>
                    <description value=""/>                    
                </groupbox>
            </hbox>
        </vbox>
        
        <vbox id="pBucket">
            <label value="Enter Photobucket Username:"/>
            <textbox />
            <button id="pButton" label="Go"/>
        </vbox>
        
        <spacer style="height: 20px"/>
        
        <hbox id="rsButtons">    
            <button id="runButton" label="Run Script"/>
            <button id="stopButton" label="Stop Script"/>
        </hbox>
        <spacer style="height: 10px"/>
        <hbox>
            <progressmeter id="progress" value="0%"/>
            <image id="progressImage" height="16px" width="16px" src="images/ajax-loader.gif"/>
            <label id="progressLabel" value="Finished"/>
            <spacer flex="1"/>
        </hbox>   
        <spacer style="height: 20px"/>
        <groupbox flex="1">
          <caption label="current page"/>
          <browser type="content" src="" flex="1" id="showResponse"/>
        </groupbox>
    </vbox>


    
</window>

Untitled XML (13-Jun @ 06:56)

Syntax Highlighted Code

  1. <vbox id="selectContainer">
  2.   <hbox id="selHFirst">
  3.     <menulist id="selectScript">
  4.         <menupopup id="selectScriptMP">
  5. [19 more lines...]

Plain Code

<vbox id="selectContainer">
  <hbox id="selHFirst">
    <menulist id="selectScript">
        <menupopup id="selectScriptMP">
            <menuitem value="Select A Script To Run" label="Select A Script To Run"/>
        </menupopup>
    </menulist>
  </hbox>
  <hbox id="selHSecond">
    <groupbox id="sInfo">
        <caption label="Script Info:"/>
  <label value=""/>
  <description value=""/>
  <label value=""/>
  <description value=""/>
  <label value=""/>
  <description value=""/>
  <label value=""/>
  <description value=""/>
  <label value=""/>
  <description value=""/>                    
    </groupbox>
  </hbox>
</vbox>

Untitled XML (6-Jun @ 07:44)

Syntax Highlighted Code

  1. dfyh
  2. fdfyh
  3. df
  4. y
  5. dfyfd

Plain Code

dfyh
fdfyh
df
y
dfyfd

Untitled XML (5-Jun @ 16:15)

Syntax Highlighted Code

  1. <?xml version="1.0" encoding="windows-1251" ?>
  2.  
  3.  
  4. <handler>
  5. [49 more lines...]

Plain Code

<?xml version="1.0" encoding="windows-1251" ?>


<handler>

    <condition operand1="($form.action)" operand2="delete" operator="eq">
        <yes>
            <each parent="form" children="delete">
                <operation type="sql" vars="($each.key)">
                    DELETE FROM        services, lang
                    USING            services, lang
                    WHERE            services.name = ?
                    AND                (lang.id = services.service OR lang.id = services.anons OR lang.id = services.text)
                </operation>
            </each>
            <operation type="info">31</operation>
        </yes>

        <no>
        </no>
    </condition>

    <condition operand1="($form.action)" operand2="save" operator="eq">
        <yes>
            <each parent="form" children="status">
                <operation type="updateStatus" itemId="($each.key)">($each.status)</operation>
            </each>
            <operation type="info">32</operation>
        </yes>

        <no>
        </no>
    </condition>

    <condition operand1="($form.action)" operand2="add" operator="eq">
        <yes>
            <operation type="redirect" name="relative">add/</operation>
        </yes>

        <no>
        </no>
    </condition>

    <condition operand1="($form.action)" operand2="addType" operator="eq">
        <yes>
            <operation type="redirect" name="relative">addType/</operation>
        </yes>

        <no>
        </no>
    </condition>


</handler>

Untitled XML (5-Jun @ 16:13)

Syntax Highlighted Code

  1. <?php
  2. if(1)
  3. {
  4.     print "some";
  5. [1 more lines...]

Plain Code

<?php
if(1)
{
    print "some";
}
?>

Untitled XML (16-May @ 01:48)

Syntax Highlighted Code

  1. <configure
  2.   xmlns="http://namespaces.zope.org/zope"
  3.          xmlns:meta="http://namespaces.zope.org/meta"
  4.   xmlns:browser="http://namespaces.zope.org/browser"
  5. [58 more lines...]

Plain Code

<configure
  xmlns="http://namespaces.zope.org/zope"
         xmlns:meta="http://namespaces.zope.org/meta"
  xmlns:browser="http://namespaces.zope.org/browser"
  i18n_domain="grok">

<include package="grok" />

<utility
    provides="zope.error.interfaces.IErrorReportingUtility"
    component="repoze.grok.bbb.dumbErrorReporting"
    />

<!-- Set up default users / groups -->
<unauthenticatedPrincipal
    id="zope.anybody"
    title="Unauthenticated User"
    />

<unauthenticatedGroup
    id="zope.Anybody"
    title="Unauthenticated Users"
    />

<authenticatedGroup
    id="zope.Authenticated"
    title="Authenticated Users"
    />

<everybodyGroup
    id="zope.Everybody"
    title="All Users"
    />

<role
   id="zope.Manager"
   title="Site Manager"
   />

<grantAll
   role="zope.Manager"
   />

<!-- Allow public access -->
<grant
   permission="zope.View"
   principal="zope.Anybody"
   />

<!-- XXX Fossil? -->
<role
   id="zope.Member"
   title="Site Member"
   />

<!-- add a users.zcml if you don't yet have one, you can copy the
     sample-users.zcml file over if need be  -->
<include file="users.zcml" />

<include files="grok-apps/*" />

</configure>

Untitled XML (11-May @ 07:28)

Syntax Highlighted Code

  1. <hello yay="hoorah">
  2. </hello>

Plain Code

<hello yay="hoorah">
</hello>