Skip to content

Instantly share code, notes, and snippets.

@xasima
Last active February 13, 2018 06:46
Show Gist options
  • Select an option

  • Save xasima/e2cf9dc133e6a674ef64d02a5244f64b to your computer and use it in GitHub Desktop.

Select an option

Save xasima/e2cf9dc133e6a674ef64d02a5244f64b to your computer and use it in GitHub Desktop.
// OSX
open /Applications/Google\ Chrome.app --args --disable-web-security --user-data-dir
// Linux
chromium-browser --disable-web-security --user-data-dir
// Windows
// (Needs to find where is Chrome Link: may just right click on Chrome icon and choose its properties and path)
// later
cd /D C:/UserData/Microsoft/Windows/...
"Chrome Browser.lnk" --disable-web-security --user-data-dir
https://chrome.google.com/webstore/detail/openlink-structured-data/egdaiaihbdoiibopledjahjaihbmjhdj?hl=en
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="transform.xsl"?>
<rabbits forest="dark">
<rabbit name="Rodger" phone="+987 2898989"/>
<rabbit name="Maria" phone="+987 94400000"/>
<rabbit name="Peter" phone="+987 90000000"/>
</rabbits>
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h1>Rabbits of <xsl:value-of select="/rabbits/@forest" /> forest</h1>
<ul>
<xsl:apply-templates select="//rabbit"/>
</ul>
</body>
</html>
</xsl:template>
<xsl:template match="rabbit">
<li><a href="vk.com/{@name}"><xsl:value-of select="@name"/></a> <xsl:value-of select="@phone"/></li>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment