For those of you out there that like to dabble with web development and maybe some programming on the side... a bit of magic...
(in this example the .vismat and the .xsl file are in the same directory)
vismat.xsl:
Open a .vismat file that was created with 1.48.66 or later, and add these two lines to the top of the .vismat file:
Then open the .vismat file in firefox ::raises eyebrows:: It should look something like this ugly mess:
Roofing_Shingles_Wood
This is just a very basic example of what this can do. I just stumbled across it before I went to bed, and I thought I'd pass along the information to anyone that has some web or xml experience, and wanted to have some fun. There should be at least 2 of you out there that can make sense of this and are going to have fun playing. If anyone wants to post some examples of what they managed to squeeze out of our files with xsl, feel free to share.
Okay, enough developer fun time. Off to bed I go...
(in this example the .vismat and the .xsl file are in the same directory)
vismat.xsl:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="[url]http://www.w3.org/1999/XSL/Transform">[/url] <xsl:template match="/"> <html> <body> <h2>My Vismat</h2> <xsl:for-each select="vismat/Asset"> <table border="1" width="640" style="border-width: 5px 5px 5px 5px; border-spacing: 2px; border-style: outset outset outset outset; border-color: gray gray gray gray; border-collapse: collapse; background-color: white;"> <tr> <td bgcolor="#dddddd"> <b>Asset URL:</b> [<xsl:value-of select="@url"/>]<br/> <b>Asset Type:</b> [<xsl:value-of select="@type"/>]<br/> <b>Renderer:</b> [<xsl:value-of select="@renderer"/>]<br/> <b>Plugin Name:</b> [<xsl:value-of select="plugin/vrayplugin/@name"/>]<br/> <br/> <b>Parameters:</b> <br/> <table style="border-width: 1px 0px 0px 0px; border-spacing: 2px; border-style: outset outset outset outset; border-color: gray gray gray gray; border-collapse: collapse; background-color: white;"> <th>parameter</th><th>value</th> <xsl:for-each select="plugin/vrayplugin/parameters/parameter"> <tr style="border-width: 1px 1px 1px 1px; padding: 0px 0px 0px 0px; border-style: inset inset inset inset; border-color: gray gray gray gray; background-color: white; -moz-border-radius: 0px 0px 0px 0px;"> <td width="300" bgcolor="#ddffdd"><xsl:value-of select="@label"/>:</td><td bgcolor="#ffdddd"><xsl:value-of select="value"/></td> </tr> </xsl:for-each> </table> </td> </tr> </table><br/><br/> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="vismat.xsl"?>
Roofing_Shingles_Wood
This is just a very basic example of what this can do. I just stumbled across it before I went to bed, and I thought I'd pass along the information to anyone that has some web or xml experience, and wanted to have some fun. There should be at least 2 of you out there that can make sense of this and are going to have fun playing. If anyone wants to post some examples of what they managed to squeeze out of our files with xsl, feel free to share.
Okay, enough developer fun time. Off to bed I go...
Comment