Basic VSP Programming
VS-B-2 Syntax of a Page
Overview of Virtuoso Server Pages (VSP) syntax
Preliminaries
- The pages with active content are named Virtuoso Server Pages, or VSP in short.
- These pages consist of Virtuoso PL and HTML code.
- The Virtuoso Web server executes only files (resources) with the ".vsp" extension.
- The VSP file can contain VSP blocks and HTML blocks
- The VSP block contains the PL code
- The <?vsp marks the beginning of a VSP block.
- The ?> marks the end of a VSP block.
- The HTML block is everything outside of a VSP block.
- The VSP shortcut in an HTML block is used to include value.
- The <?= marks the beginning of VSP shortcut.
- The ?> marks the end of a VSP shortcut.
Example
The demonstration page uses the <?= <?vsp markup and SQL expressions to generate html content from within a VSP loop.
| View the source | Action |
|---|---|
| 1. vs_b_2_sample_1.vsp | Run |
OpenLink Home
Technical Support