So this is a complete shot in the dark (and may not be a forum appropriate question...please feel free to lock the thread if these types of questions are not allowed). I'm hoping that someone here has some XML/XSL knowledge, and can either help me solve my problem, or at the very least, tell me if what I am trying to do is even possible.
Currently, we use a “SurveyCheckShots.xsl” report generator to view how our “CHEK” shots compare to existing control. This is done by running a “TraverseChecks” filter against an .fwd file, and the result is a check shot report similar to the .docx file that I’ve attached (Note, if you run the .xsl file within InRoads, you’ll notice that the CHEK rows are highlighted…why this isn’t translating to Microsoft Word is beyond me).
While this report format is "acceptable", it doesn’t give us instant feedback regarding any busts that may have occurred while checking our setups.
The Goal: I’d like to incorporate equations to automatically calculate the difference in distances between the XY coordinates and Z coordinates of the CHEK shot and its related control point, and place these delta values in their own data column. Then, I'd like to highlight in red any values that exceed 0.05’.
The equations to be used: ∆XY (aka Easting/Northing) = √((X2-X1)² + (Y2-Y1)²), ∆Z = Z2-Z1
I’m able to create new columns, I can code it to highlight when a certain value is reached (i.e., >0.05’), but I have no idea how to apply a mathematical equation, and how to have the program call on specific pieces of data to run through the equation. (My VBA/XML experience is limited to a one semester class back in 2005, where I made a circle bounce around inside of a star…if I could even remember how I did it, it doesn’t exactly apply here, haha)
Perhaps a XML/XSL/HTML expert here could: 1) Tell me if it is even possible to code the .xsl file to utilize such equations, and 2) If possible, give me some clues on how to implement the addition of said equations.
Thank you for your time and help!
- Nick