From 31a9590adbd38e9e69a3f6d56e20a7db7e46bbb0 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Thu, 14 Dec 2023 13:38:22 -0800 Subject: [PATCH] initial commits --- LICENSE | 19 +++++++++++++++++++ README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a3bf392 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2023 Charles Iliya Krempeaux :: http://changelog.ca/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..a9ef494 --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ +# tweet-style + +**tweet-style** is an XSL / XSLT stylesheet for Twitter tweets stored in an XML format like this: + +```xml + + + 2008-03-18T00:31:15.000Z + 12345 + en + Hello world! + + 2007-02-15T05:32:42.000Z + 141516 + Joe Blow + superjow + + +``` + +You use tweet-style to turn XML that has that structure into XHTML that can be viewed in the web-browser. + +## Import + +To import and use **tweet-style** in your XML files, add code similar to this to your XML files: +```xml + +``` + +**NOTE THAT THE PATH (i.e., what is in the "href" attribute) THAT YOU USE WILL LIKELY BE DIFFERENT.** + +Set the value of the "`href`" to wherever you installed it. + +For example, if you installed **tweet-style** at "`../../style/tweet-style/`", then the XML code you add would probably be: +```xml + +``` + +## Installation + +To install **tweet-style** you can either just put the `tweet.xsl` somewhere on your web-server. +Maybe at: "/style/tweet-style/tweet.xsl", or somewhere else. + +Alternatively you can use a git submodule. +For example: + +``` +git submodule add https://sourcecode.social/reiver/tweet-style tweet-style +``` + +## Author + +**tweet-style** was written by [Charles Iliya Krempeaux](http://changelog.ca)