<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://doc-en-mirror.openflyers.com/index.php?action=history&amp;feed=atom&amp;title=Tricks-and-tips</id>
	<title>Tricks and tips - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://doc-en-mirror.openflyers.com/index.php?action=history&amp;feed=atom&amp;title=Tricks-and-tips"/>
	<link rel="alternate" type="text/html" href="https://doc-en-mirror.openflyers.com/index.php?title=Tricks-and-tips&amp;action=history"/>
	<updated>2026-05-01T08:34:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://doc-en-mirror.openflyers.com/index.php?title=Tricks-and-tips&amp;diff=189&amp;oldid=prev</id>
		<title>imported&gt;Claratte: Text replacement - &quot;&lt;xml&gt;&quot; to &quot;&lt;syntaxhighlight lang=&quot;xml&quot;&gt;&quot;</title>
		<link rel="alternate" type="text/html" href="https://doc-en-mirror.openflyers.com/index.php?title=Tricks-and-tips&amp;diff=189&amp;oldid=prev"/>
		<updated>2024-08-12T18:53:08Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&amp;lt;xml&amp;gt;&amp;quot; to &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=SQL=&lt;br /&gt;
==Permut two rows according to their id==&lt;br /&gt;
Goal: permut two rows with id=a and id=b using only one query&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot;&amp;gt;UPDATE some_table SET id = a + ABS(id - b) WHERE order_num in (a , b)&amp;lt;/sql&amp;gt;&lt;br /&gt;
=XSLT=&lt;br /&gt;
==Permit php function call==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot;&lt;br /&gt;
  xmlns:xhtml=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;br /&gt;
  version=&amp;quot;1.0&amp;quot; &lt;br /&gt;
  xmlns:php=&amp;quot;http://php.net/xsl&amp;quot;&lt;br /&gt;
  exclude-result-prefixes=&amp;quot;xhtml php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/xml&amp;gt;&lt;br /&gt;
 Do not forget '''exclude-result-prefixes=&amp;quot;php&amp;quot;''' otherwise you will have xmlns:php attribute in your root tag!&lt;br /&gt;
then:&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;php:functionString('phpFunctionName', //something/forexample)&amp;quot;/&amp;gt;&amp;lt;/xml&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Claratte</name></author>
	</entry>
</feed>