initELF
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ELF SYSTEM "dtdfile.dtd"> <?xml-stylesheet type="text/xsl" href="_perform_.xsl" ?> <ELF> <root> <row_ active = "yes"> <id_>0</id_> <init_> <source_> <ipv4_>83.169.46.66</ipv4_> <ipv6_>not set</ipv6_> <protocol_>https</protocol_> <name_>https://solidweb.org/</name_> <fqdn_>lvps83-169-46-66.dedicated.hosteurope.de</fqdn_> <rootdir_>/</rootdir_> <workdir_>.</workdir_> <treename_>/var/www/html</treename_> <var_>x</var_> </source_> <comment_>some os</comment_> <author_>ewingson, crowd</author_> </init_> </row_> <row_ active = "no"> <id_>1</id_> <init_>undefined</init_> </row_> </root> </ELF>
dtdfile.dtd
<!ELEMENT ELF (#PCDATA | root)*> <!ELEMENT root (#PCDATA | row_)*> <!ELEMENT row (#PCDATA | id_ | init_)*> <!ELEMENT id_ (#PCDATA)> <!ELEMENT init (#PCDATA | source_ | comment_ | author_)*> <!ELEMENT source (#PCDATA | ipv4_ | ipv6_ | protocol_ | name_ | fqdn_ | rootdir_ | workdir_ | treename_ | var_)*> <!ELEMENT ipv4_ (#PCDATA)> <!ELEMENT ipv6_ (#PCDATA)> <!ELEMENT protocol_ (#PCDATA)> <!ELEMENT name_ (#PCDATA)> <!ELEMENT fqdn_ (#PCDATA)> <!ELEMENT rootdir_ (#PCDATA)> <!ELEMENT workdir_ (#PCDATA)> <!ELEMENT treename_ (#PCDATA)> <!ELEMENT var_ (#PCDATA)> <!ELEMENT comment_ (#PCDATA)> <!ELEMENT author_ (#PCDATA)>
_perform_.xsl
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html><head></head><body style="font-family:Verdana; font-size:13px; color:green"><table border="1"> <xsl:apply-templates /> </table></body></html> </xsl:template> <xsl:template match="root"> <tr><xsl:apply-templates /></tr> </xsl:template> <xsl:template match="row_"> <tr><xsl:apply-templates /></tr> </xsl:template> <xsl:template match="id_"> <tr><xsl:apply-templates /></tr> </xsl:template> <xsl:template match="init_"> <tr><xsl:apply-templates /></tr> </xsl:template> <xsl:template match="source_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="ipv4_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="ipv6_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="protocol_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="name_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="fqdn_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="rootdir_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="wordir_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="treename_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="var_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="comment_"> <td><xsl:value-of select="." /></td> </xsl:template> <xsl:template match="author_"> <td><xsl:value-of select="." /></td> </xsl:template> </xsl:stylesheet>