Skip to content

Instantly share code, notes, and snippets.

<data>
<hello>paste your xml here</hello>
<p>Image.jpg</p>
<p>This is some text I don't want to convert .jpg</p>
</data>
<data>
<page-navigation>
<section id="1" handle="pages">Pages</section>
<entry id="5398">
<title-en handle="exhibitor-registration">Exhibitor Registration</title-en>
<title-cy handle="cofrestru-arddangoswr">Cofrestru Arddangoswr</title-cy>
<slug handle="exhibitor-registration">exhibitor-registration</slug>
<page>
<page handle="exhibitor-registration" id="92" parent-id="9">Exhibitor Registration</page>
</page>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">&lt;</xsl:text>!DOCTYPE html<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[
<!--[if lt IE 7 ]> <html lang="en" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js lt-ie9 lt-ie8"> <![endif]-->
@andrewminton
andrewminton / gist:1207489
Created September 9, 2011 22:28
Front-end Admin Bar - Sample CSS
.adminBar{
width: 100%;
height: 50px;
background: #353530;
}
.adminBar h1, .adminBar span{
background:none repeat scroll 0 0 #353530;
color:#FFFFFF;
font-weight:bold;
margin:0;
<data>
<page-content id="82">
<h2>The Gorilla Team</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ac metus non ante sodales vulputate. Cras porttitor vestibulum varius. Maecenas tristique tortor id nulla gravida venenatis. Integer dapibus, sapien vitae aliquam laoreet, libero massa elementum ante, eu pulvinar erat odio vel augue. Nulla facilisi. Praesent vestibulum bibendum metus.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ac metus non ante sodales vulputate. Cras porttitor vestibulum varius. Maecenas tristique tortor id nulla gravida venenatis. Integer dapibus, sapien vitae aliquam laoreet, libero massa elementum ante, eu pulvinar erat odio vel augue. Nulla facilisi. Praesent vestibulum bibendum metus.</p>
<h2>This is another h2 I don't want affected</h2>
</page-content>
</data>
<data>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
@andrewminton
andrewminton / iCal.xsl
Created June 27, 2012 11:32 — forked from bzerangue/iCal.xsl
[XSLT] iCal utility
<?xml version="1.0" encoding="utf-8"?>
<!--
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
X-WR-TIMEZONE;VALUE=TEXT:US/Central
METHOD:PUBLISH
PRODID:-//Park Cities Presbyterian Church\(PCA\)//iCal 1.0//EN
X-WR-CALNAME;VALUE=TEXT:Park Cities Presbyterian Church Events Feed
VERSION:2.0
BEGIN:VEVENT
<data>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<entry>Text</entry>
<data>
<smorgasbord-portfolio>
<pagination total-entries="19" total-pages="3" entries-per-page="7" current-page="1" />
<section id="27" handle="smorgasbord-portfolio">Smorgasbord Portfolio</section>
<entry id="416">
<title handle="twenty8twelve-new">Twenty8Twelve/NEW</title>
<description mode="formatted" handle="twenty8twelve-is-a-global-fashion-brand-with-three-stand-alone-boutiques-in-london-the-brand-is-also-sold-in-over-300-carefully-selected-retailers-in-more-than-20-countries-worldwide-each-season-new-characters-inspire-the-designers-to-evolve-the-collectio" word-count="45"><p>Twenty8Twelve is a global fashion brand with three stand-alone boutiques in London. The brand is also sold in over 300 carefully selected retailers in more than 20 countries worldwide. Each season new characters inspire the designers to evolve the collection to a new level, offering wardrobe.</p></description>
<images field-id="122" subsection-id="26" items="4">
<item id="471">
<ti
<data>
<smorgasbord-portfolio>
<pagination total-entries="19" total-pages="3" entries-per-page="7" current-page="1" />
<section id="27" handle="smorgasbord-portfolio">Smorgasbord Portfolio</section>
<entry id="416">
<title handle="twenty8twelve-new">Twenty8Twelve/NEW</title>
<description mode="formatted" handle="twenty8twelve-is-a-global-fashion-brand-with-three-stand-alone-boutiques-in-london-the-brand-is-also-sold-in-over-300-carefully-selected-retailers-in-more-than-20-countries-worldwide-each-season-new-characters-inspire-the-designers-to-evolve-the-collectio" word-count="45"><p>Twenty8Twelve is a global fashion brand with three stand-alone boutiques in London. The brand is also sold in over 300 carefully selected retailers in more than 20 countries worldwide. Each season new characters inspire the designers to evolve the collection to a new level, offering wardrobe.</p></description>
<images field-id="122" subsection-id="26" items="4">
<item id="471">
<ti