R6 Designer: Tools | DXL Utility | Transformer... an XSL for script libs, views, sub forms, etc

My goal: as a developer, sometimes I would like to search all the source code for a specific field, view, etc.

My obstacles: “Design Synopsis” in R5 would truncate long script libraries, and “Design Synopsis” in R6 flat out wouldn’t work on the 120+ script libraries for a single app I support.

The tip: A counterpart mentioned the Tools | DXL Utility | Transformer option.

More obstacles: The default “REPORT-AllLSinForm.xsl” or “All LotusScript in Form” was specific to forms. I needed script libraries.

So: I created a “REPORT-AllLSinMulti.xsl”, to include subforms, views, script libs, agents, etc. While not complete, it works for what I need.

Create the file and detach to the [… Lotus … Notes …] /data/xsl directory

****** REPORT-AllLSinMulti.xsl ******

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl=“XSLT Namespace” version=“1.0”

xmlns:dxl=‘http://www.lotus.com/dxl’>

<xsl:output method=‘html’/>

<xsl:strip-space elements=‘*’/>

<xsl:template match=‘dxl:form’>

<!-- The header for the page -->

<HTML>

<HEAD>

<TITLE> Extract LotusScript code for Domino Design Elements </TITLE>

<LINK rel='stylesheet' type='text/css' href='drstyles.css' title='Style'/>

</HEAD>

	<BODY>

	<H1 align="left">

	<xsl:text> Form: </xsl:text>

	<xsl:value-of select='@name'/>

	</H1>



	<H2>

	<xsl:text> LotusScript </xsl:text>

	</H2>



	<xsl:choose>

		<xsl:when test='.//dxl:lotusscript'>

			<xsl:apply-templates/>

		</xsl:when>

		<xsl:otherwise>

			<p>

			<PRE CLASS='Event'> <xsl:text> No LotusScript found!</xsl:text> </PRE>

			</p>

		</xsl:otherwise>

	</xsl:choose>

	<CENTER><HR/></CENTER>

	</BODY>

	</HTML>

</xsl:template>

<xsl:template match=‘dxl:subform’>

<!-- The header for the page -->

<HTML>

<HEAD>

<TITLE> Extract LotusScript code for Domino Design Elements </TITLE>

<LINK rel='stylesheet' type='text/css' href='drstyles.css' title='Style'/>

</HEAD>

	<BODY>

	<H1 align="left">

	<xsl:text> Sub Form: </xsl:text>

	<xsl:value-of select='@name'/>

	</H1>



	<H2>

	<xsl:text> LotusScript </xsl:text>

	</H2>



	<xsl:choose>

		<xsl:when test='.//dxl:lotusscript'>

			<xsl:apply-templates/>

		</xsl:when>

		<xsl:otherwise>

			<p>

			<PRE CLASS='Event'> <xsl:text> No LotusScript found!</xsl:text> </PRE>

			</p>

		</xsl:otherwise>

	</xsl:choose>

	<CENTER><HR/></CENTER>

	</BODY>

	</HTML>

</xsl:template>

<xsl:template match=‘dxl:view’>

<!-- The header for the page -->

<HTML>

<HEAD>

<TITLE> Extract LotusScript code for Domino Design Elements </TITLE>

<LINK rel='stylesheet' type='text/css' href='drstyles.css' title='Style'/>

</HEAD>

	<BODY>

	<H1 align="left">

	<xsl:text> View: </xsl:text>

	<xsl:value-of select='@name'/>

	</H1>



	<H2>

	<xsl:text> LotusScript </xsl:text>

	</H2>



	<xsl:choose>

		<xsl:when test='.//dxl:lotusscript'>

			<xsl:apply-templates/>

		</xsl:when>

		<xsl:otherwise>

			<p>

			<PRE CLASS='Event'> <xsl:text> No LotusScript found!</xsl:text> </PRE>

			</p>

		</xsl:otherwise>

	</xsl:choose>

	<CENTER><HR/></CENTER>

	</BODY>

	</HTML>

</xsl:template>

<xsl:template match=‘dxl:agent’>

<!-- The header for the page -->

<HTML>

<HEAD>

<TITLE> Extract LotusScript code for Domino Design Elements </TITLE>

<LINK rel='stylesheet' type='text/css' href='drstyles.css' title='Style'/>

</HEAD>

	<BODY>

	<H1 align="left">

	<xsl:text> Agent: </xsl:text>

	<xsl:value-of select='@name'/>

	</H1>



	<H2>

	<xsl:text> LotusScript </xsl:text>

	</H2>



	<xsl:choose>

		<xsl:when test='.//dxl:lotusscript'>

			<xsl:apply-templates/>

		</xsl:when>

		<xsl:otherwise>

			<p>

			<PRE CLASS='Event'> <xsl:text> No LotusScript found!</xsl:text> </PRE>

			</p>

		</xsl:otherwise>

	</xsl:choose>

	<CENTER><HR/></CENTER>

	</BODY>

	</HTML>

</xsl:template>

<xsl:template match=‘dxl:scriptlibrary’>

<!-- The header for the page -->

<HTML>

<HEAD>

<TITLE> Extract LotusScript code for Domino Design Elements </TITLE>

<LINK rel='stylesheet' type='text/css' href='drstyles.css' title='Style'/>

</HEAD>

	<BODY>

	<H1 align="left">

	<xsl:text> Script Library: </xsl:text>

	<xsl:value-of select='@name'/>

	</H1>



	<H2>

	<xsl:text> LotusScript </xsl:text>

	</H2>



	<xsl:choose>

		<xsl:when test='.//dxl:lotusscript'>

			<xsl:apply-templates/>

		</xsl:when>

		<xsl:otherwise>

			<p>

			<PRE CLASS='Event'> <xsl:text> No LotusScript found!</xsl:text> </PRE>

			</p>

		</xsl:otherwise>

	</xsl:choose>

	<CENTER><HR/></CENTER>

	</BODY>

	</HTML>

</xsl:template>

<xsl:template match=‘dxl:databasescript’>

<!-- The header for the page -->

<HTML>

<HEAD>

<TITLE> Extract LotusScript code for Domino Design Elements </TITLE>

<LINK rel='stylesheet' type='text/css' href='drstyles.css' title='Style'/>

</HEAD>

	<BODY>

	<H1 align="left">

	<xsl:text> Database Script Library: </xsl:text>

	<xsl:value-of select='@name'/>

	</H1>



	<H2>

	<xsl:text> LotusScript </xsl:text>

	</H2>



	<xsl:choose>

		<xsl:when test='.//dxl:lotusscript'>

			<xsl:apply-templates/>

		</xsl:when>

		<xsl:otherwise>

			<p>

			<PRE CLASS='Event'> <xsl:text> No LotusScript found!</xsl:text> </PRE>

			</p>

		</xsl:otherwise>

	</xsl:choose>

	<CENTER><HR/></CENTER>

	</BODY>

	</HTML>

</xsl:template>

<xsl:template match=‘dxl:lotusscript’>

    <H3>

<xsl:choose>

	<xsl:when test='../@section'>

		<xsl:value-of select='../@section'/>

	</xsl:when>

	<xsl:otherwise>

		<xsl:value-of select='../@event'/>

	</xsl:otherwise>

</xsl:choose>

    </H3>

<p>

<PRE CLASS='Event'> <xsl:value-of select='.'/> </PRE>

</p>

</xsl:template>

<xsl:template match=“text()”>

</xsl:template>

</xsl:stylesheet>

Subject: How about using Thomas Gumz’s DDSearch for 6.x Designer?

You can download it from the sandbox at: