Deprecated: Function mysql_numrows() is deprecated in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 329 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 XSL Transformation stylesheet for EndNote XML

Skip menu

Bread crumb trail: Computer issues IT Weblog Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 XSL Transformation stylesheet for EndNote XML

Lost in translation?

Slavoglotta Sprogformidling

News

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233

Computer hardware

2013-01-16 | 10:42 am
MacBook Pro Mid-2012

MacBook Pro
Pupils and customers raise demands to my hardware, so I upgraded my computer to a MacBook Pro. Here are its data.

Internet browsers

2012-11-07 | 8:32 pm
Do a barrel roll tested on MacOS X.7.5 Lion

Do a barrel roll, using SeaMonkey. Photo: Erik Thau-Knudsen, 2012
Do a barrel roll, the easter egg that Google made to impress its users, is not an available feature in all browsers, and probably there are platform differences. Here are results for Mac OS X.7 Lion.

Mobiltelefoni

2012-06-08 | 6:08 am
Hvis iPhone gløder på motorvejen

Lokalitetstjenesterne kan tømme mobiltelefonerne for al kraft, når man har for megen fart på. Slå dem fra, hvis du vil skåne dit batteri.

Windows sufferings

2012-02-01 | 11:09 am
iMac put to sleep with nasty virus

The Windows 7 partition of my iMac was severely hit by a virus yesterday. Fortunately, this is not my primary work environment, but my minor kids were tear-broken.

Mini DisplayPort to VGA Adapter

2010-04-29 | 8:40 am
Easy and fully functional

Mini DisplayPort to VGA Adapter
Official review of Mini DisplayPort to VGA Adapter, submitted to Apple Store 2010-04-29.

Computer hardware

2010-02-17 | 4:05 pm
MacBook late 2007

MacBooks
My MacBook was acquired as a Christmas present for me. I have been almost inseparable from it ever since. Here are its data.

Browsers

2009-10-29 | 9:48 pm
Internet Explorer version 8 hits the bell

Microsoft made a giant leap with Internet Explorer version 8. Most of the CSS parsing issues have been addressed. Please update if you haven’t already!

iPhone

2009-06-24 | 6:51 am
Faster iPhone after upgrade to OS 3.0

The desktop, page 1 of my iPhone after updating to OS 3.0. Photo: Erik Thau-Knudsen, 2009-06-24
Among the many improvements that Apple offered its iPhone users in iPhone OS 3.0 was a speed boost in many applications. Fellow iPhone users are recommended to upgrade immediately.

iPhone how-to

2009-05-26 | 4:27 pm
Attach images from WWW to contacts in iPhone

iPhone desktop
The Contacts list is the key to the 3rd Generation (3G) production line of iPhone. Here’s a few tricks on how to add a portrait photo to a contact, using the built-in Safari web browser.

<< Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Subtitling web images using CSS   |   Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 WEBLOG   |   Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 How to copy song lyrics from Metrolyrics.com >>
Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233

Software

2009-01-09 | 4:44 pm

XSL Transformation stylesheet for EndNote XML

Here’s the missing link for philologists using the library software Endnote Plus and wanting to publish using the Scando-Slavica annotation style, but having the bibliography in EndNote XML format

THE REST...

I’ve been using EndNote Plus ever since I got my PowerBook 5300 and upgraded my library files with the upgrades of EndNote Plus. Later versions, I think from EndNote Plus 8 or 9, have been able to convert the libraries to HTML and XML. The resulting HTML code is very lousy, written in a primitive version of HTML, but EndNote’s XML converter of a library file (using the extension .enl is okay, could be more extensive. Using XML has many advantages since you can operate on your data using different kinds of software. These days, I am trying to develop a proper XSL stylesheet to convert the data into XHTML.

In a pause during the work, I tried to google the string "endnote xml" xsl to see if someone had done the work before me, but came up with no serious results for this low level of work — most hits at Google related to the data-to-data conversions, and not as my purpose was, the data-to-presentation meant for XHTML. So I decided to publish my own current results.

Current status

So here’s a stylesheet template to do the XSL Transformation to XHTML of an EndNote XML file (EndNote version 9):

<?xml version="1.0" encoding="UTF-8"?>
<!-- DWXMLSource="../../dokumenter/forskning/bibliografier/lingvistisk_bibliotek.xml" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#160;">
<!ENTITY copy "&#169;">
<!ENTITY reg "&#174;">
<!ENTITY trade "&#8482;">
<!ENTITY mdash "&#8212;">
<!ENTITY ldquo "&#8220;">
<!ENTITY rdquo "&#8221;">
<!ENTITY pound "&#163;">
<!ENTITY yen "&#165;">
<!ENTITY euro "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<ol>
<xsl:apply-templates select="xml/records/record">
</xsl:apply-templates>
</ol>
<p><strong>Anvendt bibliografisk stil</strong>: Scando-Slavica</p>
</xsl:template>
<xsl:template match="record">
<li>
<strong>
<xsl:attribute name="style">
<xsl:apply-templates select="contributors/authors/author/style" />
</xsl:attribute>
<xsl:apply-templates select="contributors" />
</strong>
<xsl:value-of select="dates/year" />, <cite style="font-style: italic;">
<xsl:attribute name="style">
<xsl:apply-templates select="titles/title/style" />
</xsl:attribute>
<xsl:value-of select="titles/title" /></cite>
<xsl:if test="titles/secondary-title > 0">
&nbsp;<xsl:value-of select="titles/secondary-title"/></xsl:if>
<!--<xsl:if test="pub-location > 0"> -->
,&nbsp;<span>
<xsl:attribute name="style">
<xsl:apply-templates select="pub-location/style" />
</xsl:attribute>
<xsl:value-of select="pub-location" />
</span>
<!-- </xsl:if> -->
<xsl:if test="publisher > 0">
,&nbsp;(<xsl:value-of select="publisher" />)</xsl:if>
<xsl:if test="pages > 0">,
<xsl:value-of select="pages" /> s</xsl:if>.
</li>
</xsl:template>
<xsl:template match="style">
font-family: <xsl:value-of select="@font" />;
</xsl:template>
<xsl:template match="contributors">
<xsl:value-of select="authors/author"></xsl:value-of>
</xsl:template>
</xsl:stylesheet>

The work is not satisfactory, e.g., there are missing data about the publisher, but development continues. The XSL file under development has the location http://thau-knudsen.dk/xsl/fremvisere/bibliografi.xsl. Example of library using this stylesheet: my linguistic publications.

Converting to XHTML using PHP

I used the following PhP string to convert the EndNote XML file to XHTML:

<?php

$xslDoc = new DOMDocument();
$xslDoc->load("../../../xsl/fremvisere/bibliografi.xsl");

$xmlDoc = new DOMDocument();
$xmlDoc->load("lingvistisk_bibliotek.xml");


$proc = new XSLTProcessor();
$proc->importStylesheet($xslDoc);
echo $proc->transformToXML($xmlDoc);


?>

//Source: http://www.php.net/manual/en/xsl.examples.php

Authored by: Erik Thau-Knudsen on 2009-01-09 | 4:44 pm | Profil
Bookmark and Share

Comments

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233
Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /customers/0/6/7/thau-knudsen.dk/httpd.www/weblog/pmachine/p-maskine/db/db.mysql.php on line 233
Write your comment
Follow-up
 


| About this site | Copyright | Contact
Erik Thau-Knudsen • Skolegade 2A, 2. sal • DK-8600 Silkeborg • Denmark • Tel.: (+45) 8680 1882 • Mob. (+45) 4013 4133