---
name: "EMBOSS::GUI::XHTML"
section: "3pm"
platform: "linux"
package: "emboss-explorer"
version: "2.2.0-12"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/EMBOSS::GUI::XHTML"
---

# EMBOSS::GUI::XHTML(3pm)

generate HTML for EMBOSS::GUI

## NAME

EMBOSS::GUI::XHTML - generate HTML for EMBOSS::GUI

## AUTHOR

Luke McCarthy \<lukem@gene.pbi.nrc.ca\>

## SYNOPSIS

Not for public consumption.  Use EMBOSS::GUI instead.

## DESCRIPTION

EMBOSS::GUI::XHTML generates the HTML required by EMBOSS::GUI.  The appearance of EMBOSS::GUI can be customized by editing or replacing the default style sheet.  There is very little that cannot be accomplished in this way.  If new HTML is absolutely required, simply create a new module that provides the methods described below and specify the new module in the EMBOSS::GUI constructor.

Public methods are described below:

- new(%args)

  Returns a new EMBOSS::GUI::XHTML object.

  `%args` is a hash of optional named arguments.  The following arguments are `%recognized:`

  - static =\> $boolean

    If `$boolean` is true, the generated HTML will assume that, where possible, the pages of the interface have been generated statically and will be linked  appropriately.  See also the mkstatic script in the EMBOSS::GUI distribution.

  - frames =\> $boolean

    If `$boolean` is true, the generated HTML will assume that the main menu is in its own frame and doesn't have to be added to each page.

  - script\_url =\> $url

    Specifies the URL of the main EMBOSS::GUI CGI script.  This parameter is required if static pages are generated, otherwise the URL will be determined from the CGI environment.

  - style\_url =\> $url

    Specifies the URL of the style sheet to use.

  - image\_url =\> $url

    Specifies a URL prefix to place before image links.

  - manual\_url =\> $url

    Specifies a URL prefix to place before manual links.  This prefix is only used if static pages are generated.

- **intro\_page()**

  Generates an introductory page describing EMBOSS and the GUI.

- menu\_page(@entries)

  Generates the main menu page.

  `@entries` is either a list of applications as returned by **EMBOSS::GUI::apps()**, or a list of groups as returned by **EMBOSS::GUI::groups()**.

- input\_page($acd, $hide\_optional)

  Generates the application-specific input page.

  `$acd` is an EMBOSS::ACD object that describes the application.

  `$hide_optional` is a boolean value that determines whether optional parameters (also called additional parameters in the EMBOSS documenation) will appear in the input page.

- input\_page($output\_dir)

  Generates an output page based on the contents of the specified directory.

  `$output_dir` is a directory containing the output of an EMBOSS application.

- manual\_page($app, $manual)

  Generates the application-specific manual page.

  `$app` is the name of the application.

  `$manual_html` is the full text of the HTML application manual.

- default\_output\_page($refresh\_delay)

  Generates the default output page to be used as a placeholder until the application has finished running and the actual output is available.

  `$refresh_delay` is the number of seconds to wait between page reloads.

- error\_page(@error)

  Generates an error page.

  `@error` is the text of the error message.  All elements of the list are joined into a single string, so this method has the same syntax as print, warn, die, etc.

- **frameset\_page()**

  Generates a page that sets up the menu and main content frames.

## BUGS

If the user has asked to see only required fields, sections containing only optional fields will still be visible, even though the fields they contain are hidden.  Fixing this requires better section handling in EMBOSS::ACD.

## COPYRIGHT

Copyright (c) 2004 Luke McCarthy.  All rights reserved.  This program is free software.  You may copy or redistribute it under the same terms as Perl itself.
