With InRoads v8i, is it possible to create your own style sheets(.xsl) for the InRoads Report Browser? I'm seeing people talk about customizing these xml reports. Where can i get more style sheets to use, or is it possible to create your own? Any help in the right direction would be greatly appreciated. If there's a way to get InRoads to spit out any information you want, I'd be interested to learn how!
DK
Look for books with good chapters on XSL and XSLT. Unfortunately, many good books on XML have 10 to 15 chapters, with one or two on XSL and XSLT.
The top folder of the style sheets can be changed in Project Defaults and any sub-folder will appear in the report browser. However, only files with the extensions .XSL will appear in the folders. Also, certain folders or files withing folders must exist for most reports to work.
I have all of my different versions of InRoads pointing at a XML Report folder on our network server. Earlier versions of InRoads do not support all of the reports and some XML files written by InRoads have changed since their earlier versions, requiring customizing some current version reports to have them work for more than one version.
At some point, Bentley added the ability to display help as part of a stylesheet. If you create your own, you can also add a help page.
So, the best way to start, is to find a report that offers some things you want and is either missing other things or has more than you want, Make a copy of it with a new name and modify the copy. I started by adding or removing columns to tabular reprts. The more I did the more I learned. I have never created one completely from scratch - I always started with one that had some data I wanted and modified how it reported on that data or made it report on additional information that was in the XML file but not used by the original report.
Charles (Chuck) Rheault CADD Manager
MDOT State Highway Administration
I really appreciate your response. I do have a few books on xml, I'll check to see how much info they have on xsl. I too will just dive in by adjusting existing reports and go from there.
Thanks,