Tuesday 25 July 2017

Exporting metadata to HTML format via ArcGIS Desktop?


In ArcGIS 9.3, it was easy to export metadata into an HTML format. In ArcGIS 10, it looks like everything is in XML format and that there's no easy way to convert the XML to HTML.


Has anyone successfully exported layer metadata into an HTML format using ArcGIS 10?



Answer




Try the USGS MP Metadata Translator. I somehow missed it earlier, but it's producing all of the various HTML I'm familiar with.


alt text


Part 2:
I haven't had much luck with the XSLT Transformation Tool. In fact, no luck. But I'm an ArcGIS 10 client w/ ArcGIS Server 9.3.1.


I had filed an ESRI incident for a problem with the arcpy.ExportMetadata_conversion, so maybe they are all related. It sounds like there's a lot of metadata issues @ ArcGIS 10, so I haven't and won't spend a lot of time with ArcGIS 10 metadata until SP1 (or maybe SP2).


So far, I've been exporting to XML and then using msxsl.exe to process the XML with an XSL file from 9.3.


Here's an example of processing XML to HTML w/ a 9.3 FGDC FAQ XSL (that I copied from an existing 9.3 install--might be good to keep a copy of those handy on a usb drive):


msxsl wp_meta.xml "c:\temp\FGDC FAQ.xsl" -o wp_meta.html -u 3.0

It's not perfect but the xsl can always be tweaked to produce the HTML that you are after.



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...