OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: FYI: DocBook element lookup form

For what it's worth, I've set up a simple element lookup form at: 


If you type (or paste in) in an element name, it will take you the page
for that element in the online version of DocBook: The Definitive Guide.

I set it up because a couple of translators working on
localizations had asked me if there was a quick way to look up
reference info on individual elements.

Here's the source for it:

  if (isset($_GET['name'])) {
    // if 'goto' value specified in query string, redirect to
    // specified URL
    header("Location:" . "http://docbook.org/tdg/en/html/"; . $_GET['name'] . ".html");
  <html xmlns="http://www.w3.org/1999/xhtml";>
      <title>DocBook Element Lookup Form</title>
      <h1 style="font-size: 120%; color: #096">DocBook Element Lookup</h1>
        print "<form action='" . $_SERVER['PHP_SELF'] ."' method='get'>\n"
          <input name="name" type="text"/>&#160;&#160;<input type="submit"/>
        print "</form>\n"

Michael Smith
http://logopoeia.com/  http://www.oreillynet.com/pub/au/890


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]