## page was renamed from DevCenter/Projects/Render with JScript .NET = Process paragraphs with JScript .NET = ||'''Version'''||'''Date'''||'''Changes'''|| ||1.0||2010-08-15||Initial version.|| == Description == This page details an override which demonstrates processing content paragraphs with JScript .NET. <> == The Override == Attached is a project which includes an override of the Dynamic HTML context.xsl([[attachment:JScript.zip]]), which demonstrates this override. == Notes == * While similar to Javascript and while it uses mostly ECMAScript syntax, there are some differences between JScript .NET and Javascript. [[http://msdn.microsoft.com/en-us/library/ms974588.aspx|This article]] provides a good starting point. * This override using a '''[[http://msdn.microsoft.com/en-us/library/ms256042.aspx|msxsl:script]]''' element and the JScript .NET language to process paragraphs. {{{ }}} * The override uses the '''wwtransform:super''' resolver, which is detailed in [[../../Documentation/wwtransform:super|this article]]. By using the '''wwtransform:super''' resolver, this override is insulated from the usual risks associated with overriding with regard to updating to new ePublisher versions. {{{ }}} * The override demonstrates using the '''wwwadapter''' resolver for adding references to assemblies in the !WebWorks namespace. {{{ ... }}} Adding this reference and using directive makes the native ePublisher Log facilities available within the script block. This is useful for debugging. {{{ // Log object. Use this object's Info, Warning, and Error methods to write messages // to the ePublisher log. Refer to the following wiki page for documentation on the Log // object: http://wiki.webworks.com/DevCenter/Documentation/ExtensionObjects#log // var Logger = new Log(); }}} * This version doesn't offer much help for resolving "Rules", which are the collection of Properties and Options for a given ePublisher entity, like Paragraph Styles, Character Styles, and so on. The rule is consulted for determined the HTML tag that is used for the Paragraph element, and the Rules are not used at all for Character styles. Support for this may be added later. * The attached project includes source files for each of the three input adapter types supported by ePublisher (!FrameMaker, Microsoft Word, DITA).