XslGenerator

 
 

XslGenerator

Class XslGenerator
Namespace Avectra.netForum.eWeb.controls.XslGenerator
Developer Momentive Software

Note: This is about the eWeb version of XslGenerator. For the iWeb version see XslGenerator (iWeb)

NetForum CMS supports the use of web services with a specialized .NET user control (ASCX) called XslGenerator.ascx. Combined with an Extensible Stylesheet Language (XSL) stylesheet, a NetForum eWeb Page Detail can consume a web service and transform the XML response through XSL to output well formatted HTML on the web page. A web developer can leverage the power of web services through the CMS Toolkit without writing any programming code.

XSL is a language similar to CSS (Cascading Style Sheet) that formats a raw XML document into a user-friendly HTML page.

Additionally, the XslGenerator control can leverage NetForum’s native DynamicXmlBuilder to create multi-dimensional XML documents with NetForum data and transform that XML into readable HTML through an XSL stylesheet. Check below for Samples.

 

Features

The XslGenerator is similar to the List SQL content type. It can be used to pull data from NetForum or from a web service and then output that data on a page through a Page Detail or a Default pane.

Although the List SQL content type can be simpler to use, the XslGenerator offers more power and flexibility in the follwing ways:

  • XslGenerator can display parent and child (and infinite grandchild) hierarchical data. For example, you might want to output a series of events, nesting sessions under each event, and nesting speakers under each session. Doing this with a List SQL is essentially impossible. The XslGenerator makes this easy.
  • XslGenerator can consume public web services (such as RSS feeds) that do not require authentication and output the results on a page.
  • XslGenerator allows you to work with Extensible Stylesheet Language which is much more powerful than the HTML that you can type into the content area of a List SQL.

Usage and Examples

To use the XslGenerator in eWeb, follow the next four steps, explained in detail below.

  1. First, add a web Page Detail.
  2. Second, set the source of the Xml data using one of four options.
  3. Third, define the Xsl that will render the Xml data you set in Step 2.
  4. Fourth, optionally, define additional Xslt Arguments.

The rest of this page outlines more advanced scenarios and features, and lists various samples and case studies.

Step 1 - Page Detail Configuration

Step 2 - Configuring the XML Data Source

Step 3 - Configuring the XSL Source

Step 4 – Adding Optional XSLT Style Sheet Parameters

Sample XslGenerator Templates

Extensible Stylesheet Language Tips

Setting Up Next/Previous Paging in Search Results

Using XslGenerator to Output Search Results

Caching XML

Summary of XslGenerator Tags

 

Understanding Unexpected XML Files in CacheRoot Folders

This section addresses customer concerns regarding the intermittent creation of small XML files in the CacheRoot folders on Test and Development sites, even when those sites are not actively being used by staff or customers.

Overview

Customers have observed that small XML files are consistently generated within their environment's cache directory. These files typically contain product-related data, such as product keys and names:

ÿÿÿÿ ž<Products><Product><prd_key>...</prd_key><prd_name>...</prd_name></Product></Products>

Why is this happening?

The files are generated by a legacy system component called the eWeb XslGenerator.

  • Function: This component constructs XML data used to display product listings in the online store and other web content areas.
  • Mechanism: When the system uses specific <xml> tags and stored procedures to build dynamic content (via the XmlBuilderXml load type), the architectural design automatically writes the results to a physical file in the cache directory.
  • File Naming: The system creates unique filenames by combining the web content detail record key with an HTTP session ID.

Why does it occur on unused sites?

Even without direct user login or activity, these files can be triggered by internal background processes. If the background processes touch the associated web content metadata, the legacy generator executes and writes the output file to the cache as designed.

Security Assessment: Is my site safe?

Yes. This is internal system behavior and does not represent a threat to your data or environment.

 

Overriding the XslGenerator Control

Limitations

Was this article helpful?
0 out of 0 found this helpful