[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: [relax-ng-comment] ANN: RELAX NG to Compact Syntax Presentation in HTML
Hi!
I've updated the stylesheets for RELAX NG XML syntax to compact syntax conversion. New in the 1.4 release is a stylesheet for HTML presentation. The stylesheet has the following features: * Recursively converts input schemas to compact syntax, i.e., handles include and externalRef * Links from pattern references to definitions * Links from pattern definitions to a generated index with back references This stylesheet and stylesheets for plain text output are available in the RngToRnc package at http://www.pantor.com/download.html Here is a small example: http://www.pantor.com/rncexample.html The new stylesheets use a two step conversion. First the main XML syntax to compact syntax conversion is handled by the RngToRncXml.xsl stylesheet. The output is an intermediate XML format. This format is then converted into either HTML or plain text using the RngToRncHtml.xsl or RngToRncText.xsl stylesheets. If your XSLT processor provides a result tree fragment to node set conversion function, like exslt:node-set (), the two steps can be carried out up on a single invocation. See comments in the stylesheets for further details. Caveats: The RngToRnc stylesheets make use of two features that causes portability problems: advance namespace processing and r-t-f to node set conversion. Some of the problems I've encountered was handled by disabling features depending on the return value of system-property ('xsl:vendor'). In general, large schemas are more problematic than small ones. If you want to convert to plain text and have problems with a large schema, you could try the RngToRncClassic.xsl stylesheet which is a bit simpler. Cheers, David ------------------------------------------ David Rosenborg Pantor Engineering AB |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC