<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PowerShell on Sisyphus's Stone</title><link>https://blog.severski.net/tags/powershell/</link><description>Recent content in PowerShell on Sisyphus's Stone</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>David F. Severski</copyright><lastBuildDate>Thu, 25 Apr 2013 19:42:00 -0700</lastBuildDate><atom:link href="https://blog.severski.net/tags/powershell/index.xml" rel="self" type="application/rss+xml"/><item><title>Slaying the XPath Beast (aka Adding Cell Styling via PowerShell)</title><link>https://blog.severski.net/2013/04/25/2013-04-25-slaying-the-xpath-beast-aka-adding-cell-styling-via-powershell/</link><pubDate>Thu, 25 Apr 2013 19:42:00 -0700</pubDate><guid>https://blog.severski.net/2013/04/25/2013-04-25-slaying-the-xpath-beast-aka-adding-cell-styling-via-powershell/</guid><description>This week I was fortunate to attend the inaugural PowerShell Summit. Among the various sessions, Jeffrey Hicks presented on conditional HTML formatting with PowerShell. The native mdlet does a nice job converting objects to HTML tables, but has no support for applying custom styles to individual table elements.
Jeff called out the clever idea of using ConvertTo-HTML to generate XHTML, then using PoSH to manipulate that as XML. Jeff&amp;rsquo;s technique uses the standard PoSH object model to apply CSS styles to rows.</description></item></channel></rss>