wiki:DeveloperGuidelines/Tips

DeveloperGuidelines

Tips

Regular Expressions Debugging

https://regex101.com/

Python debugging

Reserved Keywords

Web2Py

HTML, CSS, and Javascript debugging

Each of the major browsers has tools available for viewing HTML page structure and form data, Javascript code, CSS. Some also support Javascript debugging, including setting breakpoints and viewing values in variables.

  • Firefox: Install the Firebug plugin. Start Firebug by clicking the bug icon in the upper right. After the tools open in the lower half of the page, load the page you want to debug.
  • Internet Explorer: Open the IE developer tools with F12, or Tools (gear icon) -> F12 Developer Tools. Note that you can test behavior of pages under earlier versions of IE by setting your current IE to behave as earlier versions. In the developer tools menu bar, click Browser Mode and select the desired version.

Other tools that may be of interest:

JavaScript

jQuery

Ext

HTML/CSS

SQL

Test queries on multiple databases:

Basics of Design:

Language:

More Advanced:

XSLT: XML, XSL, XPath

We use XSLT (Extensible Stylesheet Language Transformations) to import external structured data, such as CSV files, spreadsheets, GIS data, and CAP messages into Eden, and also to export Eden data into external data formats.

XSL Stylesheets are themselves XML documents that specify a conversion between one data format and another. XPath (XML Path Language) is used to select elements from the source document to act on. Our stylesheets convert between the internal S3XML format and the desired external format.

Stylesheets for various data formats are found in the directory: eden/static/formats

Support for XSLT is provided by lxml, which is a Python wrapper for libxml2 and libxslt. This currently supports the XML 1.0 standard, not 2.0, and there are functions available in 2.0 that are not in 1.0, so be aware of this when you are consulting XML / XSLT references.

Eden documentation

Online references

Books

Tools

Try out your xsl stylesheets with: xsltransform.py

Visualization

Misc


DeveloperGuidelines

Last modified 8 years ago Last modified on 04/20/17 12:48:43
Note: See TracWiki for help on using the wiki.