RAT (Release Audit Tool) results

The following document contains the results of RAT (Release Audit Tool).

*****************************************************
Summary
-------
Notes: 9
Binaries: 5
Archives: 0
Standards: 301

Apache Licensed: 86
Generated Documents: 1

JavaDocs are generated and so license header is optional
Generated files do not required license headers

214 Unknown Licenses

*******************************

Archives (+ indicates readable, $ unreadable): 

 
*****************************************************
  Files with AL headers will be marked L
  Binary files (which do not require AL headers) will be marked B
  Compressed archives will be marked A
  Notices, licenses etc will be marked N
 !????? build.properties.sample
 !????? build.xml
 !????? buildApp.xml
 !????? buildDistribution.xml
 !????? doap_latka.rdf
  N     LICENSE.txt
  AL    maven.xml
  N     NOTICE.txt
  AL    pom.xml
 !????? project.properties
  AL    project.xml
 !????? src/conf/latka-application.xml
 !????? src/conf/latka-webapp-web.xml
 !????? src/distribution/bin/jelly.sh
 !????? src/distribution/bin/latka.bat
 !????? src/distribution/bin/latka.sh
 !????? src/distribution/conf/custom-tests.ent
 !????? src/distribution/conf/report.dtd
 !????? src/distribution/conf/standardValidations.ent
 !????? src/distribution/conf/suite.dtd
 !????? src/distribution/conf/suite.ent
 !????? src/distribution/conf/tests.ent
 !????? src/distribution/tests/latka-self-test/TestLatka.xml
 !????? src/distribution/tests/latka-self-test/TestLatkaOptional.xml
 !????? src/distribution/tests/samples/TestCommonsWebsite.xml
 !????? src/distribution/tests/samples/TestTaglibsWebsite.xml
 !????? src/distribution/tests/watchdog/WatchdogJSPSuite.xml
 !????? src/distribution/tests/watchdog/WatchdogServletSuite.xml
 !????? src/docbook/developers-guide.xml
 !????? src/docbook/index.xml
 !????? src/docbook/proposal.xml
 !????? src/docbook/release-plan-1.0.xml
  N     src/docbook/RELEASE_NOTES.txt
 !????? src/docbook/status.xml
 !????? src/docbook/users-guide.xml
 !????? src/docbook/xml-reference.xml
  AL    src/java/org/apache/commons/latka/AbstractReporter.java
  AL    src/java/org/apache/commons/latka/DefaultLatkaEventInfo.java
  AL    src/java/org/apache/commons/latka/event/BaseRequestEvent.java
  AL    src/java/org/apache/commons/latka/event/LatkaEvent.java
  AL    src/java/org/apache/commons/latka/event/LatkaEventInfo.java
  AL    src/java/org/apache/commons/latka/event/LatkaEventListener.java
  AL    src/java/org/apache/commons/latka/event/LatkaEventPublisher.java
  AL    src/java/org/apache/commons/latka/event/ReportMessageEvent.java
  AL    src/java/org/apache/commons/latka/event/RequestErrorEvent.java
  AL    src/java/org/apache/commons/latka/event/RequestEvent.java
  AL    src/java/org/apache/commons/latka/event/RequestFailedEvent.java
  AL    src/java/org/apache/commons/latka/event/RequestSkippedEvent.java
  AL    src/java/org/apache/commons/latka/event/RequestSucceededEvent.java
  AL    src/java/org/apache/commons/latka/event/SuiteCompletedEvent.java
  AL    src/java/org/apache/commons/latka/event/SuiteEvent.java
  AL    src/java/org/apache/commons/latka/HtmlPrettyPrintWriter.java
  AL    src/java/org/apache/commons/latka/http/Credentials.java
  AL    src/java/org/apache/commons/latka/http/CredentialsImpl.java
  AL    src/java/org/apache/commons/latka/http/MethodFactory.java
  AL    src/java/org/apache/commons/latka/http/Parameters.java
  AL    src/java/org/apache/commons/latka/http/ParametersImpl.java
  AL    src/java/org/apache/commons/latka/http/Proxy.java
  AL    src/java/org/apache/commons/latka/http/Request.java
  AL    src/java/org/apache/commons/latka/http/RequestHeaders.java
  AL    src/java/org/apache/commons/latka/http/RequestHeadersImpl.java
  AL    src/java/org/apache/commons/latka/http/RequestImpl.java
  AL    src/java/org/apache/commons/latka/http/Response.java
  AL    src/java/org/apache/commons/latka/http/ResponseImpl.java
  AL    src/java/org/apache/commons/latka/http/Session.java
  AL    src/java/org/apache/commons/latka/http/SessionImpl.java
  AL    src/java/org/apache/commons/latka/jelly/CredentialsTag.java
  AL    src/java/org/apache/commons/latka/jelly/JellyUtils.java
  AL    src/java/org/apache/commons/latka/jelly/LatkaTagLibrary.java
  AL    src/java/org/apache/commons/latka/jelly/ParameterNameTag.java
  AL    src/java/org/apache/commons/latka/jelly/ParameterTag.java
  AL    src/java/org/apache/commons/latka/jelly/ParameterValueTag.java
  AL    src/java/org/apache/commons/latka/jelly/ReportMessageTag.java
  AL    src/java/org/apache/commons/latka/jelly/RequestBodyTag.java
  AL    src/java/org/apache/commons/latka/jelly/RequestHeaderTag.java
  AL    src/java/org/apache/commons/latka/jelly/RequestTag.java
  AL    src/java/org/apache/commons/latka/jelly/SessionTag.java
  AL    src/java/org/apache/commons/latka/jelly/SuiteSettings.java
  AL    src/java/org/apache/commons/latka/jelly/SuiteTag.java
  AL    src/java/org/apache/commons/latka/jelly/ValidateTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/ByteLengthTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/CookieTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/GoldenFileTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/HttpValidatorTagSupport.java
  AL    src/java/org/apache/commons/latka/jelly/validators/MaxRequestTimeTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/RegexpTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/ResponseHeaderTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/StatusCodeTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/StatusTextTag.java
  AL    src/java/org/apache/commons/latka/jelly/validators/XPathTag.java
  AL    src/java/org/apache/commons/latka/junit/JUnitEventReporter.java
  AL    src/java/org/apache/commons/latka/junit/JUnitTestAdapter.java
  AL    src/java/org/apache/commons/latka/Latka.java
  AL    src/java/org/apache/commons/latka/LatkaException.java
  AL    src/java/org/apache/commons/latka/LatkaProperties.java
  AL    src/java/org/apache/commons/latka/servlet/ViewResponseServlet.java
  AL    src/java/org/apache/commons/latka/servlet/ViewSuiteServlet.java
  AL    src/java/org/apache/commons/latka/Suite.java
  AL    src/java/org/apache/commons/latka/ValidationException.java
  AL    src/java/org/apache/commons/latka/Validator.java
  AL    src/java/org/apache/commons/latka/validators/BaseConditionalValidator.java
  AL    src/java/org/apache/commons/latka/validators/BaseValidator.java
  AL    src/java/org/apache/commons/latka/validators/ByteLengthValidator.java
  AL    src/java/org/apache/commons/latka/validators/CookieValidator.java
  AL    src/java/org/apache/commons/latka/validators/GoldenFileValidator.java
  AL    src/java/org/apache/commons/latka/validators/MaxRequestTimeValidator.java
  AL    src/java/org/apache/commons/latka/validators/RegexpValidator.java
  AL    src/java/org/apache/commons/latka/validators/ResponseHeaderValidator.java
  AL    src/java/org/apache/commons/latka/validators/StatusCodeValidator.java
  AL    src/java/org/apache/commons/latka/validators/StatusTextValidator.java
  AL    src/java/org/apache/commons/latka/validators/XPathValidator.java
  AL    src/java/org/apache/commons/latka/XMLReporter.java
  B     src/media/logo.xcf
 !????? src/resources/latka.properties
 !????? src/resources/latka.properties.internal
 !????? src/resources/log4j.properties
 !????? src/resources/org.apache.commons.latka.identityTransform.xsl
 !????? src/resources/org.apache.commons.latka.report.xsl
  B     src/site/resources/images/latka.gif
  B     src/site/resources/images/logo.png
  AL    src/site/site.xml
 !????? src/test/org/apache/commons/latka/jelly/suiteTag.jelly
  AL    src/test/org/apache/commons/latka/jelly/TestLatka.java
 !????? src/test/org/apache/commons/latka/jelly/testLatka.jelly
  AL    src/test/org/apache/commons/latka/jelly/TestSuiteTag.java
  AL    src/test/org/apache/commons/latka/junit/TestAll.java
  AL    src/test/org/apache/commons/latka/junit/TestJUnitEventReporter.java
  AL    src/test/org/apache/commons/latka/junit/TestJUnitTestAdapter.java
  AL    src/test/org/apache/commons/latka/TestStatusCodes.java
 !????? src/webapps/latka-webapp/build.xml
 !????? src/webapps/latka-webapp/DefaultLatkaSuite.jsp
 !????? src/webapps/latka-webapp/Header.jsp
 !????? src/webapps/latka-webapp/index.jsp
 !????? src/webapps/latka-webapp/ProcessTestBody.jsp
 !????? src/webapps/latka-webapp/ProcessTestURL.jsp
  N     src/webapps/latka-webapp/README.txt
 !????? src/webapps/latka-webapp/report.xsl
 !????? src/webapps/latka-webapp/RunTest.jsp
 !????? src/webapps/latka-webapp/RunTestBody.jsp
 !????? src/webapps/latka-webapp/RunTestURL.jsp
 !????? src/webapps/latka-webapp/self-test/basicAuth/Login.jsp
 !????? src/webapps/latka-webapp/self-test/cookies/SetCookie.jsp
 !????? src/webapps/latka-webapp/self-test/redirect/ExternalRedirect.jsp
 !????? src/webapps/latka-webapp/self-test/redirect/InternalRedirect.jsp
 !????? src/webapps/latka-webapp/self-test/redirect/PrintReferer.jsp
 !????? src/webapps/latka-webapp/self-test/redirect/RedirectTarget.jsp
 !????? src/webapps/latka-webapp/self-test/snoop/Cookies.jsp
 !????? src/webapps/latka-webapp/self-test/snoop/RequestHeaders.jsp
 !????? src/webapps/latka-webapp/self-test/xpath/TestMeWithXPath.xml
 !????? src/webapps/latka-webapp/SetProperties.jsp
 !????? src/webapps/latka-webapp/SetTestDir.jsp
 !????? src/webapps/latka-webapp/TestForm.jsp
 !????? src/webapps/latka-webapp/TestMenu.jsp
 !????? src/webapps/latka-webapp/ToggleValidation.jsp
 !????? src/webapps/latka-webapp/ValidateXML.jsp
 !????? src/webapps/latka-webapp/ViewSuiteLink.jsp
 !????? src/webapps/latka-webapp/WEB-INF/classes/latka.properties
 !????? src/xdocs/developers-guide.xml
  B     src/xdocs/images/latka.gif
  B     src/xdocs/images/logo.png
 !????? src/xdocs/index.xml
 !????? src/xdocs/navigation.xml
 !????? src/xdocs/proposal.xml
 !????? src/xdocs/release-plan-1.0.xml
 !????? src/xdocs/status.xml
 !????? src/xdocs/style/project.css
 !????? src/xdocs/tasks.xml
 !????? src/xdocs/users-guide.xml
 !????? src/xdocs/xml-reference.xml
 !????? src/xsl/docbook/BUGS
  N     src/xsl/docbook/ChangeLog
 !????? src/xsl/docbook/common/af.xml
 !????? src/xsl/docbook/common/ca.xml
  N     src/xsl/docbook/common/ChangeLog
 !????? src/xsl/docbook/common/common.xsl
 !????? src/xsl/docbook/common/cs.xml
 !????? src/xsl/docbook/common/da.xml
 !????? src/xsl/docbook/common/de.xml
 !????? src/xsl/docbook/common/el.xml
 !????? src/xsl/docbook/common/en.xml
 !????? src/xsl/docbook/common/es.xml
 !????? src/xsl/docbook/common/et.xml
 !????? src/xsl/docbook/common/eu.xml
 !????? src/xsl/docbook/common/fi.xml
 !????? src/xsl/docbook/common/fr.xml
 !????? src/xsl/docbook/common/gentext.xsl
 !????? src/xsl/docbook/common/hu.xml
 !????? src/xsl/docbook/common/id.xml
 !????? src/xsl/docbook/common/it.xml
 !????? src/xsl/docbook/common/ja.xml
 !????? src/xsl/docbook/common/ko.xml
 !????? src/xsl/docbook/common/l10n.dtd
 !????? src/xsl/docbook/common/l10n.xml
 !????? src/xsl/docbook/common/l10n.xsl
 !????? src/xsl/docbook/common/labels.xsl
 !????? src/xsl/docbook/common/nl.xml
 !????? src/xsl/docbook/common/nn.xml
 !????? src/xsl/docbook/common/no.xml
 !????? src/xsl/docbook/common/pl.xml
 !????? src/xsl/docbook/common/pt.xml
 !????? src/xsl/docbook/common/pt_br.xml
 !????? src/xsl/docbook/common/ro.xml
 !????? src/xsl/docbook/common/ru.xml
 !????? src/xsl/docbook/common/sk.xml
 !????? src/xsl/docbook/common/sl.xml
 !????? src/xsl/docbook/common/sr.xml
 !????? src/xsl/docbook/common/subtitles.xsl
 !????? src/xsl/docbook/common/sv.xml
 !????? src/xsl/docbook/common/table.xsl
 !????? src/xsl/docbook/common/th.xml
 !????? src/xsl/docbook/common/titles.xsl
 !????? src/xsl/docbook/common/tr.xml
 !????? src/xsl/docbook/common/uk.xml
 !????? src/xsl/docbook/common/xh.xml
 !????? src/xsl/docbook/common/zh_cn.xml
 !????? src/xsl/docbook/common/zh_tw.xml
 !????? src/xsl/docbook/html/admon.xsl
 !????? src/xsl/docbook/html/autoidx.xsl
 !????? src/xsl/docbook/html/autotoc.xsl
 !????? src/xsl/docbook/html/biblio.xsl
 !????? src/xsl/docbook/html/block.xsl
 !????? src/xsl/docbook/html/calc-chunks.xsl
 !????? src/xsl/docbook/html/callout.xsl
 !????? src/xsl/docbook/html/changebars.xsl
  N     src/xsl/docbook/html/ChangeLog
 !????? src/xsl/docbook/html/chunk-experimental.xsl
 !????? src/xsl/docbook/html/chunk.xsl
 !????? src/xsl/docbook/html/chunker.xsl
 !????? src/xsl/docbook/html/component.xsl
 !????? src/xsl/docbook/html/division.xsl
 !????? src/xsl/docbook/html/docbook.xsl
 !????? src/xsl/docbook/html/ebnf.xsl
 !????? src/xsl/docbook/html/expchunk.xsl
 !????? src/xsl/docbook/html/footnote.xsl
 !????? src/xsl/docbook/html/formal.xsl
 !????? src/xsl/docbook/html/glossary.xsl
 !????? src/xsl/docbook/html/graphics.xsl
 !????? src/xsl/docbook/html/html.xsl
 !????? src/xsl/docbook/html/index.xsl
 !????? src/xsl/docbook/html/info.xsl
 !????? src/xsl/docbook/html/inline.xsl
 !????? src/xsl/docbook/html/keywords.xsl
 !????? src/xsl/docbook/html/lists.xsl
 !????? src/xsl/docbook/html/math.xsl
 !????? src/xsl/docbook/html/oldchunker.xsl
 !????? src/xsl/docbook/html/onechunk.xsl
 !????? src/xsl/docbook/html/param.ent
 !????? src/xsl/docbook/html/param.html
  GEN   src/xsl/docbook/html/param.xml
 !????? src/xsl/docbook/html/param.xsl
 !????? src/xsl/docbook/html/param.xweb
 !????? src/xsl/docbook/html/pi.xsl
 !????? src/xsl/docbook/html/qandaset.xsl
 !????? src/xsl/docbook/html/refentry.xsl
 !????? src/xsl/docbook/html/sections.xsl
 !????? src/xsl/docbook/html/synop.xsl
 !????? src/xsl/docbook/html/table.xsl
 !????? src/xsl/docbook/html/titlepage.templates.xml
 !????? src/xsl/docbook/html/titlepage.templates.xsl
 !????? src/xsl/docbook/html/titlepage.xsl
 !????? src/xsl/docbook/html/toc.xsl
 !????? src/xsl/docbook/html/verbatim.xsl
 !????? src/xsl/docbook/html/xref.xsl
 !????? src/xsl/docbook/lib/lib.xsl
  N     src/xsl/docbook/README
 !????? src/xsl/docbook/TODO
 !????? src/xsl/docbook/VERSION
 !????? src/xsl/docbook/WhatsNew
 !????? src/xsl/docbook/xhtml/admon.xsl
 !????? src/xsl/docbook/xhtml/autoidx.xsl
 !????? src/xsl/docbook/xhtml/autotoc.xsl
 !????? src/xsl/docbook/xhtml/biblio.xsl
 !????? src/xsl/docbook/xhtml/block.xsl
 !????? src/xsl/docbook/xhtml/calc-chunks.xsl
 !????? src/xsl/docbook/xhtml/callout.xsl
 !????? src/xsl/docbook/xhtml/changebars.xsl
  N     src/xsl/docbook/xhtml/ChangeLog
 !????? src/xsl/docbook/xhtml/chunk-experimental.xsl
 !????? src/xsl/docbook/xhtml/chunk.xsl
 !????? src/xsl/docbook/xhtml/chunker.xsl
 !????? src/xsl/docbook/xhtml/component.xsl
 !????? src/xsl/docbook/xhtml/division.xsl
 !????? src/xsl/docbook/xhtml/docbook.xsl
 !????? src/xsl/docbook/xhtml/ebnf.xsl
 !????? src/xsl/docbook/xhtml/expchunk.xsl
 !????? src/xsl/docbook/xhtml/FIXME.bak
 !????? src/xsl/docbook/xhtml/footnote.xsl
 !????? src/xsl/docbook/xhtml/formal.xsl
 !????? src/xsl/docbook/xhtml/glossary.xsl
 !????? src/xsl/docbook/xhtml/graphics.xsl
 !????? src/xsl/docbook/xhtml/html.xsl
 !????? src/xsl/docbook/xhtml/html2xhtml.xsl
 !????? src/xsl/docbook/xhtml/index.xsl
 !????? src/xsl/docbook/xhtml/info.xsl
 !????? src/xsl/docbook/xhtml/inline.xsl
 !????? src/xsl/docbook/xhtml/keywords.xsl
 !????? src/xsl/docbook/xhtml/lists.xsl
 !????? src/xsl/docbook/xhtml/math.xsl
 !????? src/xsl/docbook/xhtml/oldchunker.xsl
 !????? src/xsl/docbook/xhtml/onechunk.xsl
 !????? src/xsl/docbook/xhtml/param.xsl
 !????? src/xsl/docbook/xhtml/pi.xsl
 !????? src/xsl/docbook/xhtml/qandaset.xsl
 !????? src/xsl/docbook/xhtml/refentry.xsl
 !????? src/xsl/docbook/xhtml/sections.xsl
 !????? src/xsl/docbook/xhtml/synop.xsl
 !????? src/xsl/docbook/xhtml/table.xsl
 !????? src/xsl/docbook/xhtml/titlepage.templates.xsl
 !????? src/xsl/docbook/xhtml/titlepage.xsl
 !????? src/xsl/docbook/xhtml/toc.xsl
 !????? src/xsl/docbook/xhtml/verbatim.xsl
 !????? src/xsl/docbook/xhtml/xref.xsl
 !????? src/xsl/docbook/xhtml/xslfiles.gen
 !????? src/xsl/site/docbook2document.xsl
 !????? src/xsl/site/site.xsl
 
 *****************************************************
 Printing headers for files without AL header...
 
 
 =======================================================================
 ==build.properties.sample
 =======================================================================
 name=jakarta-latka
Name=Jakarta-Latka
Name-long="Jakarta Latka"
version=1.0
# from jaxp (http://java.sun.com/xml/jaxp/index.html)
jaxp.jar=/java/lib/jaxp.jar
# from jdom (http://jdom.org/) beta 7 or above
jdom.jar=/java/lib/jdom.jar
# from regexp (http://jakarta.apache.org/regexp/)
regexp.jar=/java/lib/jakarta-regexp.jar
# from httpclient (http://jakarta.apache.org/commons/httpclient)
httpclient.jar=/java/lib/commons-httpclient.jar
# from log4j (http://jakarta.apache.org/log4j/)
log4j.jar=/java/lib/log4j.jar
# from saxproject (http://www.saxproject.org)
sax2.jar=/java/lib/sax2.jar
# from jsse (http://java.sun.com/products/jsse)
jnet.jar=/java/lib/jnet.jar
jsse.jar=/java/lib/jsse.jar
jcert.jar=/java/lib/jcert.jar
# from junit (http://junit.org)
junit.jar=/java/lib/junit.jar

# For the XPath validator. Jaxen is an XPath library, obtainable from
# http://www.jaxen.org/
jaxen.home=${user.home}/jaxen
jaxen.jar=${jaxen.home}/build/jaxen-full.jar
saxpath.jar=${jaxen.home}/saxpath.jar

# for application distribution
# from xalan (http://xml.apache.org/xalan-j)
xalan.jar=/java/lib/xalan2.jar
# from crimson (http://xml.apache.org/crimson/)
crimson.jar=/java/lib/crimson.jar

# for building the webapp and tag library
latka.jar=/cvs/jakarta-commons/latka/dist/jakarta-latka.jar
# from servlet-api 
# (http://www.apache.org/dist/jakarta/jakarta-servletapi-4.0/nightly)
servlet.jar=/java/lib/servlet.jar
# FIXME: No nightly build or release available - download source and build
latka-taglib.jar=/cvs/jakarta-taglibs-sandbox/dist/latka-taglib/latka-taglib.jar
latka-taglib.tld=/cvs/jakarta-taglibs-sandbox/dist/latka-taglib/latka-taglib.tld

# Checkstyle - for running checks against the source
# (http://checkstyle.sourceforge.net)
checkstyle.jar=/java/lib/checkstyle-1.4.jar
# FIXME: Need authoritative URL for antlr.jar
antlr.jar=/java/lib/antlr.jar


 =======================================================================
 ==build.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>

<project default="jar" name="commons-latka" basedir=".">

  <property name="name" value="commons-latka"/>
  <property name="title" value="Apache Commons Latka"/>
  <property name="version" value="Nightly-${DSTAMP}${TSTAMP}"/>
  <property name="package" value="org.apache.commons.latka.*"/>

  <property name="defaulttargetdir" value="target">
  </property>
  <property name="libdir" value="target/lib">
  </property>
  <property name="classesdir" value="target/classes">
  </property>
  <property name="testclassesdir" value="target/test-classes">
  </property>
  <property name="testreportdir" value="target/test-reports">
  </property>
  <property name="distdir" value="dist">
  </property>
  <property name="javadocdir" value="dist/docs/api">
  </property>
  <property name="final.name" value="commons-latka">
  </property>
  <target name="init" description="o Initializes some properties">
    <mkdir dir="${libdir}">
    </mkdir>
    <condition property="noget">
      <equals arg2="only" arg1="${build.sysclasspath}">
      </equals>
    </condition>
  </target>
  <target name="compile" description="o Compile the code" depends="get-deps">
    <mkdir dir="${classesdir}">
    </mkdir>
    <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
      <src>
        <pathelement location="src/java">
        </pathelement>
      </src>
      <classpath>
        <fileset dir="${libdir}">
          <include name="*.jar">
          </include>
        </fileset>
      </classpath>
    </javac>
    <copy todir="${classesdir}">
      <fileset dir="src/resources">

 =======================================================================
 ==buildApp.xml
 =======================================================================
 <!-- $Id: buildApp.xml 561366 2007-07-31 15:58:29Z rahul $ -->
<project name="buildAllLatka" default="init" basedir=".">

  <target name="init">
    <tstamp/>

      <!-- read properties from the build.properties, if any -->
      <property name="component-propfile" value="${basedir}/build.properties"/>
      <property file="${component-propfile}"/>

      <!-- read properties from the commons build.properties, if any -->
      <property name="commons-propfile" value="${basedir}/../build.properties"/>
      <property file="${commons-propfile}"/>

      <!-- read properties from the ${user.home}/propfile, if any -->
      <property name="user-propfile" value="${user.home}/build.properties"/>
      <property file="${user-propfile}"/>

      <property name="name" value="commons-latka"/>
      <property name="Name" value="Commons-Latka"/>
      <property name="Name-Long" value="Apache Commons Latka Functional Testing Suite"/>

      <property name="workdir" value="${java.io.tmpdir}/buildtemp_${DSTAMP}${TSTAMP}"/>

      <property name="dist" value="${basedir}/dist"/>
      <property name="dist.jar" value="${dist}/${name}.jar"/>

      <property name="app.name" value="${name}-${version}"/>
      <property name="dist.app" value="${dist}/${name}-${version}.zip"/>

      <property name="dest" value="${basedir}/build"/>
      <property name="dest.app" value="${dest}/app"/>
      <property name="dest.doc" value="${dest}/docs"/>
      <property name="source.conf" value="${basedir}/conf"/>
      <property name="source.tests" value="${basedir}/tests"/>
      
      <property name="latka.war" value="latka-webapp/dist/latka-webapp.war"/>

  </target>

   <target name="dist" depends="init,dist-app" description="create jars, wars, etc."/>

   <target name="dist-app" depends="prepare-app">
      <mkdir dir="${workdir}/${app.name}"/>
      <copy todir="${workdir}/${app.name}">
         <fileset dir="${dest.app}"/>
      </copy>
      <zip zipfile="${dist.app}">
         <fileset dir="${workdir}"/>
      </zip>

 =======================================================================
 ==buildDistribution.xml
 =======================================================================
 <!-- $Id: buildDistribution.xml 155424 2005-02-26 13:09:29Z dirkv $ -->
<project name="buildAllLatka" default="init" basedir=".">

  <!-- 
    this file does a complete rebuild of all of Latka and zips 
    it into a distro.
    In order to successfully build Latka, the dists must be 
    performed in the logical order - library, taglib, webapp.
  -->
 
  <target name="init">
    <tstamp/>
  </target>

   <target name="clean" depends="init" description="removes all generated files">
      <ant dir="." target="clean"/>
      <ant dir="../../jakarta-taglibs-sandbox/latka-taglib" target="clean"/>
      <ant dir="latka-webapp" target="clean"/>
   </target>

   <target name="dist" depends="init" description="create jars, wars, etc.">
      <ant dir="." target="dist"/>
      <ant dir="../../jakarta-taglibs-sandbox/latka-taglib" target="dist"/>
      <ant dir="latka-webapp" target="dist"/>
      <ant dir="." antfile="buildApp.xml" target="dist"/>
   </target>

</project>

 =======================================================================
 ==doap_latka.rdf
 =======================================================================
 <?xml version="1.0"?>
<rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:asfext="http://projects.apache.org/ns/asfext#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:doap="http://usefulinc.com/ns/doap#" xml:lang="en">
  <Project rdf:about="http://jakarta.apache.org/commons/latka/">
    <name>Apache Jakarta Commons Latka</name>
    <homepage rdf:resource="http://jakarta.apache.org/commons/latka/"/>
    <programming-language>Java</programming-language>
    <category rdf:resource="http://projects.apache.org/category/library"/>
    <license rdf:resource="http://usefulinc.com/doap/licenses/asl20"/>
    <bug-database rdf:resource="http://issues.apache.org/bugzilla/buglist.cgi?product=Commons&amp;component=latka"/>
    <download-page rdf:resource="http://jakarta.apache.org/site/downloads/downloads_commons-latka.cgi"/>
    <asfext:pmc rdf:resource="http://jakarta.apache.org/"/>
    <shortdesc xml:lang="en">
   A functional testing tool for HTTP/HTTPS.
  </shortdesc>
    <description xml:lang="en">
    Latka is a functional (end-to-end) testing tool. It is implemented
    in Java, and uses an XML syntax to define a series of HTTP (or
    HTTPS) requests and a set of validations used to verify that the
    request was processed correctly.
  </description>
    <repository>
      <SVNRepository>
        <browse rdf:resource="http://svn.apache.org/repos/asf/jakarta/commons/proper/latka/trunk"/>
        <location rdf:resource="http://svn.apache.org/repos/asf/jakarta/commons/proper/latka"/>
      </SVNRepository>
    </repository>
    <release>
      <revision>
        <name>commons-latka</name>
        <created>2002-12-27</created>
        <version>1.0-alpha1</version>
      </revision>
    </release>
    <mailing-list rdf:resource="http://jakarta.apache.org/site/mail2.html#Commons"/>
  </Project>
</rdf:RDF>

 =======================================================================
 ==project.properties
 =======================================================================
 ##
# Properties that override Maven build defaults
##
maven.checkstyle.header.file=../LICENSE
# directory for resources to go in the jar
maven.jarResources.basedir=${basedir}/src/resources
# run junit tests in a separate vm
maven.junit.fork=true
# override maven default docs
maven.docs.src=${basedir}/src/xdocs
maven.src.docbook-simple=${basedir}/src/docbook
maven.src.dir=${basedir}/src
maven.conf.dir=${maven.src.dir}/conf
maven.jar.excludes=**/servlet/**.class,**/package.html,src/**
# j2ee stuff
maven.j2ee.war.classes.includes=**/servlet/**.class
#maven.j2ee.war.classes.excludes=src/**
maven.j2ee.war.name=latka-webapp
maven.j2ee.ear.name=latka

maven.changelog.factory=org.apache.maven.svnlib.SvnChangeLogFactory

maven.xdoc.jsl=../commons-build/commons-site.jsl
maven.xdoc.date=left
maven.xdoc.version=${pom.currentVersion}
maven.xdoc.developmentProcessUrl=http://commons.apache.org/charter.html
maven.xdoc.poweredby.image=maven-feather.png


 =======================================================================
 ==src/conf/latka-application.xml
 =======================================================================
 <?xml version="1.0"?>

<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>

<application>
<description>Latka Web Testing Enterprise App</description>
   <display-name>latka</display-name>
   <module>
      <web>
         <web-uri>latka-webapp.war</web-uri>
         <context-root>/latka</context-root>
      </web>
   </module>
</application>


 =======================================================================
 ==src/conf/latka-webapp-web.xml
 =======================================================================
 <?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

<web-app>

  <description>
    Latka standard web application
  </description>
  
  <context-param>
    <param-name>latka.testDir</param-name>
    <param-value>/lib/latka/tests/samples</param-value>
  </context-param>

  <!-- view response servlet -->
  <servlet>
    <servlet-name>viewResponse</servlet-name>
    <servlet-class>org.apache.commons.latka.servlet.ViewResponseServlet</servlet-class>
  </servlet>
  
  <!-- view suite servlet -->
  <servlet>
    <servlet-name>viewSuite</servlet-name>
    <servlet-class>org.apache.commons.latka.servlet.ViewSuiteServlet</servlet-class>
  </servlet>

  <!-- view response servlet -->
  <servlet-mapping>
    <servlet-name>viewResponse</servlet-name>
    <url-pattern>/viewResponse</url-pattern>
  </servlet-mapping>

  <!-- view suite servlet -->
  <servlet-mapping>
    <servlet-name>viewSuite</servlet-name>
    <url-pattern>/viewSuite</url-pattern>
  </servlet-mapping>
  
  <taglib>
    <taglib-uri>http://jakarta.apache.org/taglibs/latka-taglib</taglib-uri>
    <taglib-location>/WEB-INF/latka-taglib.tld</taglib-location>
  </taglib>

  <!-- if you want to test basic auth, you have to set it up the latka-auth
       role in your servlet container's security interface -->
  <security-constraint>
    <web-resource-collection>

 =======================================================================
 ==src/distribution/bin/jelly.sh
 =======================================================================
 #!/bin/sh
# Run a jelly script
#
# Author:   dIon Gillard
#
# Version:  $Id: jelly.sh 155424 2005-02-26 13:09:29Z dirkv $
#
LIB_REPO=/home/dion/source/lib.repo
JELLY=commons-jelly-1.0-dev.20020628.033340.jar
HTTPCLIENT=commons-httpclient-2.0-dev.jar
LOGGING=commons-logging-1.0.jar
COLLECTIONS=commons-collections-2.0.jar
JEXL=commons-jexl-1.0-dev.jar
LATKA=jakarta-commons-latka-1.0-dev.jar
DOM4J=dom4j-1.4-dev-3.jar
BEANUTILS=commons-beanutils-1.4-dev.jar
VELOCITY=velocity-1.4-dev.jar

CP=$LIB_REPO/$JELLY
CP=$CP:$LIB_REPO/$HTTPCLIENT
CP=$CP:$LIB_REPO/$LOGGING
CP=$CP:$LIB_REPO/$COLLECTIONS
CP=$CP:$LIB_REPO/$LATKA
CP=$CP:$LIB_REPO/$JEXL
CP=$CP:$LIB_REPO/$DOM4J
CP=$CP:$LIB_REPO/$BEANUTILS
CP=$CP:$LIB_REPO/$VELOCITY

VM_ARGS=
JAVA=$JAVA_HOME/bin/java
# run latka
$JAVA -classpath $CP $VM_ARGS org.apache.commons.jelly.Jelly $*

 =======================================================================
 ==src/distribution/bin/latka.bat
 =======================================================================
 @echo off

rem pass in the path to the XML file for the Latka suite
rem optionally override the default host and default port
set LIB="..\lib"
java -classpath .;%LIB%\jaxp.jar;%LIB%\sax2.jar;%LIB%\crimson.jar;%LIB%\log4j.jar;%LIB%\commons-httpclient.jar;%LIB%\jakarta-latka.jar;%LIB%\jakarta-regexp.jar;%LIB%\jdom.jar;%LIB%\xalan2.jar;%LIB%\jsse.jar;%LIB%\jnet.jar;%LIB%\jcert.jar;%LIB% -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol org.apache.commons.latka.Latka %1 %2 %3 %4 %5 %6 %7 %8 %9

@echo on

 =======================================================================
 ==src/distribution/bin/latka.sh
 =======================================================================
 #! /bin/sh
# pass in the path to the XML file for the Latka suite
# optionally override the default host and default port
#
# Author:   Morgan Delagrange
# Author:   dIon Gillard
# 
# Version:  $Id: latka.sh 155424 2005-02-26 13:09:29Z dirkv $
#
# Set the LATKA_HOME environment variable to your latka install directory
if [ -z "$LATKA_HOME" ] ; then
    LATKA_HOME=..
fi
# Set up classpath for latka - . + all jars in latka/lib + latka/lib
LATKA_LIB=$LATKA_HOME/lib
LATKA_LIBS=${LATKA_LIB}/*.jar
LATKA_CP=.
for lib in ${LATKA_LIBS}
do
    # this condition will be false if there are no jar files in LATKA_LIB
    if [ "$lib" != "${LATKA_LIBS}" ] ; then
        LATKA_CP=$LATKA_CP:"$lib"
    fi
done
LATKA_CP=$LATKA_CP:$LATKA_LIB
LATKA_VM_ARGS=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
# run latka
java -classpath $LATKA_CP $LATKA_VM_ARGS org.apache.commons.latka.Latka $*



 =======================================================================
 ==src/distribution/conf/custom-tests.ent
 =======================================================================
 <!-- 
    Author:  dIon Gillard (dion@apache.org)
    Version: $Id: custom-tests.ent 155424 2005-02-26 13:09:29Z dirkv $

    alter this file to add new custom tests 

    There is an entity defined here called 'custom-tests' which has a list of
    top-level elements for the tests. These top-level elements will be defined
    in the resulting DTD to appear as children of the <validate> element in 
    a Latka Suite

    Each custom test top-level element should be entered, with a vertical
    bar ( '|' ) separating each.
-->

<!--top level element only, e.g.
    the vertical bar is VERY important
### example only
    custom-tests " | myvalidator" >

    default is no custom tests i.e. blank
 -->
<!ENTITY % custom-tests "" >

<!-- 
now for custom test element and attribute definitions, e.g.

### example only
<!ELEMENT myvalidator EMPTY>
<!ATTLIST myvalidator name  CDATA #REQUIRED
                      value CDATA #IMPLIED
                      label CDATA #IMPLIED>
-->

 =======================================================================
 ==src/distribution/conf/report.dtd
 =======================================================================
 <?xml encoding="UTF-8" ?>

<!ELEMENT report ( (request | reportMessage)+ )>
<!ATTLIST report suiteSuccess (true|false) #REQUIRED
                 label         CDATA        #IMPLIED>

<!ELEMENT reportMessage EMPTY>
<!ATTLIST reportMessage message CDATA #REQUIRED>

<!ELEMENT request (requestSuccess | requestFailure |
                   requestSkipped | requestError)>
<!ATTLIST request requestTime CDATA #REQUIRED
                  label        CDATA #IMPLIED
                  url          CDATA #REQUIRED>

<!ELEMENT requestSuccess EMPTY>

<!ELEMENT requestFailure (label)>
<!ATTLIST requestFailure responseId CDATA #REQUIRED>

<!ELEMENT requestSkipped EMPTY>

<!ELEMENT requestError (label)>

<!ELEMENT label (#PCDATA)>


 =======================================================================
 ==src/distribution/conf/standardValidations.ent
 =======================================================================
 <!-- This module contains a set of standard validation entities for Latka tests. -->

<!-- standard set -->
<!ENTITY commonValidations "<statusCode/>">

<!-- response time -->
<!ENTITY fast "<maxRequestTime millis='2500' label='Response in at most 2.5 seconds.'/>">
<!ENTITY slow "<maxRequestTime millis='5000' label='Response in at most 5 seconds.'/>">

<!-- byte size -->
<!ENTITY tiny   "<byteLength min=    '1' max= '1000' label='Less than 1 KB long.'/>">
<!ENTITY small  "<byteLength min= '1000' max='10000' label='Between 1 and 10 KB long.'/>">
<!ENTITY medium "<byteLength min='8000' max='22000' label='Between 8 and 22 KB long.'/>">
<!ENTITY large  "<byteLength min='18000' max='32000' label='Between 18 and 32 KB long.'/>">
<!ENTITY huge   "<byteLength min='30000' label='More than 30 KB long.'/>">

<!-- regexp -->




 =======================================================================
 ==src/distribution/conf/suite.dtd
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>

<!-- standard wrapper for the main DTD elements -->
<!ENTITY % suite.ent SYSTEM "suite.ent">
%suite.ent;

 =======================================================================
 ==src/distribution/conf/suite.ent
 =======================================================================
 <!-- entities -->
<!ENTITY % standardValidations.ent SYSTEM "standardValidations.ent">
%standardValidations.ent;

<!-- validations and custom tests
     alter this file to add new custom tests -->
<!ENTITY % tests.ent SYSTEM "tests.ent">
%tests.ent;

<!ELEMENT suite ( (session | request | reportMessage)+ )>
<!ATTLIST suite defaultHost  CDATA #IMPLIED
                defaultPort  CDATA #IMPLIED
                defaultProxyHost    CDATA #IMPLIED
                defaultProxyPort    CDATA #IMPLIED
                label        CDATA #IMPLIED>
                
<!-- prints out a message to the log generated by the test -->
<!ELEMENT reportMessage EMPTY>
<!ATTLIST reportMessage message CDATA #REQUIRED>

<!ELEMENT session ( (request | reportMessage)+)>
<!-- tests that use the same session_id share the same environment -->
<!ATTLIST session sessionId CDATA #IMPLIED
                  label      CDATA #IMPLIED>

<!-- request bodies are ONLY legal for the post method -->
<!ELEMENT request (credentials?, requestHeader*, (param* | requestBody), validate?)>
<!ATTLIST request path   CDATA          #REQUIRED
                  method (post | get | head)   "get"
                  secure (true | false) "false"
                  host   CDATA          #IMPLIED
                  port   CDATA          #IMPLIED
                  proxyHost CDATA       #IMPLIED
                  proxyPort CDATA       #IMPLIED
                  label  CDATA          #IMPLIED
                  followRedirects (true | false) "true"
                  version (1.1 | 1.0) "1.1">

<!ELEMENT credentials EMPTY>
<!ATTLIST credentials userName CDATA #REQUIRED
                      password CDATA #REQUIRED>

<!ELEMENT requestHeader EMPTY>
<!ATTLIST requestHeader headerName  CDATA #REQUIRED
                        headerValue CDATA #IMPLIED>

<!ELEMENT param (paramName, paramValue)>

<!ELEMENT paramName (#PCDATA)>


 =======================================================================
 ==src/distribution/conf/tests.ent
 =======================================================================
 
<!ENTITY % custom-tests.ent SYSTEM "custom-tests.ent">
%custom-tests.ent;

<!-- all Latka test top level elements are here -->
<!ENTITY % tests "byteLength | cookie | goldenFile | maxRequestTime | regexp | 
                  responseHeader | statusCode | statusText | xpath">

<!-- null HTTP response bodies will have a byteLength of -1 -->
<!ELEMENT byteLength EMPTY>
<!ATTLIST byteLength min   CDATA "0"
                      max   CDATA #IMPLIED
                      label CDATA #IMPLIED>

<!-- start cookie validator-->
<!ELEMENT cookie EMPTY>
<!ATTLIST cookie name  CDATA #REQUIRED
                 value CDATA #IMPLIED
                 cond       (true | false) "true"
                 label CDATA #IMPLIED>
<!-- end cookie validator -->

<!ELEMENT goldenFile EMPTY>
<!ATTLIST goldenFile fileName         CDATA          #REQUIRED
                      ignoreWhitespace (true | false) "false"
                      label            CDATA          #IMPLIED>

<!ELEMENT maxRequestTime EMPTY>
<!-- defaults to 30 seconds -->
<!ATTLIST maxRequestTime millis CDATA "30000"
                           label  CDATA #IMPLIED>

<!ELEMENT regexp EMPTY>
<!ATTLIST regexp pattern    CDATA          #REQUIRED
                 cond       (true | false) "true"
                 ignoreCase (true | false) "false"
                 label      CDATA          #IMPLIED>

<!-- 
  if you omit the headerValue, Latka assumes that you
  simply want to make sure the header exists 
-->
<!ELEMENT responseHeader EMPTY>
<!ATTLIST responseHeader headerName  CDATA #REQUIRED
                         headerValue CDATA #IMPLIED
                         cond       (true | false) "true"
                         label       CDATA #IMPLIED>

<!ELEMENT statusCode EMPTY>
<!ATTLIST statusCode code  CDATA "200"

 =======================================================================
 ==src/distribution/tests/latka-self-test/TestLatka.xml
 =======================================================================
 <?xml version="1.0" standalone="no"?>
<!DOCTYPE suite SYSTEM "../../conf/suite.dtd">
<suite defaultHost="${defaultHost}" defaultPort="${defaultPort}" 
    label="Latka self-diagnostics">

  <!-- 
    functional tests that Latka can run on itself,
    using JSPs included in the Latka webapp.
    You can actually run this test from the web interface
    to have the webapp test its own jar.  :)
  -->

  <!-- START STATUS CODE CHECKS -->
  
  <!-- request should return a '200' -->
  <request path="${latkaContext}/self-test/snoop/RequestHeaders.jsp" label="status code">
    <validate>
      <statusCode/>
      <statusText text='OK'/>
    </validate>
  </request>
    
  <!-- END STATUS CODE CHECKS -->
  
  <!-- START "HEAD" CHECKS -->
    
  <request method="head" path="${latkaContext}/self-test/snoop/RequestHeaders.jsp" 
      label="make sure that head requests succeed, but has no content">
    <validate>
      <statusCode />
      <byteLength min="-1" max="-1"/> 
    </validate>
  </request>
  
  <!-- END "HEAD" CHECKS -->         

  <!-- START HEADER CHECKS -->
  <session>
    
    <!-- first request should not set a referer -->
    <request path="${latkaContext}/self-test/snoop/RequestHeaders.jsp" label="no referer 1">
      <validate>
        <regexp pattern="referer" cond="false"/>
      </validate>
    </request>

    <!-- second should refer to the first -->
    <request path="${latkaContext}/self-test/snoop/RequestHeaders.jsp" label="referer">
      <validate>
        <regexp pattern="referer:"/>

 =======================================================================
 ==src/distribution/tests/latka-self-test/TestLatkaOptional.xml
 =======================================================================
 <?xml version="1.0" standalone="no"?>
<!DOCTYPE suite SYSTEM "../../conf/suite.dtd">
<suite defaultHost="${defaultHost}" defaultPort="${defaultPort}" 
    label="Latka self-diagnostics for optional taks">

  <!-- START XPATH TESTS -->
  
  <request path="${latkaContext}/self-test/xpath/TestMeWithXPath.xml">
      <validate>
        <xpath select="doc/element" label="test for existence of first element"/>
        <!-- misspellings are false -->
        <xpath select="doc/elemente" label="test for missing node" cond="false"/>
        <xpath select="doc/element/@attribute = 'foo'" label="boolean xpath att true 1"/>
        <!-- also true, the second 'element' element -->
        <xpath select="doc/element/@attribute = 'bar'" label="boolean xpath att true 2"/>
        <xpath select="doc/element/@attribute = 'bara'" cond="false" 
            label="boolean xpath att false"/>
        <xpath select="doc/element2/@attribute = 'foo'" label="boolean xpath element2 att"/>
        
        <!-- alternate syntax -->   
        <xpath select="string(doc/element/@attribute)" value="foo" label="value test true 1"/>
        <!-- only the first element's attribute counts -->
        <xpath select="string(doc/element/@attribute)" value="bar" cond="false" 
            label="value test true 1"/>
        <xpath select="string(doc/element2/@attribute)" value="foo" label="value test true 2"/>
        
        <!-- are attributes supposed to fail like this? -->
        <xpath select="doc/element/@attribute" value="foo" cond="false"
            label="value test true 1"/>
        <xpath select="doc/element2/@attribute" value="foo" cond="false"
            label="boolean xpath element2 att"/>
        
        <!-- now boolean tests -->
        <xpath select="count(doc/element) = 2" label="element count"/>
        <xpath select="count(doc/element) = 3" cond="false"
            label="element count false"/>
        
      </validate>
  </request>
  
  <!-- END XPATH TESTS -->

</suite>

 =======================================================================
 ==src/distribution/tests/samples/TestCommonsWebsite.xml
 =======================================================================
 <?xml version="1.0" standalone="no"?>
<!DOCTYPE suite SYSTEM "../../conf/suite.dtd">

<suite defaultHost="jakarta.apache.org" label="Taglibs">

  <!-- confirm that docs for all Apache Commons components are present -->

  <request path="/commons" label="home page">
    <validate>
      &commonValidations;
      <regexp pattern="Welcome to the Commons!"/>
    </validate>
  </request>

  <request path="/commons/beanutils.html" label="BeanUtils">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/commons/cactus/index.html" label="Cactus">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/commons/collections.html" label="Collections">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/commons/digester/index.html" label="Digester">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/commons/dbcp/index.html" label="DBCP">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/commons/httpclient/index.html" label="HTTPClient">
    <validate>
      &commonValidations;
    </validate>
  </request>


 =======================================================================
 ==src/distribution/tests/samples/TestTaglibsWebsite.xml
 =======================================================================
 <?xml version="1.0" standalone="no"?>
<!DOCTYPE suite SYSTEM "../../conf/suite.dtd">
<suite defaultHost="jakarta.apache.org" label="Tablibs">

  <!-- confirm that docs for all Jakarta Taglibs are present -->

  <request path="/taglibs" label="home page">
    <validate>
      &commonValidations;
      <regexp pattern="Welcome to Jakarta Taglibs!"/>
    </validate>
  </request>

  <request path="/taglibs/doc/application-doc/intro.html" label="Application Taglib">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/taglibs/doc/benchmark-doc/intro.html" label="Benchmark Taglib">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/taglibs/doc/bsf-doc/intro.html" label="BSF Taglib">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/taglibs/doc/datetime-doc/intro.html" label="DateTime Taglib">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/taglibs/doc/dbtags-doc/intro.html" label="DBTags Taglib">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/taglibs/doc/i18n-doc/intro.html" label="I18N Taglib">
    <validate>
      &commonValidations;
    </validate>
  </request>

  <request path="/taglibs/doc/input-doc/intro.html" label="Input Taglib">

 =======================================================================
 ==src/distribution/tests/watchdog/WatchdogJSPSuite.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<suite defaultHost="${host}" defaultPort="${port}">
  <!--START converted ant target: main-->
  <!--END converted ant target-->
  <!-- ==================== Watchdog JSP tests ==================== -->
  <!--START converted ant target: jsp-test-->
  <!-- START directives_page_content -->
  <request followRedirects="false" path="/jsp-tests/jsp/core_syntax/directives/page/content/positiveContenttype.jsp" label="positiveContentTypeTest">
    <validate>
      <!--TEST STRATEGY: Using the page directive, set the  contentType attribute to 'text/plain;charset\=ISO-8859-1'. Verify on the client side that the  Content-Type header was properly set in the  response.-->
      <responseHeader headerName="Content-Type" headerValue="text/plain;charset=ISO-8859-1" label="When the contentType attribute of the page  directive is specified, it will set the character encoding and MIME type in the response to the client. JavaServer Pages Specification v1.2, Sec. 2.10.1" />
    </validate>
  </request>
  
  <request followRedirects="false" path="/jsp-tests/jsp/core_syntax/directives/page/content/negativeDuplicateContentFatalTranslationError.jsp" label="negativeDuplicateContentFatalTranslationErrorTest">
    <validate>
      <!--TEST STRATEGY: Declare a page directive with contentType attributes specified.-->
      <statusCode code="500" label="Duplicate contentType attribute/values within a given translation unit shall result in a fatal translation error. JavaServer Pages Specification v1.2, Sec. 2.10.1" />
    </validate>
  </request>
  
  <!-- STOP directives_page_content -->
  <!-- START directives_page_extend -->
  <request followRedirects="false" path="/jsp-tests/jsp/core_syntax/directives/page/extend/positiveExtends.jsp" label="positiveExtendsTest">
    <validate>
      <!--TEST STRATEGY: Provide the extends attribute with a fully qualified class.  The resulting JSP implementation class will use instanceof to validate that this page instance is an instance of the class that it extends.-->
      <goldenFile fileName="${wgdir}/core_syntax/directives/page/extend/positiveExtends.html" ignoreWhitespace="true" label="The extends attribute of the page directive identifies a fully qualfied class name into which the JSP page transformed. JavaServer Pages Specification v1.2, Sec. 2.10.1" />
    </validate>
  </request>
  
  <request followRedirects="false" path="/jsp-tests/jsp/core_syntax/directives/page/extend/negativeDuplicateExtendsFatalTranslationError.jsp" label="negativeDuplicateExtendsFatalTranslationErrorTest">
    <validate>
      <!--TEST STRATEGY: Declare a page directive with two extends attributes. Validate that a fatal translation error occurs.-->
      <statusCode code="500" label="Duplicate extends attributes within a given translation unit shall result in a fatal translation error. JavaServer Pages Specification v1.2, Sec. 2.10.1" />
    </validate>
  </request>
  
  <!-- STOP directives_page_extend -->
  <!-- START directives_page_errorpage -->
  <request followRedirects="false" path="/jsp-tests/jsp/core_syntax/directives/page/errorpage/positiveDefaultIsErrorPage.jsp" label="positiveDefaultIsErrorPageTest">
    <validate>
      <!--TEST STRATEGY: Verify that the 'isErrorPage' attribute is false by  generating an exception in the called page and then have the error page attempt to access the implicit exception object.-->
      <statusCode code="500" label="The default value of the 'isErrorPage' attribute is false.  JavaServer Pages Specification v1.2, Sec. 2.10.1" />
    </validate>
  </request>
  
  <request followRedirects="false" path="/jsp-tests/jsp/core_syntax/directives/page/errorpage/positiveErrorPage.jsp" label="positiveErrorPageTest">
    <validate>
      <!--TEST STRATEGY: In the initial JSP page, generate a java.lang.Arithmetic Exception by dividing an int value by 0.  Validate the Exception type by using instanceof against the exception object.-->
      <goldenFile fileName="${wgdir}/core_syntax/directives/page/errorpage/positiveErrorPage.html" ignoreWhitespace="true" label="When the isErrorPage attribute is set to true, the implicit exception object will be available and its value is a reference to the offending throwable from the source JSP page in error.  JavaServer Pages Specification v1.2, Sec 2.10.1" />

 =======================================================================
 ==src/distribution/tests/watchdog/WatchdogServletSuite.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<suite defaultHost="${host}" defaultPort="${port}">
  <!--START converted ant target: main-->
  <!--END converted ant target-->
  <!-- ====================== Watchdog Servlet Tests ====================== -->
  <!-- BEGIN javax_servlet_Filter -->
  <!--START converted ant target: gtestservlet-test-->
  <request followRedirects="false" path="/servlet-tests/DoFilterTest" label="DoFilterTest">
    <validate>
      <!--TEST STRATEGY: Client attempts to access a servlet and the filter configured for that servlet should be invoked.-->
      <goldenFile fileName="${wgdir}/javax_servlet/Filter/DoFilterTest.html" ignoreWhitespace="true" label="The doFilter method of the Filter is called by the container each time a request/response pair is passed through the stack due to a client request for the Servlet in the stack, specified in the Java Servlet Pages Specification v2.3, Sec 14 - javax.servlet.Filter.doFilter method" />
    </validate>
  </request>
  
  <request followRedirects="false" path="/servlet-tests/InitFilterConfigTest" label="InitFilterConfigTest">
    <validate>
      <!--TEST STRATEGY: Client attempts to access a servlet and the filter configured for that servlet.-->
      <goldenFile fileName="${wgdir}/javax_servlet/Filter/InitFilterConfigTest.html" ignoreWhitespace="true" label="The container calls this method when the Filter is instantiated and passes in a FilterConfig object. specified in the Java Servlet Pages Specification v2.3, Sec 14 - javax.servlet.setFilter method" />
    </validate>
  </request>
  
  <!-- END javax_servlet_Filter -->
  <!-- BEGIN javax_servlet_Servlet -->
  <request followRedirects="false" path="/servlet-tests/DoDestroyedTest" label="DoDestroyedTest">
    <validate>
      <!--TEST STRATEGY: Testing that destroy method is not called during service method execution-->
      <goldenFile fileName="${wgdir}/javax_servlet/Servlet/DoDestroyedTest.html" ignoreWhitespace="true" label="Called by the servlet container to indicate to a servlet that the servlet is being taken out of service, specified in the Java Servlet Pages Specification v2.3, Sec 14 - javax.servlet.Servlet.destroy() method" />
    </validate>
  </request>
  
  <request followRedirects="false" path="/servlet-tests/DoInit1Test" label="DoInit1Test">
    <validate>
      <!--TEST STRATEGY: A negative test for the init method. We will throw UnavailableException from inside init.The Servlet should not be initialized-->
      <statusCode code="503" label="Called by the servlet container to indicate to a servlet that the servlet is being placed into service., specified in the Java Servlet Pages Specification v2.3, Sec 14 - javax.servlet.Servlet.init() method" />
    </validate>
  </request>
  
  <request followRedirects="false" path="/servlet-tests/DoInit2Test" label="DoInit2Test">
    <validate>
      <!--TEST STRATEGY: Inside CoreServletTest, which is the parent servlet, we are implementing init() and setting a boolean variable to true. We'll check for the variables here in the DoInit2Test-->
      <goldenFile fileName="${wgdir}/javax_servlet/Servlet/DoInit2Test.html" ignoreWhitespace="true" label="Called by the servlet container to indicate to a servlet that the servlet is being placed into service., specified in the Java Servlet Pages Specification v2.3, Sec 14 - javax.servlet.Servlet.init() method" />
    </validate>
  </request>
  
  <request followRedirects="false" path="/servlet-tests/DoServletConfigTest" label="DoServletConfigTest">
    <validate>
      <!--TEST STRATEGY: Create a servlet and test for the getServletConfig() method to be a non-null value and an initial paramter can be retrieved-->
      <goldenFile fileName="${wgdir}/javax_servlet/Servlet/DoServletConfigTest.html" ignoreWhitespace="true" label="Returns a ServletConfig object, which contains initialization and startup parameters for this servlet., specified in the Java Servlet Pages Specification v2.3, Sec 14 - javax.servlet.Servlet.getServletConfig() method" />
    </validate>
  </request>

 =======================================================================
 ==src/docbook/developers-guide.xml
 =======================================================================
 <?xml version="1.0"?>

<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

<!--
    Author:     dIon Gillard
    Version:    $Id: developers-guide.xml 155424 2005-02-26 13:09:29Z dirkv $
-->

<chapter id="users-guide">
    <title>Latka Developers's Guide</title>
    
    <section id="introduction">
        <title>Introduction</title>
        <para>These are informal notes gathered as I've started working
on <ulink url="index.html">Latka</ulink>. Hopefully they will make sense to
those coming after me, and possibly clarify the current state for the existing
        </para>
    </section>
    <section id="coding-style">
        <title>Coding Style</title>
        <para>
         Like most Jakarta projects, the Latka code base essentially follows the 
         Sun/K&amp;R style with one major exception: private and protected member 
         variables begin with an underscore, for example, 
         <programlisting>boolean _requestSucceeded;</programlisting>
         instead of 
         <programlisting>boolean requestSucceeded;</programlisting>.
        </para>
        <para>
         Javadoc on classes and methods is not yet complete. Feel free to help out here :-)
        </para>
    </section>
    
    <section id="general-practices">
        <title>General Practices</title>
        
        <para>Here are some of the development practices of the Latka team</para>
        
        <itemizedlist>
            <listitem><para>Before committing any changes, run a cvs diff to
ensure unexpected changes are not being introduced</para>
            </listitem>
            <listitem><para>Before committing java source code changes, do a
clean build of the project to ensure all code still compiles. Run all testcases
to ensure the code isn't broken. Run the checkstyle task to ensure code meets
the project's current standards</para>
            </listitem>
            <listitem><para>Before committing changes to the web pages:
                <orderedlist>

 =======================================================================
 ==src/docbook/index.xml
 =======================================================================
 <?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">


<!--
    Author:     Morgan Delagrange
    Version:    $Id: index.xml 561366 2007-07-31 15:58:29Z rahul $
-->
<chapter id="latka">
    <chapterinfo>
        <authorgroup>
            <author>
                <firstname>Morgan</firstname>
                <surname>Delagrange</surname>
                <affiliation>
                    <address>
                        <email>mdelagra@yahoo.com</email> 
                    </address>
                </affiliation>
            </author>
        </authorgroup>
    </chapterinfo>
    <title>Latka (Version 1.0 Alpha 2)</title>

    <section>
        <title>Other Documentation</title>
        <para>See the <ulink url="xml-reference.html">XML Reference</ulink>,
<ulink url="users-guide.html">User's Guide</ulink> and 
<ulink url="apidocs/index.html">API Docs</ulink> for more detailed information.
        </para>
    </section>
    <section>
      <title>What is Latka?</title>
      <para>
         <firstterm>Latka</firstterm> is a functional (end-to-end) testing
         tool. It is implemented in Java, and uses an XML syntax to define
         a series of HTTP (or HTTPS) requests and a set of
         <firstterm>validations</firstterm> used to verify that the request
         was processed correctly.
      </para>
      <remark>
         Although Latka currently supports only HTTP and HTTPS
         request/response validations, it may be expanded to perform other
         sorts of functional testing as warranted.
      </remark>
      <para>
         A simple example of a Latka XML test suite is shown in our 
         <ulink url="http://cvs.apache.org/viewcvs/jakarta-commons/latka/tests/samples/TestCommonsWebsite.xml">
         sample Latka test suite</ulink>.

 =======================================================================
 ==src/docbook/proposal.xml
 =======================================================================
 <?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">


<!--
    Author:     Morgan Delagrange
    Author:     Doug Sale
    Author:     Rodney Waldhoff
    Version:    $Id: proposal.xml 155424 2005-02-26 13:09:29Z dirkv $
 -->
 
<chapter id="proposal">
    <chapterinfo>
        <authorgroup>
            <author><firstname>Morgan</firstname><surname>Delagrange</surname>
                <affiliation><address><email>mdelagra@yahoo.com</email></address></affiliation>
            </author>
            <author><firstname>Doug</firstname><surname>Sale</surname>
                <affiliation><address><email>dsale@us.britannica.com</email></address></affiliation>
            </author>
            <author><firstname>Rodney</firstname><surname>Waldhoff</surname>
                <affiliation><address><email>rwaldhof@us.britannica.com</email></address></affiliation>
            </author>
        </authorgroup>
    </chapterinfo>
    
    <title>Proposal for Latka Package</title>
    
    <section>
        <title>(0) Rationale</title>
        <para>Testing websites is a pain.  Many regression tests for a website can
be verified automatically, speeding up the quality assurance process and
allowing the engineers to focus on the more important issues.  Additionally 
developers may want to monitor their development, QA and production environment,
so that they can be sure that everything is running as they expect.</para>

        <para>Latka is an HTTP functional testing suite for automated QA.  Latka
 suites are XML documents, which can be written and/or modified without writing 
Java code.  Latka tests can be created quickly and modified easily, even by 
engineers without Java experience.</para>
    </section>
    
    <section>
        <title>(1) Scope of the Package</title>
            <para>The <emphasis>Latka</emphasis> project shall develop an 
XML-based syntax for HTTP-based functional tests.  Latka will support, at the
least, SSL communication and cookies.</para>

            <para>Included within Latka are classes that simulate a user agent. 

 =======================================================================
 ==src/docbook/release-plan-1.0.xml
 =======================================================================
 <?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">


<!--
     Author:     dIon Gillard
    Version:    $Id: release-plan-1.0.xml 561917 2007-08-01 19:03:11Z dennisl $
 -->
 
<chapter id="status">
    <chapterinfo>
        <authorgroup>
            <author><firstname>dIon</firstname><surname>Gillard</surname>
                <affiliation><address><email>dion@apache.org</email></address></affiliation>
            </author>
        </authorgroup>
    </chapterinfo>

    <title>Release Plan for Latka 1.0</title>
    
    <section>
        <title>Administrivia</title>
        <para>This document describes a plan for a 1.0 release of the
Jakarta-Commons Latka component (for the remainder of this document, simply 
"Latka").</para>
        <para>As per the
<ulink url="http://jakarta.apache.org/site/decisions.html">
Jakarta/ASF guidelines</ulink>, this document doesn't mean anything until 
accepted by the relevant committer community via a lazy majority vote 
(hereafter, simply "lazy majority").  Once accepted, it may be replaced by an 
alternative plan, again subject to lazy majority approval.</para>
        <para>Non-binding votes (votes cast by those outside the relevant
committer community) are welcome, but only binding votes are significant for
decision making purposes.</para>
    </section>
    
    <section><title>Objective</title>
        <para>The objective of the 1.0 release of Latka is to provide a stable
and robust release focused on design clarity, forward compatibility, and ease
of use (i.e., with the intention of providing a stable foundation for the 
further evolution of the Latka component).</para>
        <para>Specifically, the 1.0 release seeks to
introduce and evaluate changes based upon the following
(ordered) criteria:
            <itemizedlist>
                <listitem><para>Freedom from defects (deviation from the 
documented or reasonably expected behavior)</para></listitem>
                <listitem><para>Interface and design consistency and clarity, 
ease-of-use, and ease-of-extension.</para></listitem>

 =======================================================================
 ==src/docbook/status.xml
 =======================================================================
 <?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">


<!--
    Author:     Morgan Delagrange
    Author:     Doug Sale
    Author:     Rodney Waldhoff
    Author:     dIon Gillard
    Version:    $Id: status.xml 561366 2007-07-31 15:58:29Z rahul $
 -->
 
<chapter id="status">
    <chapterinfo>
        <authorgroup>
            <author><firstname>Morgan</firstname><surname>Delagrange</surname>
                <affiliation><address><email>mdelagra@yahoo.com</email></address></affiliation>
            </author>
            <author><firstname>Doug</firstname><surname>Sale</surname>
                <affiliation><address><email>dsale@us.britannica.com</email></address></affiliation>
            </author>
            <author><firstname>Rodney</firstname><surname>Waldhoff</surname>
                <affiliation><address><email>rwaldhof@us.britannica.com</email></address></affiliation>
            </author>
            <author><firstname>dIon</firstname><surname>Gillard</surname>
                <affiliation><address><email>trongus@yahoo.com</email></address></affiliation>
            </author>
        </authorgroup>
    </chapterinfo>

    <title>Status File for Apache Commons "Latka" Application</title>
    
    <section>
        <title>INTRODUCTION</title>

        <para>Testing websites is a pain.  Many regression tests for a website can 
        be verified automatically, speeding up the quality assurance process 
        and allowing the engineers to focus on the more important issues.  
        Additionally developers may want to monitor their development, QA 
        and production environment, so that they can be sure that everything
        is running as they expect.</para>

        <para>Latka is an HTTP functional testing suite for automated QA, acceptance and 
        regression testing.  Latka suites are XML documents, which
        can be written and/or modified without writing Java code.  Latka tests can be 
        created quickly and modified easily, even by engineers without Java experience.</para>
    </section>
    
    <section>

 =======================================================================
 ==src/docbook/users-guide.xml
 =======================================================================
 <?xml version="1.0"?>

<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

<!--
    Author:     dIon Gillard
    Version:    $Id: users-guide.xml 561366 2007-07-31 15:58:29Z rahul $
-->

<chapter id="users-guide">
    <title>Latka User's Guide</title>
    <!-- taken directly from index.xml -->
    <section id="introduction">
        <title>What is <firstterm>Latka</firstterm></title>
        <para>Latka is a functional (end-to-end) testing tool. It is implemented
        in Java, and uses an XML syntax to define a series of HTTP (or HTTPS) 
        requests and a set of <firstterm>validations</firstterm> used to verify
        that the request was processed correctly.
        </para>
        <remark>
         Although Latka currently supports only HTTP and HTTPS
         request/response validations, it may be expanded to perform other
         sorts of functional testing as warranted.
        </remark>
        <para>
         A simple example of a Latka XML test suite is shown in our 
         <ulink url="http://cvs.apache.org/viewcvs/jakarta-commons/latka/tests/samples/TestCommonsWebsite.xml">
         sample Latka test suite</ulink>.
         When processed, this example would verify that the Apache Commons 
         homepage is present and that all the Commons Components have online
         documenation. 
        </para>
    </section>
    
    <section id="run-latka">
        <title>Running Latka</title>
        <para>A Latka test suite can be run:
            <itemizedlist>
                <listitem><para>From a command prompt</para></listitem>
                <listitem><para>From the Latka web application</para></listitem>
                <listitem><para>From a JUnit TestRunner</para></listitem>
            </itemizedlist>
            <remark>To run Latka as an ant task, we suggest you use the JUnit
support of ant and write a small test case to invoke Latka, as discussed later</remark>
        </para>
        
        <section id="run-latka-cmd">
            <title>Running Latka from the command prompt</title>
            <para>There are two scripts (or batch files) shipped with latka:
            <orderedlist>

 =======================================================================
 ==src/docbook/xml-reference.xml
 =======================================================================
 <?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">


<!--
    Author:     Morgan Delagrange
    Version:    $Id: xml-reference.xml 155424 2005-02-26 13:09:29Z dirkv $
-->
<chapter id="xml-reference">
    <chapterinfo>
        <authorgroup>
            <author>
                <firstname>Morgan</firstname>
                <surname>Delagrange</surname>
                <affiliation>
                    <address>
                        <email>mdelagra@yahoo.com</email> 
                    </address>
                </affiliation>
            </author>
        </authorgroup>
    </chapterinfo>
    <title>Latka XML Reference</title>
   <section>
      <title>Latka XML Reference</title>

      <!-- REFENTRY: byteLength -->
      <section id="latka.ref.byteLength" xreflabel="byteLength">
         <title>byteLength</title>
         <para>
            validates the length of an HTTP(S) response
         </para>
         <section>
            <title>DTD</title>
            <programlisting>&lt;!ELEMENT byteLength EMPTY&gt;
&lt;!ATTLIST byteLength min   CDATA "0"
                     max   CDATA #IMPLIED
                     label CDATA #IMPLIED&gt;</programlisting>
         </section>
         <section>
            <title>Attributes</title>
            <informaltable colsep="1" rowsep="1">
               <tgroup cols="4">
                  <colspec colwidth="1in"/>
                  <colspec colwidth="1in"/>
                  <colspec colwidth="1in"/>
                  <colspec colwidth="2in"/>
                  <thead>
                     <row>

 =======================================================================
 ==src/resources/latka.properties
 =======================================================================
 # User defined default properties for each test.  
# These properties can be overridden on the command line. 
# Some example properties:
# defaultHost=localhost
# defaultPort=8080

 =======================================================================
 ==src/resources/latka.properties.internal
 =======================================================================
 latka.validator.byteLength=org.apache.commons.latka.validators.ByteLengthHandler
latka.validator.regexp=org.apache.commons.latka.validators.RegexpHandler
latka.validator.statusCode=org.apache.commons.latka.validators.StatusCodeHandler
latka.validator.statusText=org.apache.commons.latka.validators.StatusTextHandler
latka.validator.maxRequestTime=org.apache.commons.latka.validators.MaxRequestTimeHandler
latka.validator.cookie=org.apache.commons.latka.validators.CookieHandler
latka.validator.responseHeader=org.apache.commons.latka.validators.ResponseHeaderHandler
latka.validator.goldenFile=org.apache.commons.latka.validators.GoldenFileHandler
latka.validator.xpath=org.apache.commons.latka.validators.XPathHandler

latka.writeLog=true


 =======================================================================
 ==src/resources/log4j.properties
 =======================================================================
 ######################################
# Configure the log4j logging system
######################################

# Set the root output level and appenders
log4j.rootCategory=WARN,consoleAppender

# Create an appender that prints to the console
log4j.appender.consoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.consoleAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.consoleAppender.layout.ConversionPattern=%-5p [%t] %c - %m: %d{DATE}\n

 =======================================================================
 ==src/resources/org.apache.commons.latka.identityTransform.xsl
 =======================================================================
 <?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="*|@*|comment()|processing-instruction()|text()"> 
    <xsl:copy> 
      <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
    </xsl:copy> 
  </xsl:template> 

</xsl:stylesheet>

 =======================================================================
 ==src/resources/org.apache.commons.latka.report.xsl
 =======================================================================
 <?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="text" indent="no"/>
   <xsl:strip-space elements="*"/>

   <xsl:template match="/">
     <xsl:text>&#x0A;</xsl:text>
     <xsl:apply-templates/>
     <xsl:text>&#x0A;</xsl:text>
     Thank you very much.
     <xsl:text>&#x0A;</xsl:text>
   </xsl:template>     

   <xsl:template match="report">
      <xsl:text>&#x0A;</xsl:text>
      <xsl:apply-templates select="//request[not(requestSuccess)] | reportMessage"/>
      <!-- <xsl:apply-templates select="//request"/> -->
      <xsl:text>&#x0A;</xsl:text>
      <xsl:call-template name="summary"/>
      <xsl:text>&#x0A;</xsl:text>
   </xsl:template>

   <xsl:template name="summary">
      <xsl:choose>
         <xsl:when test="/report/@suiteSuccess = 'true'">SUITE SUCCEEDED</xsl:when>
         <xsl:otherwise>SUITE FAILED</xsl:otherwise>
      </xsl:choose>
      <xsl:text>&#x0A;</xsl:text>
      <xsl:value-of select="count(//request)"/><xsl:text> requests.</xsl:text>
      <xsl:text>&#x0A;</xsl:text>
      <xsl:value-of select="count(//request/requestSuccess)"/><xsl:text> passed.</xsl:text>
      <xsl:text>&#x0A;</xsl:text>
      <xsl:value-of select="count(//request/requestFailure)"/><xsl:text> failed.</xsl:text>
      <xsl:text>&#x0A;</xsl:text>
      <xsl:value-of select="count(//request/requestSkipped)"/><xsl:text> skipped.</xsl:text>
      <xsl:text>&#x0A;</xsl:text>
      <xsl:value-of select="count(//request/requestError)"/><xsl:text> errors.</xsl:text>
   </xsl:template>
   
   <xsl:template match="reportMessage">
      <xsl:text>[message] </xsl:text><xsl:value-of select="@message"/>
      <xsl:text>&#x0A;&#x0A;</xsl:text>
   </xsl:template>

   <xsl:template match="request">
      <xsl:value-of select="@url"/> <xsl:call-template name="label"/>
      <xsl:text>&#x0A;</xsl:text>
      <xsl:apply-templates>
        <xsl:with-param name="timing">

 =======================================================================
 ==src/test/org/apache/commons/latka/jelly/suiteTag.jelly
 =======================================================================
 <?xml version="1.0"?>
<test:suite xmlns:j="jelly:core" xmlns:test="jelly:junit" 
  xmlns="jelly:org.apache.commons.latka.jelly.LatkaTagLibrary">

  <test:case name="testSuiteListener">
     
    <j:new className="org.apache.commons.latka.XMLReporter" 
      var="latkaEventListener"/>
    
    <suite>
      <test:assert test="${latkaEventListener != null}">
        Suite should contain the event listener.
      </test:assert>
    </suite>
        
  </test:case>
  

  <test:case name="testSuiteSettingsAllNull">
     
    <j:new className="org.apache.commons.latka.XMLReporter" 
      var="latkaEventListener"/>
    <suite>
      <test:assert test="${latkaSuiteSettings != null}">
        Suite should contain the suite settings.
      </test:assert>
      <test:assert test="${latkaSuiteSettings.defaultHost != null}">
        expected null host, got ${latkaSuiteSetttings}"
      </test:assert>       
      <test:assert test="${latkaSuiteSettings.defaultPort == 1}">
        expected port -1, got ${latkaSuiteSetttings.getDefaultPort()}
      </test:assert>       
    
    </suite>
    <test:assert test="${latkaSuiteSettings == null}">
      Suite should remove the suite settings after the end tag.
    </test:assert>
    
  </test:case>

</test:suite>

 =======================================================================
 ==src/test/org/apache/commons/latka/jelly/testLatka.jelly
 =======================================================================
 <?xml version="1.0"?>
<test:suite xmlns:j="jelly:core" xmlns:test="jelly:junit" 
  xmlns="jelly:org.apache.commons.latka.jelly.LatkaTagLibrary">

  <test:case name="testExampleDotOrg">
     
    <suite defaultHost="example.org" defaultPort="80">

<session>      

<reportMessage message="boo1"/>

      <request path="/" host="example.net">
        <validate>
          <!-- <regexp pattern="These domain names are reserveded"/> -->
          <regexp pattern="These domain names are reserved"/>
        </validate>
      </request>


<reportMessage message="boo2"/>

      <request path="/">
        <validate>
          <!-- <regexp pattern="These domain names are reserved"/> -->
          <regexp pattern="These domain names are reserved"/>
          <statusCode/>
        </validate>
      </request>
      

</session>


<reportMessage message="boo3"/>
      
      <request path="/" host="example.net">
        <validate>
          <!-- <regexp pattern="These domain names are reserved"/> -->
          <regexp pattern="These domain names are reserved"/>
        </validate>
      </request>


    </suite>        
    
  </test:case>

</test:suite>

 =======================================================================
 ==src/webapps/latka-webapp/build.xml
 =======================================================================
 <!-- $Id: build.xml 561366 2007-07-31 15:58:29Z rahul $ -->
<project name="commons-latka" default="test" basedir=".">

   <!-- patternset describing files to be copied from the doc directory -->
   <patternset id="patternset-doc"/>

   <!-- patternset describing non test source files (*.java, *html, etc.) -->
   <patternset id="patternset-javadocable-sources">
      <include name="**/*"/>
      <exclude name="**/Test*.java"/>
   </patternset>

   <!-- ######################################################### -->

   <target name="init">
      <tstamp/>

      <!-- read properties from the build.properties, if any -->
      <property name="latka-propfile" value="${basedir}/../build.properties"/>
      <property file="${latka-propfile}"/>

      <!-- read properties from the commons build.properties, if any -->
      <property name="commons-propfile" value="${basedir}/../../../build.properties"/>
      <property file="${commons-propfile}"/>

      <!-- read properties from the ${user.home}/propfile, if any -->
      <property name="user-propfile" value="${user.home}/build.properties"/>
      <property file="${user-propfile}"/>

      <!-- command line classpath, if any -->
      <property name="cp" value=""/>

      <!-- now combine the classpaths -->
      <property name="classpath" value="${cp}:${servlet.jar}:${latka.jar}:${log4j.jar}"/>
      
      <property name="name" value="commons-latka-webapp"/>
      <property name="Name" value="Commons-Latka-Webapp"/>
      <property name="Name-Long" value="Apache Commons Latka Web Application"/>
      
      <property name="workdir" value="${java.io.tmpdir}/buildtemp_${DSTAMP}${TSTAMP}"/>
      <property name="source" value="${basedir}"/>
      <property name="source.webapp" value="${basedir}/webapp"/>
      <property name="source.src" value="${basedir}/src"/>
      <property name="source.doc" value="${basedir}/doc"/>
      <property name="dest" value="${basedir}/dist"/>
      <property name="dest.webapp" value="${dest}/webapp"/>
      <property name="dest.webapp.webinf" value="${dest}/webapp/WEB-INF"/>
      <property name="dest.webapp.lib" value="${dest.webapp.webinf}/lib"/>
      <property name="dest.classes" value="${dest.webapp.webinf}/classes"/>
      <property name="dest.doc" value="${dest}/docs"/>

 =======================================================================
 ==src/webapps/latka-webapp/DefaultLatkaSuite.jsp
 =======================================================================
 <%@ page contentType="text/xml" %><%--

--%><?xml version="1.0"?>
<suite defaultHost="${defaultHost}" defaultPort="${defaultPort}"
    label="Latka manual test">
  
  <!-- place requests here -->

</suite>



 =======================================================================
 ==src/webapps/latka-webapp/Header.jsp
 =======================================================================
 
<table width="100%">
  <tr>
    <td align="left"><h2>Latka</h2></td>
        
    <td align="right" valign="top"><a href="<%= request.getContextPath() %>">Home</a></td>
  </tr>
</table>

<hr color="green">

 =======================================================================
 ==src/webapps/latka-webapp/index.jsp
 =======================================================================
 <jsp:include page="Header.jsp" flush="true"/>

<p>
  <b>Choose from this list of options:</b>
</p>

<p>
  <ul>
    <li><a href="TestMenu.jsp">Run a test from the server</a></li>
    <li><a href="TestForm.jsp">Enter a test manually</a></li>
    <li>
  <form method="post" action="ProcessTestURL.jsp">
  Run a test at this URL: 
    <input type="text" name="url" size="30">
    <input type="submit" value="Run Test">
      <jsp:include page="ValidateXML.jsp" flush="true"/>
  </form>
    </li>
  </ul>
  
</p>

<p><a href="help/index.jsp"></a><u>Help</u></p>

 =======================================================================
 ==src/webapps/latka-webapp/ProcessTestBody.jsp
 =======================================================================
 <%@ page import="java.util.Iterator" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" 
    prefix="latka" %>

   <latka:findVariables id="set">
      <%= request.getParameter("testBody") %>
   </latka:findVariables>

<%
   Iterator i = set.iterator();

   if (i.hasNext() == false) {
%>
      <jsp:forward page="RunTestBody.jsp"/>
<% } %>

<jsp:include page="Header.jsp" flush="true"/>

<p>These variables must be set before running the test:</p>

<latka:sessionProperties id="props"/>

<form method="post" action="SetProperties.jsp">

<% while (i.hasNext()) { 
     String property = (String) i.next(); %>

<p>
  <%= property %>: 
  <input type="text" name="latka.property.<%= property %>" 
    size="30" value="<%= props.getProperty(property, "[no default value]") %>">
</p>

<% } %>
<p><input type="submit" value="Set variables and execute test"></p>

<p>Test body:<br>
<textarea NAME="testBody" ROWS="18" COLS="70">
  <%= request.getParameter("testBody") %>
</textarea>
</p> 
</form>

 =======================================================================
 ==src/webapps/latka-webapp/ProcessTestURL.jsp
 =======================================================================
 <%@ page import="java.util.Iterator" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" 
    prefix="latka" %>


<% String url = request.getParameter("url"); %>

<latka:findVariables id="set" 
  url="<%= url %>"/>
    
<% Iterator i = set.iterator();

   if (i.hasNext() == false) {
%>

<jsp:forward page="RunTestURL.jsp"/>

<% } %>

<jsp:include page="Header.jsp" flush="true"/>

<p><jsp:include page="ViewSuiteLink.jsp" flush="true"/></p>

<p>These variables must be set before running the test:</p>

<latka:sessionProperties id="props"/>

<form method="post" action="SetProperties.jsp">
<input type="hidden" name="url" value="<%= url %>">

<% while (i.hasNext()) { 
     String property = (String) i.next(); %>

<p>
  <%= property %>: 
  <input type="text" name="latka.property.<%= property %>" 
    size="30" value="<%= props.getProperty(property, "[no default value]") %>">
</p>

<% } %>
<p><input type="submit" value="Set variables and execute test"></p> 
</form>    

 =======================================================================
 ==src/webapps/latka-webapp/report.xsl
 =======================================================================
 <?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="html" indent="no"/>

   <xsl:template match="/">
     <xsl:apply-templates/>
     <p><blockquote>Thank you very much.</blockquote></p>
   </xsl:template>     

   <xsl:template match="report">
      <xsl:apply-templates select="//request[not(requestSuccess)] | reportMessage"/>
      <p><xsl:call-template name="summary"/></p>
   </xsl:template>

   <xsl:template name="summary">
      <xsl:choose>
         <xsl:when test="/report/@suiteSuccess = 'true'">
           <font color="green">SUITE SUCCEEDED</font>
         </xsl:when>
         <xsl:otherwise>
           <font color="red">SUITE FAILED</font>
         </xsl:otherwise>
      </xsl:choose>
      
      <p>
        <xsl:value-of select="count(//request)"/> requests.<br/>
        <xsl:value-of select="count(//request/requestSuccess)"/> passed.<br/>
        <xsl:value-of select="count(//request/requestFailure)"/> failed.<br/>
        <xsl:value-of select="count(//request/requestSkipped)"/> skipped.<br/>
        <xsl:value-of select="count(//request/requestError)"/> errors.
      </p>
   </xsl:template>

   <xsl:template match="reportMessage">
      <p><font color="green">[message]</font> <xsl:value-of select="@message"/></p>
   </xsl:template>

   <xsl:template match="request">
      <p>
        <xsl:call-template name="result"/><br/>
        
        <font color="blue">url:</font> <xsl:value-of select="@url"/>
        <br/>
        <font color="blue">test label:</font> <xsl:value-of select="@label"/>
        <br/>
        <xsl:apply-templates/>
      </p>
   </xsl:template>
   

 =======================================================================
 ==src/webapps/latka-webapp/RunTest.jsp
 =======================================================================
 <%@ page import="java.io.File" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" prefix="latka" %>

<jsp:include page="Header.jsp" flush="true"/>

<% if (request.getParameter("url") != null) { %>

<p><jsp:include page="ViewSuiteLink.jsp" flush="true"/></p>

<% } %>

<b>Test results:</b>

<% out.flush(); %>

<latka:sessionProperties id="props"/>

<% 
   // much rather use getResource(String) but Tomcat 
   // returns jndi urls rather than http urls
   // good for tomcat, bad for XML
   File styleFile = new File(request.getRealPath("report.xsl"));
   String styleUrl = styleFile.toURL().toString();
   String xmlValidation = props.getProperty("latka.xmlValidation", "false");
%>

<br>

<%-- execute the tests --%>
<font face="monospace">

<% if (request.getParameter("url") != null) { %>

<jsp:include page="RunTestURL.jsp" flush="true">
  <jsp:param name="styleUrl" value="<%= styleUrl %>"/>
  <jsp:param name="xmlValidation" value="<%= xmlValidation %>"/>
</jsp:include>

<% } else { %>

<jsp:include page="RunTestBody.jsp" flush="true">
  <jsp:param name="styleUrl" value="<%= styleUrl %>"/>
  <jsp:param name="xmlValidation" value="<%= xmlValidation %>"/>
</jsp:include>

<% } %>

</font>



 =======================================================================
 ==src/webapps/latka-webapp/RunTestBody.jsp
 =======================================================================
 <%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" prefix="latka" %>

<latka:sessionProperties id="props"/>

<% 
   boolean xmlValidation = 
     Boolean.valueOf(request.getParameter("xmlValidation")).booleanValue();
   String styleUrl = request.getParameter("styleUrl");
%>

<latka:executeSuite properties="props" 
    validate="<%= xmlValidation %>" 
    stylesheetUrl="<%= styleUrl %>" 
    failedResponses="failedResponses">
  <%= request.getParameter("testBody") %>
</latka:executeSuite>

<% // store away the test for when we return to the form
   props.setProperty("latka.testBody",
                     request.getParameter("testBody").trim()); 
    
   session.setAttribute("latka.failedResponses",
                       pageContext.getAttribute("failedResponses")); %>

 =======================================================================
 ==src/webapps/latka-webapp/RunTestURL.jsp
 =======================================================================
 <%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" prefix="latka" %>

<latka:sessionProperties id="props"/>

<% 
   boolean xmlValidation = 
     Boolean.valueOf(request.getParameter("xmlValidation")).booleanValue();
   String styleUrl = request.getParameter("styleUrl");
   String url = request.getParameter("url");
%>

<latka:executeSuite url="<%= url %>" properties="props" 
  validate="<%= xmlValidation %>" stylesheetUrl="<%= styleUrl %>" 
  failedResponses="failedResponses"/>
  
<% session.setAttribute("latka.failedResponses",
                        pageContext.getAttribute("failedResponses")); %>


 =======================================================================
 ==src/webapps/latka-webapp/self-test/basicAuth/Login.jsp
 =======================================================================
 Logged in

 =======================================================================
 ==src/webapps/latka-webapp/self-test/cookies/SetCookie.jsp
 =======================================================================
 <%@ page import="javax.servlet.http.Cookie" %>

<% 
   String cookieName = request.getParameter("cookieName");
   String cookieValue = request.getParameter("cookieValue");

   Cookie cookie = new Cookie(cookieName,cookieValue);

   cookie.setPath("/");
   cookie.setDomain("localhost");

   response.addCookie(cookie);

%>

Cookie added; name=<%=cookieName%>; value=<%=cookieValue%><br>
Cookie path: <%=cookie.getPath()%><br>
Cookie domain: <%=cookie.getDomain()%><br>
<br>
Cookie header set: <%=response.containsHeader("Set-Cookie")%>

 =======================================================================
 ==src/webapps/latka-webapp/self-test/redirect/ExternalRedirect.jsp
 =======================================================================
 <%
  response.sendRedirect("http://jakarta.apache.org/commons");
%>

 =======================================================================
 ==src/webapps/latka-webapp/self-test/redirect/InternalRedirect.jsp
 =======================================================================
 <% response.sendRedirect("RedirectTarget.jsp"); %>

 =======================================================================
 ==src/webapps/latka-webapp/self-test/redirect/PrintReferer.jsp
 =======================================================================
 Referer: <%=request.getHeader("Referer") %>

 =======================================================================
 ==src/webapps/latka-webapp/self-test/redirect/RedirectTarget.jsp
 =======================================================================
 Received redirect.

 =======================================================================
 ==src/webapps/latka-webapp/self-test/snoop/Cookies.jsp
 =======================================================================
 <%@ page import="javax.servlet.http.Cookie" %>

<pre>
<%
  Cookie[] cookies = request.getCookies();
  if (cookies == null) {
    return;
  }

  for (int i=0; i < cookies.length; ++i) {
%>
<%= cookies[i].getName() %>:<%= cookies[i].getValue() %>
<% } %>
</pre>

 =======================================================================
 ==src/webapps/latka-webapp/self-test/snoop/RequestHeaders.jsp
 =======================================================================
 <%@ page import="java.util.Enumeration" %>

<pre>
<% 
  Enumeration e = request.getHeaderNames();
  while (e.hasMoreElements()) { 
    String headerName = (String) e.nextElement(); 
    Enumeration f = request.getHeaders(headerName); 
    while (f.hasMoreElements()) { 
%>
<%= headerName %>:<%= f.nextElement() %>
<%
    } 
  } 
%>
</pre>

 =======================================================================
 ==src/webapps/latka-webapp/self-test/xpath/TestMeWithXPath.xml
 =======================================================================
 <?xml version="1.0"?>

<doc>

  <element attribute="foo"/>
  <element attribute="bar"/>
  
  <element2 attribute="foo"/>
  
</doc>

 =======================================================================
 ==src/webapps/latka-webapp/SetProperties.jsp
 =======================================================================
 <%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" 
    prefix="latka" %>
    
<latka:sessionProperties id="props"/>

<latka:setPropertiesFromRequest properties="props"/>

<jsp:forward page="RunTest.jsp"/>


 =======================================================================
 ==src/webapps/latka-webapp/SetTestDir.jsp
 =======================================================================
 <%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" prefix="latka" %>

<latka:sessionProperties id="props"/>

<% props.setProperty("latka.testDir",
                      request.getParameter("testDir")); %>

<jsp:forward page="TestMenu.jsp"/>

 =======================================================================
 ==src/webapps/latka-webapp/TestForm.jsp
 =======================================================================
 <%@ page contentType="text/html" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" prefix="latka" %>

<html>

<body>

<jsp:include page="Header.jsp" flush="true"/>

<p><jsp:include page="ValidateXML.jsp" flush="true"/>

<latka:sessionProperties id="props"/>

<p>Type your Latka test in this form:</p>
<form method="post" action="ProcessTestBody.jsp">

<% String testBody = props.getProperty("latka.testBody"); %>

<textarea NAME="testBody" ROWS="18" COLS="70">
<% if (testBody != null) { %><%= testBody %><% 
  } else { %><jsp:include page="DefaultLatkaSuite.jsp" flush="true"/><% } %>
</textarea>
<br>
 
<input type="submit"> 

</form>

</body>

</html>

 =======================================================================
 ==src/webapps/latka-webapp/TestMenu.jsp
 =======================================================================
 <%@ page import="java.net.URLEncoder,java.util.Date,java.text.SimpleDateFormat" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" prefix="latka" %>

<jsp:include page="Header.jsp" flush="true"/>


<latka:sessionProperties id="props"/>

<%
  String testDir = props.getProperty("latka.testDir",
                                     application.getInitParameter("latka.testDir"));
%>

<html>
<head>
</head>
<body>
<p>

  <form action="SetTestDir.jsp">
  Test directory: 
    <input type="text" name="testDir" size="60" value="<%= testDir %>">
    <input type="submit" value="Set New Test Directory">
  </form>
</p>


<p><jsp:include page="ValidateXML.jsp" flush="true"/></p>

<p>All Latka tests located in the server directory <b><%=testDir%></b>:</p>


<p>
<latka:listTests id="files" testDir="<%= testDir %>"/>

<table>
<tr>
  <th></th><th>File name</th><th>Last modified</th>
</tr>

<%
  SimpleDateFormat formatter
     = new SimpleDateFormat ("M/d/yyyy h:mm a zzz");
%>

<% for (int i = 0; i < files.length; ++i) { %>
  
<tr>
  <td>
    <% 

 =======================================================================
 ==src/webapps/latka-webapp/ToggleValidation.jsp
 =======================================================================
 <%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" prefix="latka" %>

<latka:sessionProperties id="props"/>

<% 
   props.setProperty("latka.xmlValidation",
                     request.getParameter("validate"));
   response.sendRedirect(request.getHeader("Referer"));
%>

 =======================================================================
 ==src/webapps/latka-webapp/ValidateXML.jsp
 =======================================================================
 <%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib" prefix="latka" %>

<latka:sessionProperties id="props"/>

  Validate XML?:
<%
  String xmlValidation = props.getProperty("latka.xmlValidation", "false");

  if (xmlValidation.equals("true")) { %>
    <b>On</b> <a href="ToggleValidation.jsp?validate=false">[Turn Off]</a>
  <% } else { %>
        <b>Off</b> <a href="ToggleValidation.jsp?validate=true">[Turn On]</a>
  <% } %>
      


 =======================================================================
 ==src/webapps/latka-webapp/ViewSuiteLink.jsp
 =======================================================================
 <%@ page import="java.net.URLEncoder" %>
    
<% 
   String encodedURL = URLEncoder.encode(request.getParameter("url"));
%>
[<a href="viewSuite?url=<%= encodedURL %>" target="_blank">View test</a>]

 =======================================================================
 ==src/webapps/latka-webapp/WEB-INF/classes/latka.properties
 =======================================================================
 # User defined default properties for each test.  
# These properties can be overridden on the command line. 
# Some example properties:
# defaultHost=localhost
# defaultPort=8080

 =======================================================================
 ==src/xdocs/developers-guide.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<!--This document generated by docbook2document.xsl--><!--
    Author:     dIon Gillard
    Version:    $Id: developers-guide.xml 561366 2007-07-31 15:58:29Z rahul $
--><document><properties><title>Latka Developers's Guide</title><author email="dev@commons.apache.org">
                    Commons Documentation Team
                </author></properties><body><a name="introduction"/><section name="Introduction">
        
        <p>These are informal notes gathered as I've started working
on <a href="index.html">Latka</a>. Hopefully they will make sense to
those coming after me, and possibly clarify the current state for the existing
        </p>
    </section><a name="coding-style"/><section name="Coding Style">
        
        
        <p>Latka has some unusual coding conventions, which we've hopefully
captured using a tool, <a href="http://checkstyle.sourceforge.net">CheckStyle
</a>.</p>

        <p>Onto the conventions... The Sun coding conventions are followed in
most places, except for the items that follow</p>
        <ul>
            <li><p>private and protected member variables begin with an 
underscore, <source>_requestSucceeded</source></p></li>
            <li><p>private methods also begin with an underscore on 
rare occasions (mainly when there is some public method and protected/private 
method with an otherwise identical signature)</p>
            </li>
            <li><p>Javadoc on classes and methods is not yet complete.
Feel free to help out here :-)</p></li>
        </ul>
    </section><a name="general-practices"/><section name="General Practices">
        
        
        <p>Here are some of the development practices of the Latka team</p>
        
        <ul>
            <li><p>Before committing any changes, run a cvs diff to
ensure unexpected changes are not being introduced</p>
            </li>
            <li><p>Before committing java source code changes, do a
clean build of the project to ensure all code still compiles. Run all testcases
to ensure the code isn't broken. Run the checkstyle task to ensure code meets
the project's current standards</p>
            </li>
            <li><p>Before committing changes to the web pages:
                <ol>
                    <li><p>Ensure the original docbook is valid by
validating the XML against the docbook DTD</p>
                    </li>

 =======================================================================
 ==src/xdocs/index.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<!--This document generated by docbook2document.xsl--><!--
    Author:     Morgan Delagrange
    Version:    $Id: index.xml 561366 2007-07-31 15:58:29Z rahul $
--><document><properties><title>Latka (Version 1.0 Alpha 2)</title><author email="mdelagra@yahoo.com">Morgan Delagrange</author><author email="dev@commons.apache.org">
                    Commons Documentation Team
                </author></properties><body><section name="Other Documentation">
        
        <p>See the <a href="xml-reference.html">XML Reference</a>,
<a href="users-guide.html">User's Guide</a> and 
<a href="apidocs/index.html">API Docs</a> for more detailed information.
        </p>
    </section><section name="What is Latka?">
      
      <p>
         <i>Latka</i> is a functional (end-to-end) testing
         tool. It is implemented in Java, and uses an XML syntax to define
         a series of HTTP (or HTTPS) requests and a set of
         <i>validations</i> used to verify that the request
         was processed correctly.
      </p>
      <p><b>Note:</b>
         Although Latka currently supports only HTTP and HTTPS
         request/response validations, it may be expanded to perform other
         sorts of functional testing as warranted.
      </p>
      <p>
         A simple example of a Latka XML test suite is shown in our 
         <a href="http://cvs.apache.org/viewcvs/jakarta-commons/latka/tests/samples/TestCommonsWebsite.xml">
         sample Latka test suite</a>. When processed, this example would verify
         that the Apache Commons homepage is present and that all the Commons 
         Components have online documenation. 
      </p>
   </section><section name="Installing Latka">
      
      <subsection name="Requirements">
         
        <ul>
          <li><p>JDK 1.3 or better</p></li> 
          <li><p>
            (for optional web application) 
            Tomcat 4.0 B7 or better - does not work in Tomcat 3.2, untested in 
            other containers</p>
          </li>
          <li><p>
            (for optional SSL support) 
            <a href="http://java.sun.com/security/index.html">Sun JSSE library</a>
            </p>
          </li>
        </ul>

 =======================================================================
 ==src/xdocs/navigation.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE org.apache.commons.menus SYSTEM '../../../commons-build/menus/menus.dtd'>
<project name="Commons - Latka" href="http://commons.apache.org/latka">
    <title>Latka</title>
    <logo href="/images/latka.gif">Latka</logo>
    <body>

    <links>
      <item name="Apache Commons"                   
            href="http://commons.apache.org/"/>
    </links>

        <menu name="Latka">
            <item name="Home" href="/index.html" />
            <item name="User's Guide" href="/users-guide.html"/>
            <item name="XML Reference" href="/xml-reference.html"/>
            <item name="Developers Guide" href="/developers-guide.html"/>
            <item name="Get Involved"
                  href="http://jakarta.apache.org/site/getinvolved.html"/>
            <item name="Reference Library"
                  href="http://jakarta.apache.org/site/library.html"/>
        </menu>
       
        <menu name="Download">
            <item name="Latest Release" 
                href="http://jakarta.apache.org/builds/jakarta-commons/release/commons-latka/1.0/"/>
            <item name="Nightly Build"
                href="http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-latka/"/>
        </menu>
        
        <menu name="Project Files">
            <item name="Status" href="/status.html"/>
            <item name="Original Proposal" href="/proposal.html"/>
            <item name="License"
                  href="http://commons.apache.org/license.html"/>
        </menu>

	&common-menus;


    </body>
</project>

 =======================================================================
 ==src/xdocs/proposal.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<!--This document generated by docbook2document.xsl--><!--
    Author:     Morgan Delagrange
    Author:     Doug Sale
    Author:     Rodney Waldhoff
    Version:    $Id: proposal.xml 561366 2007-07-31 15:58:29Z rahul $
 --><document><properties><title>Proposal for Latka Package</title><author email="mdelagra@yahoo.com">Morgan Delagrange</author><author email="dsale@us.britannica.com">Doug Sale</author><author email="rwaldhof@us.britannica.com">Rodney Waldhoff</author><author email="dev@commons.apache.org">
                    Commons Documentation Team
                </author></properties><body><section name="(0) Rationale">
        
        <p>Testing websites is a pain.  Many regression tests for a website can
be verified automatically, speeding up the quality assurance process and
allowing the engineers to focus on the more important issues.  Additionally 
developers may want to monitor their development, QA and production environment,
so that they can be sure that everything is running as they expect.</p>

        <p>Latka is an HTTP functional testing suite for automated QA.  Latka
 suites are XML documents, which can be written and/or modified without writing 
Java code.  Latka tests can be created quickly and modified easily, even by 
engineers without Java experience.</p>
    </section><section name="(1) Scope of the Package">
        
            <p>The <em>Latka</em> project shall develop an 
XML-based syntax for HTTP-based functional tests.  Latka will support, at the
least, SSL communication and cookies.</p>

            <p>Included within Latka are classes that simulate a user agent. 
While the backend HTTP communication is handled by the HttpClient Commons
component, the Latka interfaces simulate some of the behaviour of an actual web
browser, including automatically passing cookies from request to request in a 
session.  We hope to integrate these classes into a "useragent" package in 
HttpClient at some point, since they are a useful abstraction and not tied to 
Latka in any way, nor do they modify the core HttpClient classes.</p>

            <p>Latka also includes several validations that can be performed
on the HTTP responses, including checking the status code, byte length, or 
request timing. In addition you will be able to customize Latka with your own
validators by writing a couple of simple classes.</p>
    </section><section name="(1.5) Interaction With Other Packages">
        
            
        <p><em>Latka</em> relies on:</p>
        
        <ul>
            <li><p>Java Development Kit (Version 1.3 or later)</p></li>
            <li><p>A JAXP 1.1 implementation</p></li>
            <li><p>A SAX 2.0 parser conforming to the JAXP 1.1 APIs</p></li>
            <li><p>An XSLT parser conforming to JAXP 1.1</p></li>
            <li><p>HttpClient from Commons - for HTTP communcation</p></li>
            <li><p>Logging component from Commons (not yet implemented)</p></li>

 =======================================================================
 ==src/xdocs/release-plan-1.0.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<!--This document generated by docbook2document.xsl--><!--
     Author:     dIon Gillard
    Version:    $Id: release-plan-1.0.xml 561917 2007-08-01 19:03:11Z dennisl $
 --><document><properties><title>Release Plan for Latka 1.0</title><author email="dion@apache.org">dIon Gillard</author><author email="dev@commons.apache.org">
                    Commons Documentation Team
                </author></properties><body><section name="Administrivia">
        
        <p>This document describes a plan for a 1.0 release of the
Jakarta-Commons Latka component (for the remainder of this document, simply 
"Latka").</p>
        <p>As per the
<a href="http://jakarta.apache.org/site/decisions.html">
Jakarta/ASF guidelines</a>, this document doesn't mean anything until 
accepted by the relevant committer community via a lazy majority vote 
(hereafter, simply "lazy majority").  Once accepted, it may be replaced by an 
alternative plan, again subject to lazy majority approval.</p>
        <p>Non-binding votes (votes cast by those outside the relevant
committer community) are welcome, but only binding votes are significant for
decision making purposes.</p>
    </section><section name="Objective">
        <p>The objective of the 1.0 release of Latka is to provide a stable
and robust release focused on design clarity, forward compatibility, and ease
of use (i.e., with the intention of providing a stable foundation for the 
further evolution of the Latka component).</p>
        <p>Specifically, the 1.0 release seeks to
introduce and evaluate changes based upon the following
(ordered) criteria:
            <ul>
                <li><p>Freedom from defects (deviation from the 
documented or reasonably expected behavior)</p></li>
                <li><p>Interface and design consistency and clarity, 
ease-of-use, and ease-of-extension.</p></li>
                <li><p>Forward compatibility. That is, the ability to
add support for features that can be reasonably predicted without "breaking" 
the external (and to a lesser degree, internal) interface of the component
</p></li>
            </ul>
        </p>
        <p>The 1.0 release should also include:
            <ul>
                <li><p>Adequate documentation (including both 
API-level/JavaDoc documentation as well documentation suitable for use on the 
Jakarta-Commons site)</p></li>
                <li><p>A substantial unit and functional test suite 
suitable for ensuring the quality and compatibility of release 1.0 and 
subsequent releases.</p></li>
                <li><p>A clear demarcation of the "internal" and 
"external" interfaces within Latka, as defined in the 
<a href="http://commons.apache.org/releases/versioning.html">

 =======================================================================
 ==src/xdocs/status.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<!--This document generated by docbook2document.xsl--><!--
    Author:     Morgan Delagrange
    Author:     Doug Sale
    Author:     Rodney Waldhoff
    Author:     dIon Gillard
    Version:    $Id: status.xml 561366 2007-07-31 15:58:29Z rahul $
 --><document><properties><title>Status File for Apache Commons "Latka" Application</title><author email="mdelagra@yahoo.com">Morgan Delagrange</author><author email="dsale@us.britannica.com">Doug Sale</author><author email="rwaldhof@us.britannica.com">Rodney Waldhoff</author><author email="trongus@yahoo.com">dIon Gillard</author><author email="dev@commons.apache.org">
                    Commons Documentation Team
                </author></properties><body><section name="INTRODUCTION">
        

        <p>Testing websites is a pain.  Many regression tests for a website can 
        be verified automatically, speeding up the quality assurance process 
        and allowing the engineers to focus on the more important issues.  
        Additionally developers may want to monitor their development, QA 
        and production environment, so that they can be sure that everything
        is running as they expect.</p>

        <p>Latka is an HTTP functional testing suite for automated QA, acceptance and 
        regression testing.  Latka suites are XML documents, which
        can be written and/or modified without writing Java code.  Latka tests can be 
        created quickly and modified easily, even by engineers without Java experience.</p>
    </section><section name="2.  DEPENDENCIES">
        
        <p><em>Latka</em> relies on:</p>
        <ul>
            <li><p>Java Development Kit (Version 1.3 or later)</p></li>
            <li><p>A JAXP 1.1 implementation</p></li>
            <li><p>A SAX 2.0 parser conforming to the JAXP 1.1 APIs</p></li>
            <li><p>An XSLT parser conforming to JAXP 1.1</p></li>
            <li><p>HttpClient from Commons - for HTTP communcation</p></li>
            <li><p>Jakarta Log4J logging package</p></li>
            <li><p>JUnit - for testing</p></li>
            <li><p>JSSE - SSL support (optional at runtime)</p></li>
            <li><p>Jakarta-Regexp - regular expression tests and XML preprocessing (for variable support)</p></li>
            <li><p>JDOM - for building XML reports</p></li>
        </ul>
    </section><section name="3.  RELEASE INFO">
        
        
        <p>Current Release:  <a href="http://jakarta.apache.org/builds/jakarta-commons/release/commons-latka/1.0/">
1.0 alpha 1</a></p>
        <p>Planned Next Release: 1.0, timeframe: 12 April, 2002</p>
    </section><section name="4.  COMMITTERS">
        

        <p>The following individuals are the primary developers and
maintainers of this component.  Developers who plan to use
<em>Latka</em> in their own projects are encouraged to collaborate

 =======================================================================
 ==src/xdocs/style/project.css
 =======================================================================
 #banner, #banner td { 
 background: #fff;
 color: #000;
}


 =======================================================================
 ==src/xdocs/tasks.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8" ?>

<!-- Created by dion on 23 April 2002, 17:18 -->

<document>
    <properties>
        <title>Tasks for Apache Commons "Latka" Application</title>
        <author email="dion@multitask.com.au">dIon Gillard</author>
        <author email="dev@commons.apache.org">
            Commons Documentation Team</author>
    </properties>
    <body>
        <section name="Todo items">
            <ul>
                <li>Add a universal mechanism for negating validators. 
                Currently regexp and xpath validators implement negation
                internally as a special <literal moreinfo="none">cond</literal>
                attribute. This adds somewhat to the internal complexity. It 
                would be better to have the framework handle negation by being
                able to wrap tests in a &lt;not/&gt; element.</li>
                <li>Make the inclusion of individual validators optional at
                build time.</li>
                <li>Set up Latka to use the proxy support of later
                <a href="http://commons.apache.org/httpclient/">
                HttpClient</a> builds</li>
                <li>Write unit tests for each validator, with a mock object 
                implementing the Response interface</li>
                <li>Create better documentation, especially the 
                <a href="users-guide.html">User's Guide</a> and 
                <a href="developers-guide.html">Developer's Guide</a></li>
                <li>Ensure coding standards are consistent across the 
                project's codebase, using 
                <a href="http://checkstyle.sourceforge.net/">CheckStyle</a></li>
                <li>Add XMLValidate tasks to the build file so that any XML
                doc with a DTD is checked before used</li>
                <li>Look at the design of the validators and see if the
                commmons-validator could somehow be used instead</li>
            </ul>
        </section>
    </body>
</document>

 =======================================================================
 ==src/xdocs/users-guide.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<!--This document generated by docbook2document.xsl--><!--
    Author:     dIon Gillard
    Version:    $Id: users-guide.xml 561366 2007-07-31 15:58:29Z rahul $
--><document><properties><title>Latka User's Guide</title><author email="dev@commons.apache.org">
                    Commons Documentation Team
                </author></properties><body><a name="introduction"/><section name="What is Latka">
        
        <p>Latka is a functional (end-to-end) testing tool. It is implemented
        in Java, and uses an XML syntax to define a series of HTTP (or HTTPS) 
        requests and a set of <i>validations</i> used to verify
        that the request was processed correctly.
        </p>
        <p><b>Note:</b>
         Although Latka currently supports only HTTP and HTTPS
         request/response validations, it may be expanded to perform other
         sorts of functional testing as warranted.
        </p>
        <p>
         A simple example of a Latka XML test suite is shown in our 
         <a href="http://cvs.apache.org/viewcvs/jakarta-commons/latka/tests/samples/TestCommonsWebsite.xml">
         sample Latka test suite</a>.
         When processed, this example would verify that the Apache Commons 
         homepage is present and that all the Commons Components have online
         documenation. 
        </p>
    </section><a name="run-latka"/><section name="Running Latka">
        
        <p>A Latka test suite can be run:
            <ul>
                <li><p>From a command prompt</p></li>
                <li><p>From the Latka web application</p></li>
                <li><p>From a JUnit TestRunner</p></li>
            </ul>
            <p><b>Note:</b>To run Latka as an ant task, we suggest you use the JUnit
support of ant and write a small test case to invoke Latka, as discussed later</p>
        </p>
        
        <a name="run-latka-cmd"/><subsection name="Running Latka from the command prompt">
            
            <p>There are two scripts (or batch files) shipped with latka:
            <ol>
                <li><p>latka.bat - for Windows machines</p></li>
                <li><p>latka.sh - for Unix machines</p></li>
            </ol>
            </p>
            <p>Both of the scripts take the following parameters: </p>
            <ol>
                <li>
                    <p>a test suite URL, e.g.

 =======================================================================
 ==src/xdocs/xml-reference.xml
 =======================================================================
 <?xml version="1.0" encoding="UTF-8"?>
<!--This document generated by docbook2document.xsl--><!--
    Author:     Morgan Delagrange
    Version:    $Id: xml-reference.xml 561366 2007-07-31 15:58:29Z rahul $
--><document><properties><title>Latka XML Reference</title><author email="mdelagra@yahoo.com">Morgan Delagrange</author><author email="dev@commons.apache.org">
                    Commons Documentation Team
                </author></properties><body><section name="Latka XML Reference">
      

      <!-- REFENTRY: byteLength -->
      <a name="latka.ref.byteLength"/><subsection name="byteLength">
         
         <p>
            validates the length of an HTTP(S) response
         </p>
         <p><a name=""><strong>DTD</strong></a><br/></p>
            
            <source>&lt;!ELEMENT byteLength EMPTY&gt;
&lt;!ATTLIST byteLength min   CDATA "0"
                     max   CDATA #IMPLIED
                     label CDATA #IMPLIED&gt;</source>
         <p><a name=""><strong>Attributes</strong></a><br/>
            
            <table>
               <tr><th>Name</th><th>Type</th><th>Default</th><th>Description</th></tr>
                     <tr>
                        <td><code>min</code></td>
                        <td>NUMBER</td>
                        <td><code>0</code></td>
                        <td>
                           Minimum number of bytes required for a valid
                           response. Implied. Defaults to
                           <code>0</code>.
                        </td>
                     </tr>
                     <tr>
                        <td><code>max</code></td>
                        <td>NUMBER</td>
                        <td><em>none</em></td>
                        <td>
                           Maximum number of bytes required for a valid
                           response. Optional. When absent, there is no
                           upper limit on the number of bytes in a valid
                           response.
                        </td>
                     </tr>
                     <tr>
                        <td><code>label</code></td>
                        <td>CDATA</td>
                        <td><em>none</em></td>

 =======================================================================
 ==src/xsl/docbook/BUGS
 =======================================================================
 The fo stylesheet is probably not in perfect sync with the html stylesheet

Using Equations w/o titles results in incorrectly numbered
  equations with titles.  Use InformalEquation instead.

The 'char' alignment in tables is not supported

 =======================================================================
 ==src/xsl/docbook/common/af.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="af">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Samevatting"/>
   <l:gentext key="abstract" text="Samevatting"/>
   <l:gentext key="Answer" text="Antwoord:"/>
   <l:gentext key="answer" text="Antwoord:"/>
   <l:gentext key="Appendix" text="Aanhangsel"/>
   <l:gentext key="appendix" text="aanhangsel"/>
   <l:gentext key="Article" text="Artikel"/>
   <l:gentext key="article" text="Artikel"/>
   <l:gentext key="Bibliography" text="Bibliografie"/>
   <l:gentext key="bibliography" text="Bibliografie"/>
   <l:gentext key="Book" text="Boek"/>
   <l:gentext key="book" text="Boek"/>
   <l:gentext key="Caution" text="Pas op"/>
   <l:gentext key="caution" text="Pas op"/>
   <l:gentext key="CAUTION" text="PAS OP"/>
   <l:gentext key="Chapter" text="Hoofdstuk"/>
   <l:gentext key="chapter" text="hoofdstuk"/>
   <l:gentext key="Colophon" text="Kolofon"/>
   <l:gentext key="colophon" text="Kolofon"/>
   <l:gentext key="Copyright" text="Kopie reg"/>
   <l:gentext key="copyright" text="Kopie reg"/>
   <l:gentext key="Dedication" text="Opgedra aan"/>
   <l:gentext key="dedication" text="Opgedra aan"/>
   <l:gentext key="Edition" text="Uitgawe"/>
   <l:gentext key="edition" text="Uitgawe"/>
   <l:gentext key="Equation" text="Vergelyking"/>
   <l:gentext key="equation" text="Vergelyking"/>
   <l:gentext key="Example" text="Voorbeeld"/>
   <l:gentext key="example" text="Voorbeeld"/>
   <l:gentext key="Figure" text="Figuur"/>
   <l:gentext key="figure" text="Figuur"/>
   <l:gentext key="Glossary" text="Woordlys"/>
   <l:gentext key="glossary" text="Woordlys"/>
   <l:gentext key="GlossSee" text="Sien"/>
   <l:gentext key="glosssee" text="Sien"/>
   <l:gentext key="GlossSeeAlso" text="Sien ook"/>
   <l:gentext key="glossseealso" text="Sien ook"/>
   <l:gentext key="IMPORTANT" text="BELANGRIK"/>
   <l:gentext key="Important" text="Belangrik"/>
   <l:gentext key="important" text="Belangrik"/>
   <l:gentext key="Index" text="Indeks"/>
   <l:gentext key="index" text="Indeks"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/ca.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="ca">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Resum"/>
   <l:gentext key="abstract" text="Resum"/>
   <l:gentext key="Answer" text="Answer"/>
   <l:gentext key="answer" text="Answer"/>
   <l:gentext key="appendix" text="ap&#232;ndex"/>
   <l:gentext key="Appendix" text="Ap&#232;ndix"/>
   <l:gentext key="Article" text="Article"/>
   <l:gentext key="article" text="Article"/>
   <l:gentext key="Bibliography" text="Bibliografia"/>
   <l:gentext key="bibliography" text="Bibliografia"/>
   <l:gentext key="Book" text="Llibre"/>
   <l:gentext key="book" text="Llibre"/>
   <l:gentext key="Caution" text="Atenci&#243;"/>
   <l:gentext key="caution" text="Atenci&#243;"/>
   <l:gentext key="CAUTION" text="ATENCI&#211;"/>
   <l:gentext key="Chapter" text="Cap&#237;tol"/>
   <l:gentext key="chapter" text="cap&#237;tol"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Dret de reproducci&#243;"/>
   <l:gentext key="copyright" text="Dret de reproducci&#243;"/>
   <l:gentext key="Dedication" text="Dedicat&#242;ria"/>
   <l:gentext key="dedication" text="Dedicat&#242;ria"/>
   <l:gentext key="Edition" text="Edici&#243;"/>
   <l:gentext key="edition" text="Edici&#243;"/>
   <l:gentext key="Equation" text="Equaci&#243;"/>
   <l:gentext key="equation" text="Equaci&#243;"/>
   <l:gentext key="Example" text="Exemple"/>
   <l:gentext key="example" text="Exemple"/>
   <l:gentext key="Figure" text="Figura"/>
   <l:gentext key="figure" text="Figura"/>
   <l:gentext key="Glossary" text="Glossari"/>
   <l:gentext key="glossary" text="Glossari"/>
   <l:gentext key="GlossSee" text="Veure"/>
   <l:gentext key="glosssee" text="Veure"/>
   <l:gentext key="GlossSeeAlso" text="Veure tamb&#233;"/>
   <l:gentext key="glossseealso" text="Veure tamb&#233;"/>
   <l:gentext key="IMPORTANT" text="IMPORTANT"/>
   <l:gentext key="Important" text="Important"/>
   <l:gentext key="important" text="Important"/>
   <l:gentext key="Index" text="&#205;ndex alfab&#232;tic"/>
   <l:gentext key="index" text="&#205;ndex alfab&#232;tic"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/common.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ********************************************************************
     $Id: common.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     This file contains general templates common to both the HTML and FO
     versions of the DocBook stylesheets.
     ******************************************************************** -->

<doc:reference xmlns="">
<referenceinfo>
<releaseinfo role="meta">
$Id: common.xsl 155424 2005-02-26 13:09:29Z dirkv $
</releaseinfo>
<author><surname>Walsh</surname>
<firstname>Norman</firstname></author>
<copyright><year>1999</year><year>2000</year>
<holder>Norman Walsh</holder>
</copyright>
</referenceinfo>
<title>Common Template Reference</title>

<partintro>
<section><title>Introduction</title>

<para>This is technical reference documentation for the DocBook XSL
Stylesheets; it documents (some of) the parameters, templates, and
other elements of the stylesheets.</para>

<para>This is not intended to be <quote>user</quote> documentation.
It is provided for developers writing customization layers for the
stylesheets, and for anyone who's interested in <quote>how it
works</quote>.</para>

<para>Although I am trying to be thorough, this documentation is known
to be incomplete. Don't forget to read the source, too :-)</para>
</section>
</partintro>

</doc:reference>


 =======================================================================
 ==src/xsl/docbook/common/cs.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="cs">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Abstrakt"/>
   <l:gentext key="abstract" text="Abstrakt"/>
   <l:gentext key="Answer" text="Odpov&#283;&#271;:"/>
   <l:gentext key="answer" text="Odpov&#283;&#271;:"/>
   <l:gentext key="Appendix" text="P&#345;&#237;loha"/>
   <l:gentext key="appendix" text="P&#345;&#237;loha"/>
   <l:gentext key="Article" text="&#268;l&#225;nek"/>
   <l:gentext key="article" text="&#268;l&#225;nek"/>
   <l:gentext key="Bibliography" text="Bibliografie"/>
   <l:gentext key="bibliography" text="Bibliografie"/>
   <l:gentext key="Book" text="Kniha"/>
   <l:gentext key="book" text="Kniha"/>
   <l:gentext key="CAUTION" text="V&#253;straha"/>
   <l:gentext key="Caution" text="V&#253;straha"/>
   <l:gentext key="caution" text="V&#253;straha"/>
   <l:gentext key="Chapter" text="Kapitola"/>
   <l:gentext key="chapter" text="Kapitola"/>
   <l:gentext key="Colophon" text="Tir&#225;&#382;"/>
   <l:gentext key="colophon" text="Tir&#225;&#382;"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="V&#283;nov&#225;n&#237;"/>
   <l:gentext key="dedication" text="V&#283;nov&#225;n&#237;"/>
   <l:gentext key="Edition" text="Vyd&#225;n&#237;"/>
   <l:gentext key="edition" text="Vyd&#225;n&#237;"/>
   <l:gentext key="Equation" text="Rovnice"/>
   <l:gentext key="equation" text="Rovnice"/>
   <l:gentext key="Example" text="P&#345;&#237;klad"/>
   <l:gentext key="example" text="P&#345;&#237;klad"/>
   <l:gentext key="Figure" text="Obr&#225;zek"/>
   <l:gentext key="figure" text="Obr&#225;zek"/>
   <l:gentext key="Glossary" text="Slovn&#237;k"/>
   <l:gentext key="glossary" text="Slovn&#237;k"/>
   <l:gentext key="GlossSee" text="Viz"/>
   <l:gentext key="glosssee" text="Viz"/>
   <l:gentext key="GlossSeeAlso" text="Viz t&#233;&#382;"/>
   <l:gentext key="glossseealso" text="Viz t&#233;&#382;"/>
   <l:gentext key="IMPORTANT" text="D&#367;le&#382;it&#233;"/>
   <l:gentext key="Important" text="D&#367;le&#382;it&#233;"/>
   <l:gentext key="important" text="D&#367;le&#382;it&#233;"/>
   <l:gentext key="Index" text="Rejst&#345;&#237;k"/>
   <l:gentext key="index" text="Rejst&#345;&#237;k"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/da.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="da">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Resum&#233;"/>
   <l:gentext key="abstract" text="resum&#233;"/>
   <l:gentext key="Answer" text="Svar"/>
   <l:gentext key="answer" text="svar"/>
   <l:gentext key="Appendix" text="Appendiks"/>
   <l:gentext key="appendix" text="appendiks"/>
   <l:gentext key="Article" text="Artikel"/>
   <l:gentext key="article" text="artikel"/>
   <l:gentext key="Bibliography" text="Litteraturliste"/>
   <l:gentext key="bibliography" text="litteraturliste"/>
   <l:gentext key="Book" text="Bog"/>
   <l:gentext key="book" text="bog"/>
   <l:gentext key="CAUTION" text="PAS P&#197;"/>
   <l:gentext key="Caution" text="Pas p&#229;"/>
   <l:gentext key="caution" text="pas p&#229;"/>
   <l:gentext key="Chapter" text="Kapitel"/>
   <l:gentext key="chapter" text="kapitel"/>
   <l:gentext key="Colophon" text="Kolofon"/>
   <l:gentext key="colophon" text="kolofon"/>
   <l:gentext key="Copyright" text="Ophavsret"/>
   <l:gentext key="copyright" text="ophavsret"/>
   <l:gentext key="Dedication" text="Tilegnet"/>
   <l:gentext key="dedication" text="tilegnet"/>
   <l:gentext key="Edition" text="Udgave"/>
   <l:gentext key="edition" text="udgave"/>
   <l:gentext key="Equation" text="Ligning"/>
   <l:gentext key="equation" text="ligning"/>
   <l:gentext key="Example" text="Eksempel"/>
   <l:gentext key="example" text="eksempel"/>
   <l:gentext key="Figure" text="Figur"/>
   <l:gentext key="figure" text="figur"/>
   <l:gentext key="Glossary" text="Ordliste"/>
   <l:gentext key="glossary" text="ordliste"/>
   <l:gentext key="GlossSee" text="Se"/>
   <l:gentext key="glosssee" text="se"/>
   <l:gentext key="GlossSeeAlso" text="Se ogs&#229;"/>
   <l:gentext key="glossseealso" text="se ogs&#229;"/>
   <l:gentext key="IMPORTANT" text="VIGTIGT"/>
   <l:gentext key="Important" text="Vigtigt"/>
   <l:gentext key="important" text="vigtigt"/>
   <l:gentext key="Index" text="Stikordsregister"/>
   <l:gentext key="index" text="stikordsregister"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/de.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="de">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Zusammenfassung"/>
   <l:gentext key="abstract" text="Zusammenfassung"/>
   <l:gentext key="Answer" text="A:"/>
   <l:gentext key="answer" text="A:"/>
   <l:gentext key="Appendix" text="Anhang"/>
   <l:gentext key="appendix" text="Anhang"/>
   <l:gentext key="Article" text="Artikel"/>
   <l:gentext key="article" text="Artikel"/>
   <l:gentext key="Bibliography" text="Literaturverzeichnis"/>
   <l:gentext key="bibliography" text="Literaturverzeichnis"/>
   <l:gentext key="Book" text="Buch"/>
   <l:gentext key="book" text="Buch"/>
   <l:gentext key="Caution" text="Achtung"/>
   <l:gentext key="caution" text="Achtung"/>
   <l:gentext key="CAUTION" text="ACHTUNG"/>
   <l:gentext key="Chapter" text="Kapitel"/>
   <l:gentext key="chapter" text="Kapitel"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Widmung"/>
   <l:gentext key="dedication" text="Widmung"/>
   <l:gentext key="Edition" text="Ausgabe"/>
   <l:gentext key="edition" text="Ausgabe"/>
   <l:gentext key="Equation" text="Gleichung"/>
   <l:gentext key="equation" text="Gleichung"/>
   <l:gentext key="Example" text="Beispiel"/>
   <l:gentext key="example" text="Beispiel"/>
   <l:gentext key="Figure" text="Abbildung"/>
   <l:gentext key="figure" text="Abbildung"/>
   <l:gentext key="Glossary" text="Glossar"/>
   <l:gentext key="glossary" text="Glossar"/>
   <l:gentext key="GlossSee" text="Siehe"/>
   <l:gentext key="glosssee" text="Siehe"/>
   <l:gentext key="GlossSeeAlso" text="Siehe auch"/>
   <l:gentext key="glossseealso" text="Siehe auch"/>
   <l:gentext key="IMPORTANT" text="WICHTIG"/>
   <l:gentext key="Important" text="Wichtig"/>
   <l:gentext key="important" text="Wichtig"/>
   <l:gentext key="Index" text="Stichwortverzeichnis"/>
   <l:gentext key="index" text="Stichwortverzeichnis"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/el.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="el">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#208;&#229;&#241;&#223;&#235;&#231;&#248;&#231;"/>
   <l:gentext key="abstract" text="&#208;&#229;&#241;&#223;&#235;&#231;&#248;&#231;"/>
   <l:gentext key="Answer" text="&#193;:"/>
   <l:gentext key="answer" text="&#193;:"/>
   <l:gentext key="Appendix" text="&#208;&#225;&#241;&#220;&#241;&#244;&#231;&#236;&#225;"/>
   <l:gentext key="appendix" text="&#240;&#225;&#241;&#220;&#241;&#244;&#231;&#236;&#225;"/>
   <l:gentext key="Article" text="&#182;&#241;&#232;&#241;&#239;"/>
   <l:gentext key="article" text="&#182;&#241;&#232;&#241;&#239;"/>
   <l:gentext key="Bibliography" text="&#194;&#233;&#226;&#235;&#233;&#239;&#227;&#241;&#225;&#246;&#223;&#225;"/>
   <l:gentext key="bibliography" text="&#194;&#233;&#226;&#235;&#233;&#239;&#227;&#241;&#225;&#246;&#223;&#225;"/>
   <l:gentext key="Book" text="&#194;&#233;&#226;&#235;&#223;&#239;"/>
   <l:gentext key="book" text="&#194;&#233;&#226;&#235;&#223;&#239;"/>
   <l:gentext key="CAUTION" text="&#208;&#209;&#207;&#211;&#207;&#215;&#199;"/>
   <l:gentext key="caution" text="&#208;&#241;&#239;&#243;&#239;&#247;&#222;"/>
   <l:gentext key="Caution" text="&#208;&#241;&#239;&#243;&#239;&#247;&#222;"/>
   <l:gentext key="Chapter" text="&#202;&#229;&#246;&#220;&#235;&#225;&#233;&#239;"/>
   <l:gentext key="chapter" text="&#234;&#229;&#246;&#220;&#235;&#225;&#233;&#239;"/>
   <l:gentext key="Colophon" text="&#202;&#239;&#241;&#249;&#237;&#223;&#228;&#225;"/>
   <l:gentext key="colophon" text="&#202;&#239;&#241;&#249;&#237;&#223;&#228;&#225;"/>
   <l:gentext key="Copyright" text="&#208;&#237;&#229;&#245;&#236;&#225;&#244;&#233;&#234;&#220; &#196;&#233;&#234;&#225;&#233;&#254;&#236;&#225;&#244;&#225;"/>
   <l:gentext key="copyright" text="&#208;&#237;&#229;&#245;&#236;&#225;&#244;&#233;&#234;&#220; &#196;&#233;&#234;&#225;&#233;&#254;&#236;&#225;&#244;&#225;"/>
   <l:gentext key="Dedication" text="&#193;&#246;&#233;&#221;&#241;&#249;&#243;&#231;"/>
   <l:gentext key="dedication" text="&#193;&#246;&#233;&#221;&#241;&#249;&#243;&#231;"/>
   <l:gentext key="Edition" text="&#184;&#234;&#228;&#239;&#243;&#231;"/>
   <l:gentext key="edition" text="&#184;&#234;&#228;&#239;&#243;&#231;"/>
   <l:gentext key="Equation" text="&#197;&#238;&#223;&#243;&#249;&#243;&#231;"/>
   <l:gentext key="equation" text="&#197;&#238;&#223;&#243;&#249;&#243;&#231;"/>
   <l:gentext key="Example" text="&#208;&#225;&#241;&#220;&#228;&#229;&#233;&#227;&#236;&#225;"/>
   <l:gentext key="example" text="&#208;&#225;&#241;&#220;&#228;&#229;&#233;&#227;&#236;&#225;"/>
   <l:gentext key="Figure" text="&#211;&#247;&#222;&#236;&#225;"/>
   <l:gentext key="figure" text="&#211;&#247;&#222;&#236;&#225;"/>
   <l:gentext key="Glossary" text="&#195;&#235;&#249;&#243;&#243;&#220;&#241;&#233;&#239;"/>
   <l:gentext key="glossary" text="&#195;&#235;&#249;&#243;&#243;&#220;&#241;&#233;&#239;"/>
   <l:gentext key="GlossSee" text="&#196;&#229;&#223;&#244;&#229;"/>
   <l:gentext key="glosssee" text="&#196;&#229;&#223;&#244;&#229;"/>
   <l:gentext key="GlossSeeAlso" text="&#196;&#229;&#223;&#244;&#229; &#197;&#240;&#223;&#243;&#231;&#242;"/>
   <l:gentext key="glossseealso" text="&#196;&#229;&#223;&#244;&#229; &#197;&#240;&#223;&#243;&#231;&#242;"/>
   <l:gentext key="IMPORTANT" text="&#211;&#199;&#204;&#193;&#205;&#212;&#201;&#202;&#207;"/>
   <l:gentext key="Important" text="&#211;&#231;&#236;&#225;&#237;&#244;&#233;&#234;&#252;"/>
   <l:gentext key="important" text="&#211;&#231;&#236;&#225;&#237;&#244;&#233;&#234;&#252;"/>
   <l:gentext key="Index" text="&#197;&#245;&#241;&#229;&#244;&#222;&#241;&#233;&#239;"/>
   <l:gentext key="index" text="&#197;&#245;&#241;&#229;&#244;&#222;&#241;&#233;&#239;"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/en.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Abstract"/>
   <l:gentext key="abstract" text="Abstract"/>
   <l:gentext key="Answer" text="A:"/>
   <l:gentext key="answer" text="A:"/>
   <l:gentext key="Appendix" text="Appendix"/>
   <l:gentext key="appendix" text="appendix"/>
   <l:gentext key="Article" text="Article"/>
   <l:gentext key="article" text="Article"/>
   <l:gentext key="Bibliography" text="Bibliography"/>
   <l:gentext key="bibliography" text="Bibliography"/>
   <l:gentext key="Book" text="Book"/>
   <l:gentext key="book" text="Book"/>
   <l:gentext key="CAUTION" text="CAUTION"/>
   <l:gentext key="Caution" text="Caution"/>
   <l:gentext key="caution" text="Caution"/>
   <l:gentext key="Chapter" text="Chapter"/>
   <l:gentext key="chapter" text="chapter"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedication"/>
   <l:gentext key="dedication" text="Dedication"/>
   <l:gentext key="Edition" text="Edition"/>
   <l:gentext key="edition" text="Edition"/>
   <l:gentext key="Equation" text="Equation"/>
   <l:gentext key="equation" text="Equation"/>
   <l:gentext key="Example" text="Example"/>
   <l:gentext key="example" text="Example"/>
   <l:gentext key="Figure" text="Figure"/>
   <l:gentext key="figure" text="Figure"/>
   <l:gentext key="Glossary" text="Glossary"/>
   <l:gentext key="glossary" text="Glossary"/>
   <l:gentext key="GlossSee" text="See"/>
   <l:gentext key="glosssee" text="See"/>
   <l:gentext key="GlossSeeAlso" text="See Also"/>
   <l:gentext key="glossseealso" text="See Also"/>
   <l:gentext key="IMPORTANT" text="IMPORTANT"/>
   <l:gentext key="important" text="Important"/>
   <l:gentext key="Important" text="Important"/>
   <l:gentext key="Index" text="Index"/>
   <l:gentext key="index" text="Index"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/es.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="es">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Resumen"/>
   <l:gentext key="abstract" text="Resumen"/>
   <l:gentext key="Answer" text="R:"/>
   <l:gentext key="answer" text="R:"/>
   <l:gentext key="Appendix" text="Ap&#233;ndice"/>
   <l:gentext key="appendix" text="ap&#233;ndice"/>
   <l:gentext key="Article" text="Art&#237;culo"/>
   <l:gentext key="article" text="Art&#237;culo"/>
   <l:gentext key="Bibliography" text="Bibliograf&#237;a"/>
   <l:gentext key="bibliography" text="Bibliograf&#237;a"/>
   <l:gentext key="Book" text="Libro"/>
   <l:gentext key="book" text="Libro"/>
   <l:gentext key="Caution" text="Atenci&#243;n"/>
   <l:gentext key="caution" text="Atenci&#243;n"/>
   <l:gentext key="CAUTION" text="ATENCI&#211;N"/>
   <l:gentext key="Chapter" text="Cap&#237;tulo"/>
   <l:gentext key="chapter" text="cap&#237;tulo"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedicado"/>
   <l:gentext key="dedication" text="Dedicado"/>
   <l:gentext key="Edition" text="Edici&#243;n"/>
   <l:gentext key="edition" text="Edici&#243;n"/>
   <l:gentext key="Equation" text="Ecuaci&#243;n"/>
   <l:gentext key="equation" text="Ecuaci&#243;n"/>
   <l:gentext key="Example" text="Ejemplo"/>
   <l:gentext key="example" text="Ejemplo"/>
   <l:gentext key="Figure" text="Figura"/>
   <l:gentext key="figure" text="Figura"/>
   <l:gentext key="Glossary" text="Glosario"/>
   <l:gentext key="glossary" text="Glosario"/>
   <l:gentext key="GlossSee" text="Ver"/>
   <l:gentext key="glosssee" text="Ver"/>
   <l:gentext key="GlossSeeAlso" text="Ver tambi&#233;n"/>
   <l:gentext key="glossseealso" text="Ver tambi&#233;n"/>
   <l:gentext key="IMPORTANT" text="IMPORTANTE"/>
   <l:gentext key="Important" text="Importante"/>
   <l:gentext key="important" text="Importante"/>
   <l:gentext key="Index" text="&#205;ndice"/>
   <l:gentext key="index" text="&#205;ndice"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/et.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="et">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#220;levaade"/>
   <l:gentext key="abstract" text="&#220;levaade"/>
   <l:gentext key="Answer" text="V:"/>
   <l:gentext key="answer" text="V:"/>
   <l:gentext key="Appendix" text="Lisa"/>
   <l:gentext key="appendix" text="lisa"/>
   <l:gentext key="Article" text="Artikkel"/>
   <l:gentext key="article" text="Artikkel"/>
   <l:gentext key="Bibliography" text="Bibliograafia"/>
   <l:gentext key="bibliography" text="Bibliograafia"/>
   <l:gentext key="Book" text="Raamat"/>
   <l:gentext key="book" text="Raamat"/>
   <l:gentext key="Caution" text="Ettevaatust"/>
   <l:gentext key="caution" text="Ettevaatust"/>
   <l:gentext key="CAUTION" text="ETTEVAATUST"/>
   <l:gentext key="Chapter" text="Peat&#252;kk"/>
   <l:gentext key="chapter" text="peat&#252;kk"/>
   <l:gentext key="Colophon" text="L&#245;pum&#228;rgis"/>
   <l:gentext key="colophon" text="L&#245;pum&#228;rgis"/>
   <l:gentext key="Copyright" text="Autori&#245;igus"/>
   <l:gentext key="copyright" text="Autori&#245;igus"/>
   <l:gentext key="Dedication" text="P&#252;hendus"/>
   <l:gentext key="dedication" text="P&#252;hendus"/>
   <l:gentext key="Edition" text="V&#228;ljaanne"/>
   <l:gentext key="edition" text="V&#228;ljaanne"/>
   <l:gentext key="Equation" text="Valem"/>
   <l:gentext key="equation" text="Valem"/>
   <l:gentext key="Example" text="N&#228;ide"/>
   <l:gentext key="example" text="N&#228;ide"/>
   <l:gentext key="figure" text="Joonis"/>
   <l:gentext key="Figure" text="Joonis"/>
   <l:gentext key="Glossary" text="S&#245;nastik"/>
   <l:gentext key="glossary" text="S&#245;nastik"/>
   <l:gentext key="GlossSee" text="Vt."/>
   <l:gentext key="glosssee" text="Vt."/>
   <l:gentext key="GlossSeeAlso" text="Vt. ka"/>
   <l:gentext key="glossseealso" text="Vt. ka"/>
   <l:gentext key="IMPORTANT" text="OLULINE"/>
   <l:gentext key="Important" text="Oluline"/>
   <l:gentext key="important" text="Oluline"/>
   <l:gentext key="Index" text="Aineregister"/>
   <l:gentext key="index" text="Aineregister"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/eu.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="eu">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Laburpena"/>
   <l:gentext key="abstract" text="Laburpena"/>
   <l:gentext key="Answer" text="E:"/>
   <l:gentext key="answer" text="E:"/>
   <l:gentext key="Appendix" text="Eranskina"/>
   <l:gentext key="appendix" text="eranskina"/>
   <l:gentext key="Article" text="Artikulua"/>
   <l:gentext key="article" text="Artikulua"/>
   <l:gentext key="Bibliography" text="Bibliografia"/>
   <l:gentext key="bibliography" text="Bibliografia"/>
   <l:gentext key="Book" text="Liburua"/>
   <l:gentext key="book" text="Liburua"/>
   <l:gentext key="CAUTION" text="KONTUZ"/>
   <l:gentext key="Caution" text="Kontuz"/>
   <l:gentext key="caution" text="Kontuz"/>
   <l:gentext key="Chapter" text="Atala"/>
   <l:gentext key="chapter" text="atala"/>
   <l:gentext key="Colophon" text="Azken ohar"/>
   <l:gentext key="colophon" text="Azken ohar"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Eskaintza"/>
   <l:gentext key="dedication" text="Eskaintza"/>
   <l:gentext key="Edition" text="Edizioa"/>
   <l:gentext key="edition" text="Edizioa"/>
   <l:gentext key="Equation" text="Ekuazioa"/>
   <l:gentext key="equation" text="Ekuazioa"/>
   <l:gentext key="Example" text="Adibidea"/>
   <l:gentext key="example" text="Adibidea"/>
   <l:gentext key="Figure" text="Irudia"/>
   <l:gentext key="figure" text="Irudia"/>
   <l:gentext key="Glossary" text="Glosarioa"/>
   <l:gentext key="glossary" text="Glosarioa"/>
   <l:gentext key="GlossSee" text="Ikus"/>
   <l:gentext key="glosssee" text="Ikus"/>
   <l:gentext key="GlossSeeAlso" text="Ikus baita ere"/>
   <l:gentext key="glossseealso" text="Ikus baita ere"/>
   <l:gentext key="IMPORTANT" text="GARRANTZITSUA"/>
   <l:gentext key="important" text="Garrantzitsua"/>
   <l:gentext key="Important" text="Garrantzitsua"/>
   <l:gentext key="Index" text="Indizea"/>
   <l:gentext key="index" text="Indizea"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/fi.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="fi">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Lyhennelm&#228;"/>
   <l:gentext key="abstract" text="Lyhennelm&#228;"/>
   <l:gentext key="Answer" text="A:"/>
   <l:gentext key="answer" text="A:"/>
   <l:gentext key="Appendix" text="Liite"/>
   <l:gentext key="appendix" text="liite"/>
   <l:gentext key="Article" text="Artikkeli"/>
   <l:gentext key="article" text="Artikkeli"/>
   <l:gentext key="Bibliography" text="L&#228;hteet"/>
   <l:gentext key="bibliography" text="L&#228;hteet"/>
   <l:gentext key="Book" text="Kirja"/>
   <l:gentext key="book" text="Kirja"/>
   <l:gentext key="Caution" text="Varo"/>
   <l:gentext key="caution" text="Varo"/>
   <l:gentext key="CAUTION" text="VARO"/>
   <l:gentext key="Chapter" text="Luku"/>
   <l:gentext key="chapter" text="luku"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Omistus"/>
   <l:gentext key="dedication" text="Omistus"/>
   <l:gentext key="Edition" text="Edition"/>
   <l:gentext key="edition" text="Edition"/>
   <l:gentext key="Equation" text="Kaava"/>
   <l:gentext key="equation" text="Kaava"/>
   <l:gentext key="Example" text="Esimerkki"/>
   <l:gentext key="example" text="Esimerkki"/>
   <l:gentext key="Figure" text="Kuva"/>
   <l:gentext key="figure" text="Kuva"/>
   <l:gentext key="Glossary" text="Sanasto"/>
   <l:gentext key="glossary" text="Sanasto"/>
   <l:gentext key="GlossSee" text="Katso"/>
   <l:gentext key="glosssee" text="Katso"/>
   <l:gentext key="GlossSeeAlso" text="Katso my&#246;s"/>
   <l:gentext key="glossseealso" text="Katso my&#246;s"/>
   <l:gentext key="IMPORTANT" text="T&#196;RKE&#196;&#196;"/>
   <l:gentext key="Important" text="T&#228;rke&#228;&#228;"/>
   <l:gentext key="important" text="T&#228;rke&#228;&#228;"/>
   <l:gentext key="Index" text="Indeksi"/>
   <l:gentext key="index" text="Indeksi"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/fr.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="fr">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="R&#233;sum&#233;"/>
   <l:gentext key="abstract" text="R&#233;sum&#233;"/>
   <l:gentext key="Answer" text="R&#160;:"/>
   <l:gentext key="answer" text="R&#160;:"/>
   <l:gentext key="Appendix" text="Annexe"/>
   <l:gentext key="appendix" text="annexe"/>
   <l:gentext key="Article" text="Article"/>
   <l:gentext key="article" text="Article"/>
   <l:gentext key="Bibliography" text="Bibliographie"/>
   <l:gentext key="bibliography" text="Bibliographie"/>
   <l:gentext key="Book" text="Livre"/>
   <l:gentext key="book" text="Livre"/>
   <l:gentext key="Caution" text="Attention"/>
   <l:gentext key="caution" text="Attention"/>
   <l:gentext key="CAUTION" text="ATTENTION"/>
   <l:gentext key="Chapter" text="Chapitre"/>
   <l:gentext key="chapter" text="chapitre"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="D&#233;dicace"/>
   <l:gentext key="dedication" text="D&#233;dicace"/>
   <l:gentext key="Edition" text="&#201;dition"/>
   <l:gentext key="edition" text="&#201;dition"/>
   <l:gentext key="Equation" text="&#201;quation"/>
   <l:gentext key="equation" text="&#201;quation"/>
   <l:gentext key="Example" text="Exemple"/>
   <l:gentext key="example" text="Exemple"/>
   <l:gentext key="Figure" text="Figure"/>
   <l:gentext key="figure" text="Figure"/>
   <l:gentext key="Glossary" text="Glossaire"/>
   <l:gentext key="glossary" text="Glossaire"/>
   <l:gentext key="GlossSee" text="Voir"/>
   <l:gentext key="glosssee" text="Voir"/>
   <l:gentext key="GlossSeeAlso" text="Voir aussi"/>
   <l:gentext key="glossseealso" text="Voir aussi"/>
   <l:gentext key="IMPORTANT" text="IMPORTANT"/>
   <l:gentext key="Important" text="Important"/>
   <l:gentext key="important" text="Important"/>
   <l:gentext key="Index" text="Index"/>
   <l:gentext key="index" text="Index"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/gentext.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ============================================================ -->

<xsl:template match="*" mode="object.title.template">
  <xsl:call-template name="gentext.template">
    <xsl:with-param name="context" select="'title'"/>
    <xsl:with-param name="name" select="local-name(.)"/>
  </xsl:call-template>
</xsl:template>

<xsl:template match="chapter" mode="object.title.template">
  <xsl:choose>
    <xsl:when test="$chapter.autolabel != 0">
      <xsl:call-template name="gentext.template">
        <xsl:with-param name="context" select="'title-numbered'"/>
        <xsl:with-param name="name" select="local-name(.)"/>
      </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="gentext.template">
        <xsl:with-param name="context" select="'title-unnumbered'"/>
        <xsl:with-param name="name" select="local-name(.)"/>
      </xsl:call-template>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="appendix" mode="object.title.template">
  <xsl:choose>
    <xsl:when test="$appendix.autolabel != 0">
      <xsl:call-template name="gentext.template">
        <xsl:with-param name="context" select="'title-numbered'"/>
        <xsl:with-param name="name" select="local-name(.)"/>
      </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="gentext.template">
        <xsl:with-param name="context" select="'title-unnumbered'"/>
        <xsl:with-param name="name" select="local-name(.)"/>
      </xsl:call-template>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="section|sect1|sect2|sect3|sect4|sect5|simplesect

 =======================================================================
 ==src/xsl/docbook/common/hu.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="hu">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Kivonat"/>
   <l:gentext key="abstract" text="kivonat"/>
   <l:gentext key="Answer" text="V&#225;lasz"/>
   <l:gentext key="answer" text="v&#225;lasz"/>
   <l:gentext key="Appendix" text="F&#252;ggel&#233;k"/>
   <l:gentext key="appendix" text="f&#252;ggel&#233;k"/>
   <l:gentext key="Article" text="Cikk"/>
   <l:gentext key="article" text="cikk"/>
   <l:gentext key="Bibliography" text="Irodalomjegyz&#233;k"/>
   <l:gentext key="bibliography" text="irodalomjegyz&#233;k"/>
   <l:gentext key="Book" text="K&#246;nyv"/>
   <l:gentext key="book" text="k&#246;nyv"/>
   <l:gentext key="Caution" text="Figyelem"/>
   <l:gentext key="caution" text="figyelem"/>
   <l:gentext key="CAUTION" text="FIGYELEM"/>
   <l:gentext key="Chapter" text="Fejezet"/>
   <l:gentext key="chapter" text="fejezet"/>
   <l:gentext key="Colophon" text="V&#233;gsz&#243;"/>
   <l:gentext key="colophon" text="v&#233;gsz&#243;"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="copyright"/>
   <l:gentext key="Dedication" text="Aj&#225;nl&#225;s"/>
   <l:gentext key="dedication" text="aj&#225;nl&#225;s"/>
   <l:gentext key="Edition" text="Kiad&#225;s"/>
   <l:gentext key="edition" text="kiad&#225;s"/>
   <l:gentext key="Equation" text="Egyenlet"/>
   <l:gentext key="equation" text="egyenlet"/>
   <l:gentext key="Example" text="P&#233;lda"/>
   <l:gentext key="example" text="p&#233;lda"/>
   <l:gentext key="Figure" text="&#193;bra"/>
   <l:gentext key="figure" text="&#225;bra"/>
   <l:gentext key="Glossary" text="Sz&#243;jegyz&#233;k"/>
   <l:gentext key="glossary" text="sz&#243;jegyz&#233;k"/>
   <l:gentext key="GlossSee" text="L&#225;sd"/>
   <l:gentext key="glosssee" text="l&#225;sd"/>
   <l:gentext key="GlossSeeAlso" text="L&#225;sd m&#233;g"/>
   <l:gentext key="glossseealso" text="l&#225;sd m&#233;g"/>
   <l:gentext key="IMPORTANT" text="FONTOS"/>
   <l:gentext key="Important" text="Fontos"/>
   <l:gentext key="important" text="fontos"/>
   <l:gentext key="Index" text="T&#225;rgymutat&#243;"/>
   <l:gentext key="index" text="t&#225;rgymutat&#243;"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/id.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="id">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Abstrak"/>
   <l:gentext key="abstract" text="Abstrak"/>
   <l:gentext key="Answer" text="Jawab:"/>
   <l:gentext key="answer" text="Jawab:"/>
   <l:gentext key="Appendix" text="Lampiran"/>
   <l:gentext key="appendix" text="lampiran"/>
   <l:gentext key="Article" text="Artikel"/>
   <l:gentext key="article" text="Artikel"/>
   <l:gentext key="Bibliography" text="Bibliografi"/>
   <l:gentext key="bibliography" text="Bibliografi"/>
   <l:gentext key="Book" text="Buku"/>
   <l:gentext key="book" text="Buku"/>
   <l:gentext key="Caution" text="Perhatian"/>
   <l:gentext key="caution" text="Perhatian"/>
   <l:gentext key="CAUTION" text="PERHATIAN"/>
   <l:gentext key="Chapter" text="Bab"/>
   <l:gentext key="chapter" text="bab"/>
   <l:gentext key="Colophon" text="Kolofon"/>
   <l:gentext key="colophon" text="Kolofon"/>
   <l:gentext key="Copyright" text="Hak Cipta"/>
   <l:gentext key="copyright" text="Hak Cipta"/>
   <l:gentext key="Dedication" text="Dedikasi"/>
   <l:gentext key="dedication" text="Dedikasi"/>
   <l:gentext key="Edition" text="Edisi"/>
   <l:gentext key="edition" text="Edisi"/>
   <l:gentext key="Equation" text="Persamaan"/>
   <l:gentext key="equation" text="Persamaan"/>
   <l:gentext key="Example" text="Teladan"/>
   <l:gentext key="example" text="Teladan"/>
   <l:gentext key="Figure" text="Gambar"/>
   <l:gentext key="figure" text="Gambar"/>
   <l:gentext key="Glossary" text="Daftar Istilah"/>
   <l:gentext key="glossary" text="Daftar Istilah"/>
   <l:gentext key="GlossSee" text="Lihat"/>
   <l:gentext key="glosssee" text="Lihat"/>
   <l:gentext key="GlossSeeAlso" text="Lihat Juga"/>
   <l:gentext key="glossseealso" text="Lihat Juga"/>
   <l:gentext key="IMPORTANT" text="PENTING"/>
   <l:gentext key="Important" text="Penting"/>
   <l:gentext key="important" text="Penting"/>
   <l:gentext key="Index" text="Indeks"/>
   <l:gentext key="index" text="Indeks"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/it.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="it">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Estratto"/>
   <l:gentext key="abstract" text="Estratto"/>
   <l:gentext key="Answer" text="R:"/>
   <l:gentext key="answer" text="R:"/>
   <l:gentext key="Appendix" text="Appendice"/>
   <l:gentext key="appendix" text="appendice"/>
   <l:gentext key="Article" text="Articolo"/>
   <l:gentext key="article" text="Articolo"/>
   <l:gentext key="Audience" text="Pubblico"/>
   <l:gentext key="audience" text="Pubblico"/>
   <l:gentext key="Bibliography" text="Bibliografia"/>
   <l:gentext key="bibliography" text="Bibliografia"/>
   <l:gentext key="Book" text="Libro"/>
   <l:gentext key="book" text="Libro"/>
   <l:gentext key="Caution" text="Cautela"/>
   <l:gentext key="caution" text="Cautela"/>
   <l:gentext key="CAUTION" text="CAUTELA"/>
   <l:gentext key="Chapter" text="Capitolo"/>
   <l:gentext key="chapter" text="capitolo"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedica"/>
   <l:gentext key="dedication" text="Dedica"/>
   <l:gentext key="Edition" text="Edizione"/>
   <l:gentext key="edition" text="Edizione"/>
   <l:gentext key="Equation" text="Equazione"/>
   <l:gentext key="equation" text="Equazione"/>
   <l:gentext key="Example" text="Esempio"/>
   <l:gentext key="example" text="Esempio"/>
   <l:gentext key="Figure" text="Figura"/>
   <l:gentext key="figure" text="Figura"/>
   <l:gentext key="Glossary" text="Glossario"/>
   <l:gentext key="glossary" text="Glossario"/>
   <l:gentext key="GlossSee" text="Vedi"/>
   <l:gentext key="glosssee" text="Vedi"/>
   <l:gentext key="glossseealso" text="Vedi anche"/>
   <l:gentext key="GlossSeeAlso" text="Vedi anche"/>
   <l:gentext key="History" text="Diario"/>
   <l:gentext key="history" text="Diario"/>
   <l:gentext key="Important" text="Importante"/>
   <l:gentext key="important" text="Importante"/>

 =======================================================================
 ==src/xsl/docbook/common/ja.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="ja">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#27010;&#35201;"/>
   <l:gentext key="abstract" text="&#27010;&#35201;"/>
   <l:gentext key="Answer" text="&#21839;&#65306;"/>
   <l:gentext key="answer" text="&#21839;&#65306;"/>
   <l:gentext key="Appendix" text="&#20184;&#37682;"/>
   <l:gentext key="appendix" text="&#20184;&#37682;"/>
   <l:gentext key="Article" text="&#38917;&#30446;"/>
   <l:gentext key="article" text="&#38917;&#30446;"/>
   <l:gentext key="Bibliography" text="&#21442;&#32771;&#25991;&#29486;"/>
   <l:gentext key="bibliography" text="&#21442;&#32771;&#25991;&#29486;"/>
   <l:gentext key="Book" text="&#12502;&#12483;&#12463;"/>
   <l:gentext key="book" text="&#12502;&#12483;&#12463;"/>
   <l:gentext key="Caution" text="&#27880;&#24847;"/>
   <l:gentext key="caution" text="&#27880;&#24847;"/>
   <l:gentext key="CAUTION" text="&#27880;&#24847;"/>
   <l:gentext key="chapter" text="&#31456;"/>
   <l:gentext key="chapter1" text="&#31532;"/>
   <l:gentext key="Chapter1" text="&#31532;"/>
   <l:gentext key="Chapter2" text="&#31456;"/>
   <l:gentext key="chapter2" text="&#31456;"/>
   <l:gentext key="Colophon" text="&#22885;&#20184;"/>
   <l:gentext key="colophon" text="&#22885;&#20184;"/>
   <l:gentext key="Copyright" text="&#35069;&#20316;&#33879;&#20316;"/>
   <l:gentext key="copyright" text="&#35069;&#20316;&#33879;&#20316;"/>
   <l:gentext key="Dedication" text="&#35613;&#36766;"/>
   <l:gentext key="dedication" text="&#35613;&#36766;"/>
   <l:gentext key="Edition" text="&#32232;&#38598;"/>
   <l:gentext key="edition" text="&#32232;&#38598;"/>
   <l:gentext key="Equation" text="&#24335;"/>
   <l:gentext key="equation" text="&#24335;"/>
   <l:gentext key="Example" text="&#20363;"/>
   <l:gentext key="example" text="&#20363;"/>
   <l:gentext key="Figure" text="&#22259;"/>
   <l:gentext key="figure" text="&#22259;"/>
   <l:gentext key="Glossary" text="&#29992;&#35486;&#38598;"/>
   <l:gentext key="glossary" text="&#29992;&#35486;&#38598;"/>
   <l:gentext key="GlossSee" text="&#21442;&#29031;"/>
   <l:gentext key="glosssee" text="&#21442;&#29031;"/>
   <l:gentext key="GlossSeeAlso" text="&#21442;&#29031;"/>
   <l:gentext key="glossseealso" text="&#21442;&#29031;"/>
   <l:gentext key="IMPORTANT" text="&#37325;&#35201;&#38917;&#30446;"/>
   <l:gentext key="Important" text="&#37325;&#35201;&#38917;&#30446;"/>
   <l:gentext key="important" text="&#37325;&#35201;&#38917;&#30446;"/>

 =======================================================================
 ==src/xsl/docbook/common/ko.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="ko">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#52488;&#47197;"/>
   <l:gentext key="abstract" text="&#52488;&#47197;"/>
   <l:gentext key="Answer" text="&#45813;&#48320;"/>
   <l:gentext key="answer" text="&#45813;&#48320;"/>
   <l:gentext key="Appendix" text="&#48512;&#47197;"/>
   <l:gentext key="appendix" text="&#48512;&#47197;"/>
   <l:gentext key="Article" text="&#47928;&#49436;"/>
   <l:gentext key="article" text="&#47928;&#49436;"/>
   <l:gentext key="Bibliography" text="&#49436;&#51648;&#49324;&#54637;"/>
   <l:gentext key="bibliography" text="&#49436;&#51648;&#49324;&#54637;"/>
   <l:gentext key="Book" text="&#52293;"/>
   <l:gentext key="book" text="&#52293;"/>
   <l:gentext key="Caution" text="&#44221;&#44256;"/>
   <l:gentext key="CAUTION" text="[&#44221;&#44256;]"/>
   <l:gentext key="Chapter" text="&#51109;"/>
   <l:gentext key="chapter" text="&#51109;"/>
   <l:gentext key="Colophon" text="&#54032;&#44428;"/>
   <l:gentext key="colophon" text="&#54032;&#44428;"/>
   <l:gentext key="Copyright" text="&#51200;&#51089;&#44428;"/>
   <l:gentext key="copyright" text="&#51200;&#51089;&#44428;"/>
   <l:gentext key="Dedication" text="&#48148;&#52824;&#45716; &#44544;"/>
   <l:gentext key="dedication" text="&#48148;&#52824;&#45716; &#44544;"/>
   <l:gentext key="Edition" text="&#50670;&#51020;"/>
   <l:gentext key="edition" text="&#50670;&#51020;"/>
   <l:gentext key="Equation" text="&#49688;&#49885;"/>
   <l:gentext key="equation" text="&#49688;&#49885;"/>
   <l:gentext key="Example" text="&#50696;"/>
   <l:gentext key="example" text="&#50696;"/>
   <l:gentext key="figure" text="&#44536;&#47548;"/>
   <l:gentext key="Figure" text="&#44536;&#47548;"/>
   <l:gentext key="Glossary" text="&#50857;&#50612;&#54644;&#49444;"/>
   <l:gentext key="glossary" text="&#50857;&#50612;&#54644;&#49444;"/>
   <l:gentext key="GlossSee" text="&#49332;&#54196;&#48380; &#45236;&#50857;"/>
   <l:gentext key="glosssee" text="&#49332;&#54196;&#48380; &#45236;&#50857;"/>
   <l:gentext key="GlossSeeAlso" text="&#45796;&#47480; &#49332;&#54196;&#48380; &#45236;&#50857;"/>
   <l:gentext key="glossseealso" text="&#45796;&#47480; &#49332;&#54196;&#48380; &#45236;&#50857;"/>
   <l:gentext key="Important" text="&#51473;&#50836;"/>
   <l:gentext key="important" text="&#51473;&#50836;"/>
   <l:gentext key="IMPORTANT" text="[&#51473;&#50836;]"/>
   <l:gentext key="Index" text="&#49353;&#51064;"/>
   <l:gentext key="index" text="&#49353;&#51064;"/>
   <l:gentext key="isbn" text="ISBN"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/l10n.dtd
 =======================================================================
 <!ELEMENT i18n (l10n+)>
<!ATTLIST i18n
	xmlns		CDATA	#IMPLIED
>

<!ELEMENT l10n (gentext|dingbat|context)*>
<!ATTLIST l10n
	language	CDATA	#REQUIRED
>

<!ELEMENT gentext EMPTY>
<!ATTLIST gentext
	key		CDATA	#REQUIRED
	text		CDATA	#REQUIRED
>

<!ELEMENT dingbat EMPTY>
<!ATTLIST dingbat
	key		CDATA	#REQUIRED
	text		CDATA	#REQUIRED
>

<!ELEMENT context (template+)>
<!ATTLIST context
	name		CDATA	#REQUIRED
>

<!ELEMENT template EMPTY>
<!ATTLIST template
	name		CDATA	#REQUIRED
	text		CDATA	#REQUIRED
>

 =======================================================================
 ==src/xsl/docbook/common/l10n.xml
 =======================================================================
 <?xml version='1.0'?>
<!DOCTYPE i18n SYSTEM "l10n.dtd" [
<!ENTITY af SYSTEM "af.xml">
<!ENTITY ca SYSTEM "ca.xml">
<!ENTITY cs SYSTEM "cs.xml">
<!ENTITY da SYSTEM "da.xml">
<!ENTITY de SYSTEM "de.xml">
<!ENTITY el SYSTEM "el.xml">
<!ENTITY en SYSTEM "en.xml">
<!ENTITY es SYSTEM "es.xml">
<!ENTITY et SYSTEM "et.xml">
<!ENTITY eu SYSTEM "eu.xml">
<!ENTITY fi SYSTEM "fi.xml">
<!ENTITY fr SYSTEM "fr.xml">
<!ENTITY hu SYSTEM "hu.xml">
<!ENTITY id SYSTEM "id.xml">
<!ENTITY it SYSTEM "it.xml">
<!ENTITY ja SYSTEM "ja.xml">
<!ENTITY ko SYSTEM "ko.xml">
<!ENTITY nl SYSTEM "nl.xml">
<!ENTITY nn SYSTEM "nn.xml">
<!ENTITY no SYSTEM "no.xml">
<!ENTITY pl SYSTEM "pl.xml">
<!ENTITY pt SYSTEM "pt.xml">
<!ENTITY pt_br SYSTEM "pt_br.xml">
<!ENTITY ro SYSTEM "ro.xml">
<!ENTITY ru SYSTEM "ru.xml">
<!ENTITY sk SYSTEM "sk.xml">
<!ENTITY sl SYSTEM "sl.xml">
<!ENTITY sr SYSTEM "sr.xml">
<!ENTITY sv SYSTEM "sv.xml">
<!ENTITY tr SYSTEM "tr.xml">
<!ENTITY uk SYSTEM "uk.xml">
<!ENTITY xh SYSTEM "xh.xml">
<!ENTITY zh_cn SYSTEM "zh_cn.xml">
<!ENTITY zh_tw SYSTEM "zh_tw.xml">
]>
<i18n xmlns="http://docbook.sourceforge.net/xmlns/l10n/1.0">
&af;
&ca;
&cs;
&da;
&de;
&el;
&en;
&es;
&et;
&eu;
&fi;
&fr;

 =======================================================================
 ==src/xsl/docbook/common/l10n.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
                exclude-result-prefixes="l"
                version='1.0'>

<!-- ********************************************************************
     $Id: l10n.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     This file contains localization templates (for internationalization)
     ******************************************************************** -->

<xsl:param name="l10n.xml" select="document('../common/l10n.xml')"/>
<xsl:param name="local.l10n.xml" select="document('')"/>

<xsl:param name="l10n.gentext.language" select="''"/>
<xsl:param name="l10n.gentext.default.language" select="'en'"/>
<xsl:param name="l10n.gentext.use.xref.language" select="false()"/>

<xsl:template name="l10n.language">
  <xsl:param name="target" select="."/>
  <xsl:param name="xref-context" select="false()"/>

  <xsl:variable name="language">
    <xsl:choose>
      <xsl:when test="$l10n.gentext.language != ''">
        <xsl:value-of select="$l10n.gentext.language"/>
      </xsl:when>

      <xsl:when test="$xref-context or $l10n.gentext.use.xref.language">
        <xsl:variable name="lang-attr"
                      select="($target/ancestor-or-self::*/@lang
                               |$target/ancestor-or-self::*/@xml:lang)[last()]"/>
        <xsl:choose>
          <xsl:when test="string($lang-attr) = ''">
            <xsl:value-of select="$l10n.gentext.default.language"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$lang-attr"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:when>

      <xsl:otherwise>
        <xsl:variable name="lang-attr" 

 =======================================================================
 ==src/xsl/docbook/common/labels.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ============================================================ -->
<!-- label markup -->

<doc:mode mode="label.markup" xmlns="">
<refpurpose>Provides access to element labels</refpurpose>
<refdescription>
<para>Processing an element in the
<literal role="mode">label.markup</literal> mode produces the
element label.</para>
<para>Trailing punctuation is not added to the label.
</para>
</refdescription>
</doc:mode>

<xsl:template match="*" mode="intralabel.punctuation">
  <xsl:text>.</xsl:text>
</xsl:template>

<xsl:template match="*" mode="label.markup">
  <xsl:message>
    <xsl:text>Request for label of unexpected element: </xsl:text>
    <xsl:value-of select="name(.)"/>
  </xsl:message>
</xsl:template>

<xsl:template match="set|book" mode="label.markup">
  <xsl:if test="@label">
    <xsl:value-of select="@label"/>
  </xsl:if>
</xsl:template>

<xsl:template match="part" mode="label.markup">
  <xsl:choose>
    <xsl:when test="@label">
      <xsl:value-of select="@label"/>
    </xsl:when>
    <xsl:when test="$part.autolabel != 0">
      <xsl:number from="book" count="part" format="I"/>
    </xsl:when>
  </xsl:choose>
</xsl:template>

<xsl:template match="partintro" mode="label.markup">
  <!-- no label -->

 =======================================================================
 ==src/xsl/docbook/common/nl.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="nl">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Samenvatting"/>
   <l:gentext key="abstract" text="Samenvatting"/>
   <l:gentext key="Answer" text="Antwoord:"/>
   <l:gentext key="answer" text="Antwoord:"/>
   <l:gentext key="Appendix" text="Aanhangsel"/>
   <l:gentext key="appendix" text="aanhangsel"/>
   <l:gentext key="Article" text="Artikel"/>
   <l:gentext key="article" text="Artikel"/>
   <l:gentext key="Bibliography" text="Literatuurlijst"/>
   <l:gentext key="bibliography" text="Literatuurlijst"/>
   <l:gentext key="Book" text="Boek"/>
   <l:gentext key="book" text="Boek"/>
   <l:gentext key="Caution" text="Let op"/>
   <l:gentext key="caution" text="Let op"/>
   <l:gentext key="CAUTION" text="LET OP"/>
   <l:gentext key="Chapter" text="Hoofdstuk"/>
   <l:gentext key="chapter" text="hoofdstuk"/>
   <l:gentext key="Colophon" text="Colofon"/>
   <l:gentext key="colophon" text="Colofon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Opdracht"/>
   <l:gentext key="dedication" text="Opdracht"/>
   <l:gentext key="Edition" text="Uitgave"/>
   <l:gentext key="edition" text="Uitgave"/>
   <l:gentext key="Equation" text="Vergelijking"/>
   <l:gentext key="equation" text="Vergelijking"/>
   <l:gentext key="Example" text="Voorbeeld"/>
   <l:gentext key="example" text="Voorbeeld"/>
   <l:gentext key="Figure" text="Figuur"/>
   <l:gentext key="figure" text="Figuur"/>
   <l:gentext key="Glossary" text="Woordenlijst"/>
   <l:gentext key="glossary" text="Woordenlijst"/>
   <l:gentext key="GlossSee" text="Zie"/>
   <l:gentext key="glosssee" text="Zie"/>
   <l:gentext key="GlossSeeAlso" text="Zie ook"/>
   <l:gentext key="glossseealso" text="Zie ook"/>
   <l:gentext key="IMPORTANT" text="BELANGRIJK"/>
   <l:gentext key="Important" text="Belangrijk"/>
   <l:gentext key="important" text="Belangrijk"/>
   <l:gentext key="Index" text="Register"/>
   <l:gentext key="index" text="Register"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/nn.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="nn">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Samandrag"/>
   <l:gentext key="abstract" text="Samandrag"/>
   <l:gentext key="Answer" text="Svar"/>
   <l:gentext key="answer" text="svar"/>
   <l:gentext key="Appendix" text="Tillegg"/>
   <l:gentext key="Article" text="Artikkel"/>
   <l:gentext key="article" text="artikkel"/>
   <l:gentext key="Bibliography" text="Bibliografi"/>
   <l:gentext key="bibliography" text="bibliografi"/>
   <l:gentext key="Book" text="Bok"/>
   <l:gentext key="book" text="bok"/>
   <l:gentext key="CAUTION" text="OBS"/>
   <l:gentext key="caution" text="OBS"/>
   <l:gentext key="Caution" text="Obs"/>
   <l:gentext key="caution" text="Obs"/>
   <l:gentext key="Chapter" text="Kapittel"/>
   <l:gentext key="Colophon" text="Kolofon"/>
   <l:gentext key="colophon" text="kolofon"/>
   <l:gentext key="Copyright" text="Opphavsrett"/>
   <l:gentext key="copyright" text="opphavsrett"/>
   <l:gentext key="Dedication" text="Dedikasjon"/>
   <l:gentext key="dedication" text="dedikasjon"/>
   <l:gentext key="Edition" text="Utg&#229;ve"/>
   <l:gentext key="edition" text="utg&#229;ve"/>
   <l:gentext key="Equation" text="Formel"/>
   <l:gentext key="equation" text="formel"/>
   <l:gentext key="Example" text="D&#248;me"/>
   <l:gentext key="example" text="d&#248;me"/>
   <l:gentext key="Figure" text="Figur"/>
   <l:gentext key="figure" text="figur"/>
   <l:gentext key="GlossSee" text="Sj&#229;"/>
   <l:gentext key="glosssee" text="sj&#229;"/>
   <l:gentext key="GlossSeeAlso" text="Sj&#229; &#242;g"/>
   <l:gentext key="glossseealso" text="sj&#229; &#242;g"/>
   <l:gentext key="Glossary" text="Ordliste"/>
   <l:gentext key="glossary" text="ordliste"/>
   <l:gentext key="IMPORTANT" text="VIKTIG"/>
   <l:gentext key="important" text="viktig"/>
   <l:gentext key="ISBN" text="ISBN"/>
   <l:gentext key="isbn" text="ISBN"/>
   <l:gentext key="Important" text="Viktig"/>
   <l:gentext key="important" text="viktig"/>
   <l:gentext key="Index" text="Indeks"/>

 =======================================================================
 ==src/xsl/docbook/common/no.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="no">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Abstract"/>
   <l:gentext key="abstract" text="Abstract"/>
   <l:gentext key="Answer" text="A:"/>
   <l:gentext key="answer" text="A:"/>
   <l:gentext key="Appendix" text="Tillegg"/>
   <l:gentext key="appendix" text="Tillegg"/>
   <l:gentext key="Article" text=""/>
   <l:gentext key="article" text=""/>
   <l:gentext key="Bibliography" text="Bibliografi"/>
   <l:gentext key="bibliography" text="Bibliografi"/>
   <l:gentext key="Book" text=""/>
   <l:gentext key="book" text=""/>
   <l:gentext key="Caution" text="Obs"/>
   <l:gentext key="caution" text="Obs"/>
   <l:gentext key="CAUTION" text="OBS"/>
   <l:gentext key="Chapter" text="Kapittel"/>
   <l:gentext key="chapter" text="Kapittel"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedikasjon"/>
   <l:gentext key="dedication" text="Dedikasjon"/>
   <l:gentext key="Edition" text=""/>
   <l:gentext key="edition" text=""/>
   <l:gentext key="Equation" text="Formel"/>
   <l:gentext key="equation" text="Formel"/>
   <l:gentext key="Example" text="Eksempel"/>
   <l:gentext key="example" text="Eksempel"/>
   <l:gentext key="Figure" text="Figur"/>
   <l:gentext key="figure" text="Figur"/>
   <l:gentext key="Glossary" text="Ordliste"/>
   <l:gentext key="glossary" text="Ordliste"/>
   <l:gentext key="GlossSee" text="Se"/>
   <l:gentext key="glosssee" text="Se"/>
   <l:gentext key="GlossSeeAlso" text="Se Ogs&#229;"/>
   <l:gentext key="glossseealso" text="Se Ogs&#229;"/>
   <l:gentext key="IMPORTANT" text="VIKTIG"/>
   <l:gentext key="Important" text="Viktig"/>
   <l:gentext key="important" text="Viktig"/>
   <l:gentext key="Index" text="Indeks"/>
   <l:gentext key="index" text="Indeks"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/pl.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="pl">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Abstrakt"/>
   <l:gentext key="abstract" text="Abstrakt"/>
   <l:gentext key="Answer" text="Odp:"/>
   <l:gentext key="Appendix" text="Dodatek"/>
   <l:gentext key="appendix" text="dodatek"/>
   <l:gentext key="Article" text="Artyku&#322;"/>
   <l:gentext key="article" text="Artyku&#322;"/>
   <l:gentext key="Bibliography" text="Bibliografia"/>
   <l:gentext key="bibliography" text="Bibliografia"/>
   <l:gentext key="Book" text="Ksi&#261;&#380;ka"/>
   <l:gentext key="book" text="Ksi&#261;&#380;ka"/>
   <l:gentext key="CAUTION" text="PRZYPADEK"/>
   <l:gentext key="Caution" text="Uwaga!"/>
   <l:gentext key="caution" text="Uwaga!"/>
   <l:gentext key="Chapter" text="Rozdzia&#322;"/>
   <l:gentext key="chapter" text="rozdzia&#322;;"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedykacja"/>
   <l:gentext key="dedication" text="Dedykacja"/>
   <l:gentext key="Edition" text="Wydanie"/>
   <l:gentext key="edition" text="Wydanie"/>
   <l:gentext key="Equation" text="R&#243;wnanie"/>
   <l:gentext key="equation" text="R&#243;wnanie"/>
   <l:gentext key="Example" text="Przyk&#322;ad"/>
   <l:gentext key="example" text="Przyk&#322;ad"/>
   <l:gentext key="Figure" text="Rysunek"/>
   <l:gentext key="figure" text="Rysunek"/>
   <l:gentext key="Glossary" text="Glossary"/>
   <l:gentext key="glossary" text="Glossary"/>
   <l:gentext key="GlossSee" text="Patrz"/>
   <l:gentext key="glosssee" text="Patrz"/>
   <l:gentext key="GlossSeeAlso" text="Patrz te&#380;"/>
   <l:gentext key="glossseealso" text="Patrz te&#380;"/>
   <l:gentext key="Important" text="WA&#379;NE"/>
   <l:gentext key="important" text="WA&#379;NE"/>
   <l:gentext key="Index" text="Indeks"/>
   <l:gentext key="index" text="Indeks"/>
   <l:gentext key="ISBN" text="ISBN"/>
   <l:gentext key="isbn" text="ISBN"/>
   <l:gentext key="LegalNotice" text=""/>

 =======================================================================
 ==src/xsl/docbook/common/pt.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="pt">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Resumo"/>
   <l:gentext key="abstract" text="Resumo"/>
   <l:gentext key="Answer" text="R:"/>
   <l:gentext key="answer" text="R:"/>
   <l:gentext key="Appendix" text="Ap&#234;ndice"/>
   <l:gentext key="appendix" text="ap&#234;ndice"/>
   <l:gentext key="Article" text="Artigo"/>
   <l:gentext key="article" text="Artigo"/>
   <l:gentext key="Bibliography" text="Bibliografia"/>
   <l:gentext key="bibliography" text="Bibliografia"/>
   <l:gentext key="Book" text="Livro"/>
   <l:gentext key="book" text="Livro"/>
   <l:gentext key="Caution" text="Cautela"/>
   <l:gentext key="caution" text="Cautela"/>
   <l:gentext key="CAUTION" text="CAUTELA"/>
   <l:gentext key="Chapter" text="Cap&#237;tulo"/>
   <l:gentext key="chapter" text="cap&#237;tulo"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedicat&#243;ria"/>
   <l:gentext key="dedication" text="Dedicat&#243;ria"/>
   <l:gentext key="Edition" text="Edi&#231;&#227;o"/>
   <l:gentext key="edition" text="Edi&#231;&#227;o"/>
   <l:gentext key="Equation" text="Equa&#231;&#227;o"/>
   <l:gentext key="equation" text="Equa&#231;&#227;o"/>
   <l:gentext key="Example" text="Exemplo"/>
   <l:gentext key="example" text="Exemplo"/>
   <l:gentext key="Figure" text="Figura"/>
   <l:gentext key="figure" text="Figura"/>
   <l:gentext key="Glossary" text="Glossario"/>
   <l:gentext key="glossary" text="Glossario"/>
   <l:gentext key="GlossSee" text="Ver"/>
   <l:gentext key="glosssee" text="Ver"/>
   <l:gentext key="GlossSeeAlso" text="Ver Tamb&#233;m"/>
   <l:gentext key="glossseealso" text="Ver Tamb&#233;m"/>
   <l:gentext key="IMPORTANT" text="IMPORTANTE"/>
   <l:gentext key="Important" text="Importante"/>
   <l:gentext key="important" text="Importante"/>
   <l:gentext key="Index" text="Index"/>
   <l:gentext key="index" text="Index"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/pt_br.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="pt_br">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Resumo"/>
   <l:gentext key="abstract" text="Resumo"/>
   <l:gentext key="Answer" text="R:"/>
   <l:gentext key="answer" text="R:"/>
   <l:gentext key="Appendix" text="Ap&#234;ndice"/>
   <l:gentext key="appendix" text="ap&#234;ndice"/>
   <l:gentext key="Article" text="Artigo"/>
   <l:gentext key="article" text="Artigo"/>
   <l:gentext key="Bibliography" text="Bibliografia"/>
   <l:gentext key="bibliography" text="Bibliografia"/>
   <l:gentext key="Book" text="Livro"/>
   <l:gentext key="book" text="Livro"/>
   <l:gentext key="Caution" text="Cuidado"/>
   <l:gentext key="caution" text="Cuidado"/>
   <l:gentext key="CAUTION" text="CUIDADO"/>
   <l:gentext key="Chapter" text="Cap&#237;tulo"/>
   <l:gentext key="chapter" text="cap&#237;tulo"/>
   <l:gentext key="Colophon" text="Considera&#231;&#245;es finais"/>
   <l:gentext key="colophon" text="Considera&#231;&#245;es finais"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedicat&#243;ria"/>
   <l:gentext key="dedication" text="Dedicat&#243;ria"/>
   <l:gentext key="Edition" text="Edi&#231;&#227;o"/>
   <l:gentext key="edition" text="Edi&#231;&#227;o"/>
   <l:gentext key="Equation" text="Equa&#231;&#227;o"/>
   <l:gentext key="equation" text="Equa&#231;&#227;o"/>
   <l:gentext key="Example" text="Exemplo"/>
   <l:gentext key="example" text="Exemplo"/>
   <l:gentext key="Figure" text="Figura"/>
   <l:gentext key="figure" text="Figura"/>
   <l:gentext key="Glossary" text="Gloss&#225;rio"/>
   <l:gentext key="glossary" text="Gloss&#225;rio"/>
   <l:gentext key="GlossSee" text="Ver"/>
   <l:gentext key="glosssee" text="Ver"/>
   <l:gentext key="GlossSeeAlso" text="Ver Tamb&#233;m"/>
   <l:gentext key="glossseealso" text="Ver Tamb&#233;m"/>
   <l:gentext key="IMPORTANT" text="IMPORTANTE"/>
   <l:gentext key="Important" text="Importante"/>
   <l:gentext key="important" text="Importante"/>
   <l:gentext key="Index" text="&#205;ndice Remissivo"/>
   <l:gentext key="index" text="&#205;ndice Remissivo"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/ro.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="ro">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Rezumat"/>
   <l:gentext key="abstract" text="Rezumat"/>
   <l:gentext key="Answer" text="A:"/>
   <l:gentext key="answer" text="A:"/>
   <l:gentext key="Appendix" text="Anexa"/>
   <l:gentext key="appendix" text="anexa"/>
   <l:gentext key="Article" text="Articol"/>
   <l:gentext key="article" text="Articol"/>
   <l:gentext key="Bibliography" text="Bibliografie"/>
   <l:gentext key="bibliography" text="Bibliografie"/>
   <l:gentext key="Book" text="Carte"/>
   <l:gentext key="book" text="Carte"/>
   <l:gentext key="CAUTION" text="ATEN&#222;IE"/>
   <l:gentext key="caution" text="Aten&#254;ie"/>
   <l:gentext key="Caution" text="Aten&#254;ie"/>
   <l:gentext key="Chapter" text="Cap."/>
   <l:gentext key="chapter" text="cap."/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedica&#254;ie"/>
   <l:gentext key="dedication" text="Dedica&#254;ie"/>
   <l:gentext key="Edition" text="Edi&#254;ie"/>
   <l:gentext key="edition" text="Edi&#254;ie"/>
   <l:gentext key="Equation" text="ecua&#254;ia"/>
   <l:gentext key="equation" text="ecua&#254;ia"/>
   <l:gentext key="Example" text="Exemplu"/>
   <l:gentext key="example" text="Exemplu"/>
   <l:gentext key="Figure" text="Fig."/>
   <l:gentext key="figure" text="Fig."/>
   <l:gentext key="Glossary" text="Glosar"/>
   <l:gentext key="glossary" text="Glosar"/>
   <l:gentext key="GlossSee" text="Vezi"/>
   <l:gentext key="glosssee" text="Vezi"/>
   <l:gentext key="GlossSeeAlso" text="Vezi &#351;i"/>
   <l:gentext key="glossseealso" text="Vezi &#351;i"/>
   <l:gentext key="IMPORTANT" text="IMPORTANT"/>
   <l:gentext key="Important" text="Important"/>
   <l:gentext key="important" text="Important"/>
   <l:gentext key="Index" text="Index"/>
   <l:gentext key="index" text="Index"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/ru.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="ru">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#1040;&#1085;&#1085;&#1086;&#1090;&#1072;&#1094;&#1080;&#1103;"/>
   <l:gentext key="abstract" text="&#1040;&#1085;&#1085;&#1086;&#1090;&#1072;&#1094;&#1080;&#1103;"/>
   <l:gentext key="Answer" text="A:"/>
   <l:gentext key="answer" text="A:"/>
   <l:gentext key="Appendix" text="&#1055;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077;"/>
   <l:gentext key="appendix" text="&#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077;"/>
   <l:gentext key="Appendix.abr" text="&#1055;&#1088;&#1080;&#1083;."/>
   <l:gentext key="appendix.abr" text="&#1055;&#1088;&#1080;&#1083;."/>
   <l:gentext key="Article" text="&#1057;&#1090;&#1072;&#1090;&#1100;&#1103;"/>
   <l:gentext key="article" text="&#1057;&#1090;&#1072;&#1090;&#1100;&#1103;"/>
   <l:gentext key="Audience" text="&#1040;&#1091;&#1076;&#1080;&#1090;&#1086;&#1088;&#1080;&#1103;"/>
   <l:gentext key="audience" text="&#1040;&#1091;&#1076;&#1080;&#1090;&#1086;&#1088;&#1080;&#1103;"/>
   <l:gentext key="Bibliography" text="&#1051;&#1080;&#1090;&#1077;&#1088;&#1072;&#1090;&#1091;&#1088;&#1072;"/>
   <l:gentext key="bibliography" text="&#1051;&#1080;&#1090;&#1077;&#1088;&#1072;&#1090;&#1091;&#1088;&#1072;"/>
   <l:gentext key="Book" text="&#1050;&#1085;&#1080;&#1075;&#1072;"/>
   <l:gentext key="book" text="&#1050;&#1085;&#1080;&#1075;&#1072;"/>
   <l:gentext key="Caution" text="&#1055;&#1088;&#1077;&#1076;&#1086;&#1089;&#1090;&#1077;&#1088;&#1077;&#1078;&#1077;&#1085;&#1080;&#1077;"/>
   <l:gentext key="caution" text="&#1055;&#1088;&#1077;&#1076;&#1086;&#1089;&#1090;&#1077;&#1088;&#1077;&#1078;&#1077;&#1085;&#1080;&#1077;"/>
   <l:gentext key="CAUTION" text="&#1055;&#1056;&#1045;&#1044;&#1054;&#1057;&#1058;&#1045;&#1056;&#1045;&#1046;&#1045;&#1053;&#1048;&#1045;"/>
   <l:gentext key="Chapter" text="&#1043;&#1083;&#1072;&#1074;&#1072;"/>
   <l:gentext key="chapter" text="&#1075;&#1083;&#1072;&#1074;&#1072;"/>
   <l:gentext key="Chapter.abr" text="&#1043;&#1083;."/>
   <l:gentext key="chapter.abr" text="&#1043;&#1083;."/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="&#1055;&#1086;&#1089;&#1074;&#1103;&#1097;&#1077;&#1085;&#1080;&#1077;"/>
   <l:gentext key="dedication" text="&#1055;&#1086;&#1089;&#1074;&#1103;&#1097;&#1077;&#1085;&#1080;&#1077;"/>
   <l:gentext key="Edition" text="&#1056;&#1077;&#1076;&#1072;&#1082;&#1094;&#1080;&#1103;"/>
   <l:gentext key="edition" text="&#1056;&#1077;&#1076;&#1072;&#1082;&#1094;&#1080;&#1103;"/>
   <l:gentext key="Equation" text="&#1060;&#1086;&#1088;&#1084;&#1091;&#1083;&#1072;"/>
   <l:gentext key="equation" text="&#1060;&#1086;&#1088;&#1084;&#1091;&#1083;&#1072;"/>
   <l:gentext key="Equation.abr" text="&#1060;."/>
   <l:gentext key="equation.abr" text="&#1060;."/>
   <l:gentext key="Example" text="&#1055;&#1088;&#1080;&#1084;&#1077;&#1088;"/>
   <l:gentext key="example" text="&#1055;&#1088;&#1080;&#1084;&#1077;&#1088;"/>
   <l:gentext key="Example.abr" text="&#1055;&#1088;&#1080;&#1084;."/>
   <l:gentext key="example.abr" text="&#1055;&#1088;&#1080;&#1084;."/>
   <l:gentext key="Figure" text="&#1056;&#1080;&#1089;&#1091;&#1085;&#1086;&#1082;"/>
   <l:gentext key="figure" text="&#1056;&#1080;&#1089;&#1091;&#1085;&#1086;&#1082;"/>
   <l:gentext key="Figure.abr" text="&#1056;&#1080;&#1089;."/>
   <l:gentext key="figure.abr" text="&#1056;&#1080;&#1089;."/>

 =======================================================================
 ==src/xsl/docbook/common/sk.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="sk">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Obsah"/>
   <l:gentext key="abstract" text="Obsah"/>
   <l:gentext key="Answer" text="A:"/>
   <l:gentext key="answer" text="A:"/>
   <l:gentext key="Appendix" text="Dodatok"/>
   <l:gentext key="appendix" text="dodatok"/>
   <l:gentext key="Article" text="&#268;l&#225;nok"/>
   <l:gentext key="article" text="&#268;l&#225;nok"/>
   <l:gentext key="Bibliography" text="Bibliografia"/>
   <l:gentext key="bibliography" text="Bibliografia"/>
   <l:gentext key="Book" text="Kniha"/>
   <l:gentext key="book" text="Kniha"/>
   <l:gentext key="CAUTION" text="V&#221;STRAHA"/>
   <l:gentext key="caution" text="V&#253;straha"/>
   <l:gentext key="Caution" text="V&#253;straha"/>
   <l:gentext key="Chapter" text="Kapitola"/>
   <l:gentext key="chapter" text="kapitola"/>
   <l:gentext key="Colophon" text="Tir&#225;&#382;"/>
   <l:gentext key="colophon" text="Tir&#225;&#382;"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Venovanie"/>
   <l:gentext key="dedication" text="Venovanie"/>
   <l:gentext key="Edition" text="Vydanie"/>
   <l:gentext key="edition" text="Vydanie"/>
   <l:gentext key="Equation" text="Rovnice"/>
   <l:gentext key="equation" text="Rovnice"/>
   <l:gentext key="Example" text="Pr&#237;klad"/>
   <l:gentext key="example" text="Pr&#237;klad"/>
   <l:gentext key="Figure" text="Obr&#225;zok"/>
   <l:gentext key="figure" text="Obr&#225;zok"/>
   <l:gentext key="Glossary" text="Slovn&#237;k"/>
   <l:gentext key="glossary" text="Slovn&#237;k"/>
   <l:gentext key="GlossSee" text="Pozri"/>
   <l:gentext key="glosssee" text="Pozri"/>
   <l:gentext key="GlossSeeAlso" text="Pozri tie&#382;"/>
   <l:gentext key="glossseealso" text="Pozri tie&#382;"/>
   <l:gentext key="IMPORTANT" text="D&#212;LE&#381;IT&#201;"/>
   <l:gentext key="Important" text="D&#244;le&#382;it&#233;"/>
   <l:gentext key="important" text="D&#244;le&#382;it&#233;"/>
   <l:gentext key="Index" text="Zoznam"/>
   <l:gentext key="index" text="Zoznam"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/sl.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="sl">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Povzetek"/>
   <l:gentext key="abstract" text="Povzetek"/>
   <l:gentext key="Answer" text="O:"/>
   <l:gentext key="answer" text="O:"/>
   <l:gentext key="Appendix" text="Dodatek"/>
   <l:gentext key="appendix" text="dodatek"/>
   <l:gentext key="Article" text="&#268;lanek"/>
   <l:gentext key="article" text="&#268;lanek"/>
   <l:gentext key="Bibliography" text="Literatura"/>
   <l:gentext key="bibliography" text="Literatura"/>
   <l:gentext key="Book" text="Knjiga"/>
   <l:gentext key="book" text="Knjiga"/>
   <l:gentext key="Caution" text="Opozorilo"/>
   <l:gentext key="caution" text="Opozorilo"/>
   <l:gentext key="CAUTION" text="OPOZORILO"/>
   <l:gentext key="Chapter" text="Poglavje"/>
   <l:gentext key="chapter" text="poglavje"/>
   <l:gentext key="Colophon" text="Kolofon"/>
   <l:gentext key="colophon" text="Kolofon"/>
   <l:gentext key="Copyright" text="Pravna za&#353;&#269;ita"/>
   <l:gentext key="copyright" text="Pravna za&#353;&#269;ita"/>
   <l:gentext key="Dedication" text="Posvetilo"/>
   <l:gentext key="dedication" text="Posvetilo"/>
   <l:gentext key="Edition" text="Izdaja"/>
   <l:gentext key="edition" text="Izdaja"/>
   <l:gentext key="Equation" text="Ena&#269;ba"/>
   <l:gentext key="equation" text="Ena&#269;ba"/>
   <l:gentext key="Example" text="Primer"/>
   <l:gentext key="example" text="Primer"/>
   <l:gentext key="Figure" text="Slika"/>
   <l:gentext key="figure" text="Slika"/>
   <l:gentext key="Glossary" text="Slovar&#269;ek"/>
   <l:gentext key="glossary" text="Slovar&#269;ek"/>
   <l:gentext key="GlossSee" text="glej"/>
   <l:gentext key="glosssee" text="glej"/>
   <l:gentext key="GlossSeeAlso" text="glej tudi"/>
   <l:gentext key="glossseealso" text="glej tudi"/>
   <l:gentext key="IMPORTANT" text="POMEMBNO"/>
   <l:gentext key="Important" text="Pomembno"/>
   <l:gentext key="important" text="Pomembno"/>
   <l:gentext key="Index" text="Stvarno kazalo"/>
   <l:gentext key="index" text="Stvarno kazalo"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/sr.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="sr">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Pregled"/>
   <l:gentext key="abstract" text="Pregled"/>
   <l:gentext key="Answer" text="O:"/>
   <l:gentext key="answer" text="O:"/>
   <l:gentext key="Appendix" text="Dodatak"/>
   <l:gentext key="appendix" text="dodatak"/>
   <l:gentext key="Article" text="&#268;lanak"/>
   <l:gentext key="article" text="&#268;lanak"/>
   <l:gentext key="Bibliography" text="Literatura"/>
   <l:gentext key="bibliography" text="Literatura"/>
   <l:gentext key="Book" text="Knjiga"/>
   <l:gentext key="book" text="Knjiga"/>
   <l:gentext key="Caution" text="Upozorenje"/>
   <l:gentext key="caution" text="Upozorenje"/>
   <l:gentext key="CAUTION" text="UPOZORENJE"/>
   <l:gentext key="Chapter" text="Poglavlje"/>
   <l:gentext key="chapter" text="poglavlje"/>
   <l:gentext key="Colophon" text="Kolofon"/>
   <l:gentext key="colophon" text="Kolofon"/>
   <l:gentext key="Copyright" text="Pravna za&#353;tita"/>
   <l:gentext key="copyright" text="Pravna za&#353;tita"/>
   <l:gentext key="Dedication" text="Posveta"/>
   <l:gentext key="dedication" text="Posveta"/>
   <l:gentext key="Edition" text="Izdanje"/>
   <l:gentext key="edition" text="Izdanje"/>
   <l:gentext key="Equation" text="Jedna&#269;ina"/>
   <l:gentext key="equation" text="Jedna&#269;ina"/>
   <l:gentext key="Example" text="Primer"/>
   <l:gentext key="example" text="Primer"/>
   <l:gentext key="Figure" text="Slika"/>
   <l:gentext key="figure" text="Slika"/>
   <l:gentext key="Glossary" text="Re&#269;nik"/>
   <l:gentext key="glossary" text="Re&#269;nik"/>
   <l:gentext key="GlossSee" text="Vidi"/>
   <l:gentext key="glosssee" text="Vidi"/>
   <l:gentext key="GlossSeeAlso" text="Vidi tako&#273;e"/>
   <l:gentext key="glossseealso" text="Vidi tako&#273;e"/>
   <l:gentext key="IMPORTANT" text="VA&#381;NO"/>
   <l:gentext key="Important" text="Va&#382;no"/>
   <l:gentext key="important" text="Va&#382;no"/>
   <l:gentext key="Index" text="Indeks"/>
   <l:gentext key="index" text="Indeks"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/subtitles.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ============================================================ -->
<!-- subtitle markup -->

<doc:mode mode="subtitle.markup" xmlns="">
<refpurpose>Provides access to element subtitles</refpurpose>
<refdescription>
<para>Processing an element in the
<literal role="mode">subtitle.markup</literal> mode produces the
subtitle of the element.
</para>
</refdescription>
</doc:mode>

<xsl:template match="*" mode="subtitle.markup">
  <xsl:message>
    <xsl:text>Request for subtitle of unexpected element: </xsl:text>
    <xsl:value-of select="name(.)"/>
  </xsl:message>
  <xsl:text>???SUBTITLE???</xsl:text>
</xsl:template>

<xsl:template match="subtitle" mode="subtitle.markup">
  <xsl:param name="allow-anchors" select="'0'"/>
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="set" mode="subtitle.markup">
  <xsl:param name="allow-anchors" select="'0'"/>
  <xsl:apply-templates select="(setinfo/subtitle|subtitle)[1]"
                       mode="subtitle.markup">
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
  </xsl:apply-templates>
</xsl:template>

<xsl:template match="book" mode="subtitle.markup">
  <xsl:param name="allow-anchors" select="'0'"/>
  <xsl:apply-templates select="(bookinfo/subtitle|subtitle)[1]"
                       mode="subtitle.markup">
    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
  </xsl:apply-templates>
</xsl:template>

<xsl:template match="part" mode="subtitle.markup">
  <xsl:param name="allow-anchors" select="'0'"/>

 =======================================================================
 ==src/xsl/docbook/common/sv.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="sv">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Sammanfattning"/>
   <l:gentext key="abstract" text="Sammanfattning"/>
   <l:gentext key="Answer" text="A:"/>
   <l:gentext key="answer" text="A:"/>
   <l:gentext key="Appendix" text="Appendix"/>
   <l:gentext key="appendix" text="appendix"/>
   <l:gentext key="Article" text="Artikel"/>
   <l:gentext key="article" text="Artikel"/>
   <l:gentext key="Bibliography" text="Bibliografi"/>
   <l:gentext key="bibliography" text="Bibliografi"/>
   <l:gentext key="Book" text="Bok"/>
   <l:gentext key="book" text="Bok"/>
   <l:gentext key="CAUTION" text="OBSERVERA"/>
   <l:gentext key="Caution" text="Observera"/>
   <l:gentext key="caution" text="Observera"/>
   <l:gentext key="Chapter" text="Kapitel"/>
   <l:gentext key="chapter" text="kapitel"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Copyright"/>
   <l:gentext key="copyright" text="Copyright"/>
   <l:gentext key="Dedication" text="Dedikation"/>
   <l:gentext key="dedication" text="Dedikation"/>
   <l:gentext key="Edition" text="Utg&#229;va"/>
   <l:gentext key="edition" text="Utg&#229;va"/>
   <l:gentext key="Equation" text="Ekvation"/>
   <l:gentext key="equation" text="Ekvation"/>
   <l:gentext key="Example" text="Exempel"/>
   <l:gentext key="example" text="Exempel"/>
   <l:gentext key="Figure" text="Figur"/>
   <l:gentext key="figure" text="Figur"/>
   <l:gentext key="Glossary" text="Gloslista"/>
   <l:gentext key="glossary" text="Gloslista"/>
   <l:gentext key="GlossSee" text="Se"/>
   <l:gentext key="glosssee" text="Se"/>
   <l:gentext key="GlossSeeAlso" text="Se &#196;ven"/>
   <l:gentext key="glossseealso" text="Se &#196;ven"/>
   <l:gentext key="IMPORTANT" text="VIKTIGT"/>
   <l:gentext key="Important" text="Viktigt"/>
   <l:gentext key="important" text="Viktigt"/>
   <l:gentext key="Index" text="Index"/>
   <l:gentext key="index" text="Index"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/table.xsl
 =======================================================================
 <?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version="1.0">

<xsl:template name="blank.spans">
  <xsl:param name="cols" select="1"/>
  <xsl:if test="$cols &gt; 0">
    <xsl:text>0:</xsl:text>
    <xsl:call-template name="blank.spans">
      <xsl:with-param name="cols" select="$cols - 1"/>
    </xsl:call-template>
  </xsl:if>
</xsl:template>

<xsl:template name="calculate.following.spans">
  <xsl:param name="colspan" select="1"/>
  <xsl:param name="spans" select="''"/>

  <xsl:choose>
    <xsl:when test="$colspan &gt; 0">
      <xsl:call-template name="calculate.following.spans">
        <xsl:with-param name="colspan" select="$colspan - 1"/>
        <xsl:with-param name="spans" select="substring-after($spans,':')"/>
      </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$spans"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="finaltd">
  <xsl:param name="spans"/>
  <xsl:param name="col" select="0"/>

  <xsl:if test="$spans != ''">
    <xsl:choose>
      <xsl:when test="starts-with($spans,'0:')">
        <xsl:call-template name="empty.table.cell">
          <xsl:with-param name="colnum" select="$col"/>
        </xsl:call-template>
      </xsl:when>
      <xsl:otherwise></xsl:otherwise>
    </xsl:choose>

    <xsl:call-template name="finaltd">
      <xsl:with-param name="spans" select="substring-after($spans,':')"/>
      <xsl:with-param name="col" select="$col+1"/>

 =======================================================================
 ==src/xsl/docbook/common/th.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="th">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#3610;&#3607;&#3588;&#3633;&#3604;&#3618;&#3656;&#3629;"/>
   <l:gentext key="abstract" text="&#3610;&#3607;&#3588;&#3633;&#3604;&#3618;&#3656;&#3629;"/>
   <l:gentext key="Answer" text="&#3605;&#3629;&#3610;:"/>
   <l:gentext key="answer" text="&#3605;&#3629;&#3610;:"/>
   <l:gentext key="Appendix" text="&#3616;&#3634;&#3588;&#3612;&#3609;&#3623;&#3585;"/>
   <l:gentext key="appendix" text="&#3616;&#3634;&#3588;&#3612;&#3609;&#3623;&#3585;"/>
   <l:gentext key="Article" text="&#3610;&#3607;&#3588;&#3623;&#3634;&#3617;"/>
   <l:gentext key="article" text="&#3610;&#3607;&#3588;&#3623;&#3634;&#3617;"/>
   <l:gentext key="Bibliography" text="&#3610;&#3619;&#3619;&#3603;&#3634;&#3609;&#3640;&#3585;&#3619;&#3617;"/>
   <l:gentext key="bibliography" text="&#3610;&#3619;&#3619;&#3603;&#3634;&#3609;&#3640;&#3585;&#3619;&#3617;"/>
   <l:gentext key="Book" text="&#3627;&#3609;&#3633;&#3591;&#3626;&#3639;&#3629;"/>
   <l:gentext key="book" text="&#3627;&#3609;&#3633;&#3591;&#3626;&#3639;&#3629;"/>
   <l:gentext key="CAUTION" text="&#3588;&#3635;&#3648;&#3605;&#3639;&#3629;&#3609;"/>
   <l:gentext key="Caution" text="&#3588;&#3635;&#3648;&#3605;&#3639;&#3629;&#3609;"/>
   <l:gentext key="caution" text="&#3588;&#3635;&#3648;&#3605;&#3639;&#3629;&#3609;"/>
   <l:gentext key="Chapter" text="&#3610;&#3607;&#3607;&#3637;&#3656;"/>
   <l:gentext key="chapter" text="&#3610;&#3607;&#3607;&#3637;&#3656;"/>
   <l:gentext key="Colophon" text="&#3648;&#3610;&#3639;&#3657;&#3629;&#3591;&#3627;&#3621;&#3633;&#3591;"/>
   <l:gentext key="colophon" text="&#3648;&#3610;&#3639;&#3657;&#3629;&#3591;&#3627;&#3621;&#3633;&#3591;"/>
   <l:gentext key="Copyright" text="&#3626;&#3591;&#3623;&#3609;&#3626;&#3636;&#3586;&#3626;&#3636;&#3607;&#3608;&#3636;&#3660;"/>
   <l:gentext key="copyright" text="&#3626;&#3591;&#3623;&#3609;&#3626;&#3636;&#3586;&#3626;&#3636;&#3607;&#3608;&#3636;&#3660;"/>
   <l:gentext key="Dedication" text="&#3588;&#3635;&#3629;&#3640;&#3607;&#3636;&#3624;"/>
   <l:gentext key="dedication" text="&#3588;&#3635;&#3629;&#3640;&#3607;&#3636;&#3624;"/>
   <l:gentext key="Edition" text="&#3593;&#3610;&#3633;&#3610;"/>
   <l:gentext key="edition" text="&#3593;&#3610;&#3633;&#3610;"/>
   <l:gentext key="Equation" text="&#3626;&#3617;&#3585;&#3634;&#3619;"/>
   <l:gentext key="equation" text="&#3626;&#3617;&#3585;&#3634;&#3619;"/>
   <l:gentext key="Example" text="&#3605;&#3633;&#3623;&#3629;&#3618;&#3656;&#3634;&#3591;"/>
   <l:gentext key="example" text="&#3605;&#3633;&#3623;&#3629;&#3618;&#3656;&#3634;&#3591;"/>
   <l:gentext key="Figure" text="&#3619;&#3641;&#3611;"/>
   <l:gentext key="figure" text="&#3619;&#3641;&#3611;"/>
   <l:gentext key="Glossary" text="&#3629;&#3616;&#3636;&#3607;&#3634;&#3609;&#3624;&#3633;&#3614;&#3607;&#3660;"/>
   <l:gentext key="glossary" text="&#3629;&#3616;&#3636;&#3607;&#3634;&#3609;&#3624;&#3633;&#3614;&#3607;&#3660;"/>
   <l:gentext key="GlossSee" text="&#3604;&#3641;"/>
   <l:gentext key="glosssee" text="&#3604;&#3641;"/>
   <l:gentext key="GlossSeeAlso" text="&#3604;&#3641;&#3648;&#3614;&#3636;&#3656;&#3617;&#3648;&#3605;&#3636;&#3617;"/>
   <l:gentext key="glossseealso" text="&#3604;&#3641;&#3648;&#3614;&#3636;&#3656;&#3617;&#3648;&#3605;&#3636;&#3617;"/>
   <l:gentext key="IMPORTANT" text="&#3586;&#3657;&#3629;&#3588;&#3623;&#3619;&#3592;&#3635;"/>
   <l:gentext key="important" text="&#3586;&#3657;&#3629;&#3588;&#3623;&#3619;&#3592;&#3635;"/>
   <l:gentext key="Important" text="&#3586;&#3657;&#3629;&#3588;&#3623;&#3619;&#3592;&#3635;"/>
   <l:gentext key="Index" text="&#3604;&#3619;&#3619;&#3594;&#3609;&#3637;"/>
   <l:gentext key="index" text="&#3604;&#3619;&#3619;&#3594;&#3609;&#3637;"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/titles.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ============================================================ -->
<!-- title markup -->

<doc:mode mode="title.markup" xmlns="">
<refpurpose>Provides access to element titles</refpurpose>
<refdescription>
<para>Processing an element in the
<literal role="mode">title.markup</literal> mode produces the
title of the element. This does not include the label.
</para>
</refdescription>
</doc:mode>

<xsl:template match="*" mode="title.markup">
  <xsl:param name="allow-anchors" select="0"/>
  <xsl:choose>
    <xsl:when test="title">
      <xsl:apply-templates select="title[1]" mode="title.markup">
	<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
      </xsl:apply-templates>
    </xsl:when>
    <xsl:when test="local-name(.) = 'partintro'">
      <!-- partintro's don't have titles, use the parent (part or reference)
           title instead. -->
      <xsl:apply-templates select="parent::*" mode="title.markup"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:message>
	<xsl:text>Request for title of unexpected element: </xsl:text>
	<xsl:value-of select="name(.)"/>
      </xsl:message>
      <xsl:text>???TITLE???</xsl:text>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="title" mode="title.markup">
  <xsl:param name="allow-anchors" select="0"/>
  <xsl:choose>
    <xsl:when test="$allow-anchors != 0">
      <xsl:apply-templates/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates mode="no.anchor.mode"/>

 =======================================================================
 ==src/xsl/docbook/common/tr.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="tr">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#214;zet"/>
   <l:gentext key="abstract" text="&#214;zet"/>
   <l:gentext key="Answer" text="Cevap:"/>
   <l:gentext key="answer" text="Cevap:"/>
   <l:gentext key="Appendix" text="Ek"/>
   <l:gentext key="appendix" text="Ek"/>
   <l:gentext key="Article" text="Makale"/>
   <l:gentext key="article" text="Makale"/>
   <l:gentext key="Bibliography" text="Kaynak&#231;a"/>
   <l:gentext key="bibliography" text="Kaynak&#231;a"/>
   <l:gentext key="Book" text="Kitap"/>
   <l:gentext key="book" text="Kitap"/>
   <l:gentext key="CAUTION" text="D&#221;KKAT"/>
   <l:gentext key="Caution" text="Dikkat"/>
   <l:gentext key="caution" text="Dikkat"/>
   <l:gentext key="Chapter" text="B&#246;l&#252;m"/>
   <l:gentext key="chapter" text="B&#246;l&#252;m"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="Telif hakk&#253;"/>
   <l:gentext key="copyright" text="Telif hakk&#253;"/>
   <l:gentext key="Dedication" text="&#221;thaf"/>
   <l:gentext key="dedication" text="&#221;thaf"/>
   <l:gentext key="Edition" text="Bask&#253;"/>
   <l:gentext key="edition" text="Bask&#253;"/>
   <l:gentext key="Equation" text="Denklem"/>
   <l:gentext key="equation" text="Denklem"/>
   <l:gentext key="Example" text="&#214;rnek"/>
   <l:gentext key="example" text="&#214;rnek"/>
   <l:gentext key="Figure" text="&#222;ekil"/>
   <l:gentext key="figure" text="&#254;ekil"/>
   <l:gentext key="Glossary" text="S&#246;zl&#252;k"/>
   <l:gentext key="glossary" text="S&#246;zl&#252;k"/>
   <l:gentext key="GlossSee" text="Bkz."/>
   <l:gentext key="glosssee" text="Bkz."/>
   <l:gentext key="GlossSeeAlso" text="Bkz."/>
   <l:gentext key="glossseealso" text="Bkz."/>
   <l:gentext key="IMPORTANT" text="&#214;NEML&#221;"/>
   <l:gentext key="Important" text="&#214;nemli"/>
   <l:gentext key="important" text="&#214;nemli"/>
   <l:gentext key="Index" text="Dizin"/>
   <l:gentext key="index" text="Dizin"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/uk.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="uk">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#1040;&#1085;&#1086;&#1090;&#1072;&#1094;&#1110;&#1103;"/>
   <l:gentext key="abstract" text="&#1040;&#1085;&#1086;&#1090;&#1072;&#1094;&#1110;&#1103;"/>
   <l:gentext key="Answer" text="&#1042;:"/>
   <l:gentext key="answer" text="&#1074;:"/>
   <l:gentext key="Appendix" text="&#1044;&#1086;&#1076;&#1072;&#1090;&#1086;&#1082;"/>
   <l:gentext key="appendix" text="&#1076;&#1086;&#1076;&#1072;&#1090;&#1086;&#1082;"/>
   <l:gentext key="Appendix.abr" text="&#1044;&#1086;&#1076;."/>
   <l:gentext key="appendix.abr" text="&#1076;&#1086;&#1076;."/>
   <l:gentext key="Article" text="&#1057;&#1090;&#1072;&#1090;&#1090;&#1103;"/>
   <l:gentext key="article" text="&#1089;&#1090;&#1072;&#1090;&#1090;&#1103;"/>
   <l:gentext key="Audience" text="&#1040;&#1091;&#1076;&#1080;&#1090;&#1086;&#1088;&#1110;&#1103;"/>
   <l:gentext key="audience" text="&#1040;&#1091;&#1076;&#1080;&#1090;&#1086;&#1088;&#1110;&#1103;"/>
   <l:gentext key="Bibliography" text="&#1051;&#1080;&#1090;&#1077;&#1088;&#1072;&#1090;&#1091;&#1088;&#1072;"/>
   <l:gentext key="bibliography" text="&#1083;&#1080;&#1090;&#1077;&#1088;&#1072;&#1090;&#1091;&#1088;&#1072;"/>
   <l:gentext key="Book" text="&#1050;&#1085;&#1080;&#1075;&#1072;"/>
   <l:gentext key="book" text="&#1082;&#1085;&#1080;&#1075;&#1072;"/>
   <l:gentext key="Caution" text="&#1047;&#1072;&#1089;&#1090;&#1077;&#1088;&#1077;&#1078;&#1077;&#1085;&#1085;&#1103;"/>
   <l:gentext key="Caution" text="&#1079;&#1072;&#1089;&#1090;&#1077;&#1088;&#1077;&#1078;&#1077;&#1085;&#1085;&#1103;"/>
   <l:gentext key="CAUTION" text="&#1047;&#1040;&#1057;&#1058;&#1045;&#1056;&#1045;&#1046;&#1045;&#1053;&#1053;&#1071;"/>
   <l:gentext key="Chapter" text="&#1056;&#1086;&#1079;&#1076;&#1110;&#1083;"/>
   <l:gentext key="chapter" text="&#1088;&#1086;&#1079;&#1076;&#1110;&#1083;"/>
   <l:gentext key="Chapter.abr" text="&#1056;&#1086;&#1079;&#1076;."/>
   <l:gentext key="chapter.abr" text="&#1088;&#1086;&#1079;&#1076;."/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="&#1040;&#1074;&#1090;&#1086;&#1088;&#1089;&#1100;&#1082;&#1077; &#1087;&#1088;&#1072;&#1074;&#1086;"/>
   <l:gentext key="copyright" text="&#1072;&#1074;&#1090;&#1086;&#1088;&#1089;&#1100;&#1082;&#1077; &#1087;&#1088;&#1072;&#1074;&#1086;"/>
   <l:gentext key="Dedication" text="&#1055;&#1088;&#1080;&#1089;&#1074;&#1103;&#1095;&#1077;&#1085;&#1085;&#1103;"/>
   <l:gentext key="dedication" text="&#1087;&#1088;&#1080;&#1089;&#1074;&#1103;&#1095;&#1077;&#1085;&#1085;&#1103;"/>
   <l:gentext key="Edition" text="&#1042;&#1080;&#1076;&#1072;&#1085;&#1085;&#1103;"/>
   <l:gentext key="edition" text="&#1074;&#1080;&#1076;&#1072;&#1085;&#1085;&#1103;"/>
   <l:gentext key="Equation" text="&#1060;&#1086;&#1088;&#1084;&#1091;&#1083;&#1072;"/>
   <l:gentext key="equation" text="&#1060;&#1086;&#1088;&#1084;&#1091;&#1083;&#1072;"/>
   <l:gentext key="Equation.abr" text="&#1060;."/>
   <l:gentext key="equation.abr" text="&#1060;."/>
   <l:gentext key="Example" text="&#1055;&#1088;&#1080;&#1082;&#1083;&#1072;&#1076;"/>
   <l:gentext key="example" text="&#1087;&#1088;&#1080;&#1082;&#1083;&#1072;&#1076;"/>
   <l:gentext key="Example.abr" text="&#1055;&#1088;&#1080;&#1082;&#1083;."/>
   <l:gentext key="example.abr" text="&#1087;&#1088;&#1080;&#1082;&#1083;."/>
   <l:gentext key="Figure" text="&#1056;&#1080;&#1089;&#1091;&#1085;&#1086;&#1082;"/>
   <l:gentext key="figure" text="&#1056;&#1080;&#1089;&#1091;&#1085;&#1086;&#1082;"/>
   <l:gentext key="Figure.abr" text="&#1056;&#1080;&#1089;."/>
   <l:gentext key="figure.abr" text="&#1056;&#1080;&#1089;."/>

 =======================================================================
 ==src/xsl/docbook/common/xh.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="xh">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="Isiqalo"/>
   <l:gentext key="abstract" text="Isiqalo"/>
   <l:gentext key="Answer" text="I:"/>
   <l:gentext key="answer" text="I:"/>
   <l:gentext key="Appendix" text="Isivalo"/>
   <l:gentext key="appendix" text="isivalo"/>
   <l:gentext key="Article" text="Umba"/>
   <l:gentext key="article" text="Umba"/>
   <l:gentext key="Bibliography" text="Ezobunzululwazi"/>
   <l:gentext key="bibliography" text="Ezobunzululwazi"/>
   <l:gentext key="Book" text="Incwadi"/>
   <l:gentext key="book" text="Incwadi"/>
   <l:gentext key="CAUTION" text="ISILUMKISO"/>
   <l:gentext key="Caution" text="Isilumkiso"/>
   <l:gentext key="caution" text="Isilumkiso"/>
   <l:gentext key="Chapter" text="Isiqendu"/>
   <l:gentext key="chapter" text="isiqendu"/>
   <l:gentext key="Colophon" text="Ikolophon"/>
   <l:gentext key="colophon" text="Ikolophon"/>
   <l:gentext key="Copyright" text="Ushicilelo olusemthethweni"/>
   <l:gentext key="copyright" text="Ushicilelo olusemthethweni"/>
   <l:gentext key="Dedication" text="Ulwaziso"/>
   <l:gentext key="dedication" text="Ulwaziso"/>
   <l:gentext key="Edition" text="Uhlelo"/>
   <l:gentext key="edition" text="Uhlelo"/>
   <l:gentext key="Equation" text="Ulinganiselo"/>
   <l:gentext key="equation" text="Ulinganiselo"/>
   <l:gentext key="Example" text="Umzekelo"/>
   <l:gentext key="example" text="Umzekelo"/>
   <l:gentext key="Figure" text="Ulungu"/>
   <l:gentext key="figure" text="Ulungu"/>
   <l:gentext key="Glossary" text="Inkcazelo yamagama"/>
   <l:gentext key="glossary" text="Inkcazelo yamagama"/>
   <l:gentext key="GlossSee" text="Bona"/>
   <l:gentext key="glosssee" text="Bona"/>
   <l:gentext key="GlossSeeAlso" text="Bona Kwakhona"/>
   <l:gentext key="glossseealso" text="Bona Kwakhona"/>
   <l:gentext key="IMPORTANT" text="IBALULEKILE"/>
   <l:gentext key="important" text="Ibalulekile"/>
   <l:gentext key="Important" text="Ibalulekile"/>
   <l:gentext key="Index" text="Isalathiso"/>
   <l:gentext key="index" text="Isalathiso"/>
   <l:gentext key="ISBN" text="iISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/zh_cn.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="zh_cn">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="Abstract" text="&#25688;&#35201;"/>
   <l:gentext key="abstract" text="&#25688;&#35201;"/>
   <l:gentext key="Answer" text="&#31572;:"/>
   <l:gentext key="answer" text="&#31572;:"/>
   <l:gentext key="Appendix" text="&#38468;&#24405;"/>
   <l:gentext key="appendix" text="&#38468;&#24405;"/>
   <l:gentext key="Article" text="&#25991;&#31456;"/>
   <l:gentext key="article" text="&#25991;&#31456;"/>
   <l:gentext key="Bibliography" text="&#21442;&#32771;&#20070;&#30446;"/>
   <l:gentext key="bibliography" text="&#21442;&#32771;&#20070;&#30446;"/>
   <l:gentext key="Book" text="&#20070;&#30446;"/>
   <l:gentext key="book" text="&#20070;&#30446;"/>
   <l:gentext key="CAUTION" text="&#27880;&#24847;"/>
   <l:gentext key="Caution" text="&#27880;&#24847;"/>
   <l:gentext key="caution" text="&#27880;&#24847;"/>
   <l:gentext key="Chapter" text="&#31456;"/>
   <l:gentext key="chapter" text="&#31456;"/>
   <l:gentext key="Colophon" text="Colophon"/>
   <l:gentext key="colophon" text="Colophon"/>
   <l:gentext key="Copyright" text="&#29256;&#26435;"/>
   <l:gentext key="copyright" text="&#29256;&#26435;"/>
   <l:gentext key="Dedication" text="&#22857;&#29486;"/>
   <l:gentext key="dedication" text="&#22857;&#29486;"/>
   <l:gentext key="Edition" text="&#29256;"/>
   <l:gentext key="edition" text="&#29256;"/>
   <l:gentext key="Equation" text="&#26041;&#31243;"/>
   <l:gentext key="equation" text="&#26041;&#31243;"/>
   <l:gentext key="Example" text="&#20363;&#23376;"/>
   <l:gentext key="example" text="&#20363;&#23376;"/>
   <l:gentext key="Figure" text="&#22270;&#24418;"/>
   <l:gentext key="figure" text="&#22270;&#24418;"/>
   <l:gentext key="Glossary" text="&#26415;&#35821;&#34920;"/>
   <l:gentext key="glossary" text="&#26415;&#35821;&#34920;"/>
   <l:gentext key="GlossSee" text="&#35265;"/>
   <l:gentext key="glosssee" text="&#35265;"/>
   <l:gentext key="GlossSeeAlso" text="&#21478;&#35265;"/>
   <l:gentext key="glossseealso" text="&#21478;&#35265;"/>
   <l:gentext key="IMPORTANT" text="&#37325;&#35201;"/>
   <l:gentext key="Important" text="&#37325;&#35201;"/>
   <l:gentext key="important" text="&#37325;&#35201;"/>
   <l:gentext key="Index" text="&#32034;&#24341;"/>
   <l:gentext key="index" text="&#32034;&#24341;"/>
   <l:gentext key="ISBN" text="ISBN"/>

 =======================================================================
 ==src/xsl/docbook/common/zh_tw.xml
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="zh_tw">

<!-- This file is generated automatically. -->
<!-- Do not edit this file by hand! -->
<!-- See http://docbook.sourceforge.net/ -->

   <l:gentext key="abstract" text="&#25688;&#35201;"/>
   <l:gentext key="Abstract" text="&#25688;&#35201;"/>
   <l:gentext key="Answer" text="&#31572;&#65306;"/>
   <l:gentext key="answer" text="&#31572;&#65306;"/>
   <l:gentext key="Appendix" text="&#38468;&#37636;"/>
   <l:gentext key="appendix" text="&#38468;&#37636;"/>
   <l:gentext key="article" text="&#25991;&#31456;"/>
   <l:gentext key="Article" text="&#25991;&#31456;"/>
   <l:gentext key="Bibliography" text="&#21443;&#32771;&#25991;&#29563;"/>
   <l:gentext key="bibliography" text="&#21443;&#32771;&#25991;&#29563;"/>
   <l:gentext key="book" text="&#26360;&#30446;"/>
   <l:gentext key="Book" text="&#26360;&#30446;"/>
   <l:gentext key="caution" text="&#27880;&#24847;"/>
   <l:gentext key="Caution" text="&#27880;&#24847;"/>
   <l:gentext key="Chapter" text="&#31456;"/>
   <l:gentext key="chapter" text="&#31456;"/>
   <l:gentext key="colophon" text="&#29256;&#26412;&#35352;&#37636;"/>
   <l:gentext key="Colophon" text="&#29256;&#26412;&#35352;&#37636;"/>
   <l:gentext key="copyright" text="&#29256;&#27402;"/>
   <l:gentext key="Copyright" text="&#29256;&#27402;"/>
   <l:gentext key="dedication" text="&#22857;&#29563;"/>
   <l:gentext key="Dedication" text="&#22857;&#29563;"/>
   <l:gentext key="Edition" text="&#29256;"/>
   <l:gentext key="edition" text="&#29256;"/>
   <l:gentext key="Equation" text="&#26041;&#31243;&#24335;"/>
   <l:gentext key="equation" text="&#26041;&#31243;&#24335;"/>
   <l:gentext key="Example" text="&#31684;&#20363;"/>
   <l:gentext key="example" text="&#31684;&#20363;"/>
   <l:gentext key="Figure" text="&#22294;&#24418;"/>
   <l:gentext key="figure" text="&#22294;&#24418;"/>
   <l:gentext key="Glossary" text="&#23567;&#36781;&#24409;"/>
   <l:gentext key="glossary" text="&#23567;&#36781;&#24409;"/>
   <l:gentext key="GlossSee" text="&#21443;&#35211;"/>
   <l:gentext key="glosssee" text="&#21443;&#35211;"/>
   <l:gentext key="GlossSeeAlso" text="&#21478;&#21443;&#35211;"/>
   <l:gentext key="glossseealso" text="&#21478;&#21443;&#35211;"/>
   <l:gentext key="Important" text="&#37325;&#35201;"/>
   <l:gentext key="important" text="&#37325;&#35201;"/>
   <l:gentext key="index" text="&#32034;&#24341;"/>
   <l:gentext key="Index" text="&#32034;&#24341;"/>
   <l:gentext key="isbn" text="ISBN"/>
   <l:gentext key="legalnotice" text="&#27861;&#24459;&#32882;&#26126;"/>
   <l:gentext key="LegalNotice" text="&#27861;&#24459;&#32882;&#26126;"/>

 =======================================================================
 ==src/xsl/docbook/html/admon.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: admon.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="admon.graphic.width">
  <xsl:param name="node" select="."/>
  <xsl:text>25</xsl:text>
</xsl:template>

<xsl:template match="note|important|warning|caution|tip">
  <xsl:choose>
    <xsl:when test="$admon.graphics != 0">
      <xsl:call-template name="graphical.admonition"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="nongraphical.admonition"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="admon.graphic">
  <xsl:param name="node" select="."/>
  <xsl:value-of select="$admon.graphics.path"/>
  <xsl:choose>
    <xsl:when test="name($node)='note'">note</xsl:when>
    <xsl:when test="name($node)='warning'">warning</xsl:when>
    <xsl:when test="name($node)='caution'">caution</xsl:when>
    <xsl:when test="name($node)='tip'">tip</xsl:when>
    <xsl:when test="name($node)='important'">important</xsl:when>
    <xsl:otherwise>note</xsl:otherwise>
  </xsl:choose>
  <xsl:value-of select="$admon.graphics.extension"/>
</xsl:template>

<xsl:template name="graphical.admonition">
  <div class="{name(.)}">
  <xsl:if test="$admon.style != ''">
    <xsl:attribute name="style">
      <xsl:value-of select="$admon.style"/>
    </xsl:attribute>

 =======================================================================
 ==src/xsl/docbook/html/autoidx.xsl
 =======================================================================
 <?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [

<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'">
<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'">

<!ENTITY primary   'concat(primary/@sortas, primary[not(@sortas)])'>
<!ENTITY secondary 'concat(secondary/@sortas, secondary[not(@sortas)])'>
<!ENTITY tertiary  'concat(tertiary/@sortas, tertiary[not(@sortas)])'>

<!ENTITY section   '(ancestor-or-self::set
                     |ancestor-or-self::book
                     |ancestor-or-self::part
                     |ancestor-or-self::reference
                     |ancestor-or-self::partintro
                     |ancestor-or-self::chapter
                     |ancestor-or-self::appendix
                     |ancestor-or-self::preface
                     |ancestor-or-self::section
                     |ancestor-or-self::sect1
                     |ancestor-or-self::sect2
                     |ancestor-or-self::sect3
                     |ancestor-or-self::sect4
                     |ancestor-or-self::sect5
                     |ancestor-or-self::refsect1
                     |ancestor-or-self::refsect2
                     |ancestor-or-self::refsect3
                     |ancestor-or-self::simplesect
                     |ancestor-or-self::bibliography
                     |ancestor-or-self::glossary
                     |ancestor-or-self::index)[last()]'>

<!ENTITY section.id 'generate-id(&section;)'>
<!ENTITY sep '" "'>
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

<!-- ==================================================================== -->
<!-- Jeni Tennison gets all the credit for what follows.
     I think I understand it :-) Anyway, I've hacked it a bit, so the
     bugs are mine. -->

<xsl:key name="letter"
         match="indexterm"
         use="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>

<xsl:key name="primary"
         match="indexterm"
         use="&primary;"/>

 =======================================================================
 ==src/xsl/docbook/html/autotoc.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: autotoc.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="href.target">
  <xsl:param name="object" select="."/>
  <xsl:text>#</xsl:text>
  <xsl:call-template name="object.id">
    <xsl:with-param name="object" select="$object"/>
  </xsl:call-template>
</xsl:template>

<xsl:variable name="toc.listitem.type">
  <xsl:choose>
    <xsl:when test="$toc.list.type = 'dl'">dt</xsl:when>
    <xsl:otherwise>li</xsl:otherwise>
  </xsl:choose>
</xsl:variable>

<!-- this is just hack because dl and ul aren't completely isomorphic -->
<xsl:variable name="toc.dd.type">
  <xsl:choose>
    <xsl:when test="$toc.list.type = 'dl'">dd</xsl:when>
    <xsl:otherwise></xsl:otherwise>
  </xsl:choose>
</xsl:variable>

<xsl:template name="set.toc">
  <xsl:variable name="nodes" select="book|setindex"/>
  <xsl:if test="$nodes">
    <div class="toc">
      <p>
        <b>
          <xsl:call-template name="gentext">
            <xsl:with-param name="key">TableofContents</xsl:with-param>
          </xsl:call-template>
        </b>
      </p>
      <xsl:element name="{$toc.list.type}">
        <xsl:apply-templates select="$nodes" mode="toc"/>

 =======================================================================
 ==src/xsl/docbook/html/biblio.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: biblio.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="bibliography">
  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>

  <div id="{$id}" class="{name(.)}">
    <xsl:call-template name="bibliography.titlepage"/>
    <xsl:apply-templates/>
    <xsl:call-template name="process.footnotes"/>
  </div>
</xsl:template>

<xsl:template match="bibliography/bibliographyinfo"></xsl:template>
<xsl:template match="bibliography/title"></xsl:template>
<xsl:template match="bibliography/subtitle"></xsl:template>
<xsl:template match="bibliography/titleabbrev"></xsl:template>

<xsl:template match="bibliography/title" mode="component.title.mode">
  <h2 class="title">
    <xsl:call-template name="anchor">
      <xsl:with-param name="node" select=".."/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </h2>
</xsl:template>

<xsl:template match="bibliography/subtitle" mode="component.title.mode">
  <h3>
    <i><xsl:apply-templates/></i>
  </h3>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="bibliodiv">
  <div class="{name(.)}">

 =======================================================================
 ==src/xsl/docbook/html/block.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: block.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template name="block.object">
  <div class="{name(.)}">
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="para">
  <p>
    <xsl:if test="position() = 1 and parent::listitem">
      <xsl:call-template name="anchor">
        <xsl:with-param name="node" select="parent::listitem"/>
      </xsl:call-template>
    </xsl:if>

    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
  </p>
</xsl:template>

<xsl:template match="simpara">
  <!-- see also listitem/simpara in lists.xsl -->
  <p>
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
  </p>
</xsl:template>

<xsl:template match="formalpara">
  <p>
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>

 =======================================================================
 ==src/xsl/docbook/html/calc-chunks.xsl
 =======================================================================
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
		version="1.0"
                exclude-result-prefixes="doc">

<xsl:import href="docbook.xsl"/>
<xsl:include href="chunker.xsl"/>

<xsl:output method="xml" indent="yes"/>

<!-- ==================================================================== -->
<!-- What's a chunk?

     appendix
     article
     bibliography  in article or book
     book
     chapter
     colophon
     glossary      in article or book
     index         in article or book
     part
     preface
     refentry
     reference
     sect1         if position()>1
     section       if position()>1 && parent != section
     set
     setindex
                                                                          -->
<!-- ==================================================================== -->

<xsl:template name="chunk.info">
  <xsl:param name="node" select="."/>
  <xsl:variable name="id">
    <xsl:choose>
      <xsl:when test="$node/@id">
        <xsl:value-of select="$node/@id"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:message>
          <xsl:text>Chunk for </xsl:text>
          <xsl:value-of select="local-name($node)"/>
          <xsl:text> has no id</xsl:text>
        </xsl:message>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <chunk name="{local-name($node)}" id="{$id}">
    <xsl:attribute name="filename">

 =======================================================================
 ==src/xsl/docbook/html/callout.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
                xmlns:xverb="com.nwalsh.xalan.Verbatim"
                xmlns:lxslt="http://xml.apache.org/xslt"
                exclude-result-prefixes="sverb xverb lxslt"
                version='1.0'>

<!-- ********************************************************************
     $Id: callout.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<lxslt:component prefix="xverb"
                 functions="insertCallouts"/>

<xsl:template match="programlistingco|screenco">
  <xsl:variable name="verbatim" select="programlisting|screen"/>

  <xsl:choose>
    <xsl:when test="$use.extensions != '0'
                    and $callouts.extension != '0'">
      <xsl:variable name="rtf">
        <xsl:apply-templates select="$verbatim">
          <xsl:with-param name="suppress-numbers" select="'1'"/>
        </xsl:apply-templates>
      </xsl:variable>

      <xsl:variable name="rtf-with-callouts">
        <xsl:choose>
          <xsl:when test="function-available('sverb:insertCallouts')">
            <xsl:copy-of select="sverb:insertCallouts(areaspec,$rtf)"/>
          </xsl:when>
          <xsl:when test="function-available('xverb:insertCallouts')">
            <xsl:copy-of select="xverb:insertCallouts(areaspec,$rtf)"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:message terminate="yes">
              <xsl:text>No insertCallouts function is available.</xsl:text>
            </xsl:message>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>

      <xsl:choose>

 =======================================================================
 ==src/xsl/docbook/html/changebars.xsl
 =======================================================================
 <?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

<xsl:import href="docbook.xsl"/>

<xsl:param name="show.revisionflag" select="'1'"/>

<xsl:template name="user.head.content">
<style type="text/css">
<xsl:text>
div.added    { background-color: yellow; }
div.deleted  { text-decoration: line-through;
               background-color: #FF7F7F; }
div.changed  { background-color: lime; }
div.off      {  }

span.added   { background-color: yellow; }
span.deleted { text-decoration: line-through;
               background-color: #FF7F7F; }
span.changed { background-color: lime; }
span.off     {  }
</xsl:text>
</style>
</xsl:template>

<xsl:template match="*[@revisionflag]">
  <xsl:choose>
    <xsl:when test="local-name(.) = 'para'
                    or local-name(.) = 'simpara'
                    or local-name(.) = 'formalpara'
                    or local-name(.) = 'section'
                    or local-name(.) = 'sect1'
                    or local-name(.) = 'sect2'
                    or local-name(.) = 'sect3'
                    or local-name(.) = 'sect4'
                    or local-name(.) = 'sect5'
                    or local-name(.) = 'chapter'
                    or local-name(.) = 'preface'
                    or local-name(.) = 'itemizedlist'
                    or local-name(.) = 'varlistentry'
                    or local-name(.) = 'glossary'
                    or local-name(.) = 'bibliography'
                    or local-name(.) = 'index'
                    or local-name(.) = 'appendix'">
      <div class='{@revisionflag}'>
	<xsl:apply-imports/>
      </div>
    </xsl:when>
    <xsl:when test="local-name(.) = 'phrase'

 =======================================================================
 ==src/xsl/docbook/html/chunk-experimental.xsl
 =======================================================================
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
		version="1.0"
                exclude-result-prefixes="doc">

<xsl:import href="docbook.xsl"/>

<!-- ==================================================================== -->
<!-- What's a chunk?

     appendix
     article
     bibliography  in article or book
     book
     chapter
     colophon
     glossary      in article or book
     index         in article or book
     part
     preface
     refentry
     reference
     sect1         if position()>1
     section       if position()>1 && parent != section
     set
     setindex
                                                                          -->
<!-- ==================================================================== -->

<xsl:template name="chunk">
  <xsl:param name="node" select="."/>
  <!-- returns 1 if $node is a chunk -->

  <xsl:variable name="id">
    <xsl:choose>
      <xsl:when test="$node/@id">
        <xsl:value-of select="$node/@id"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="generate-id($node)"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>

  <xsl:variable name="chunks" select="document($chunk.datafile,.)"/>

  <xsl:choose>
    <xsl:when test="$chunks/chunks/chunk[@id=$id]">1</xsl:when>
    <xsl:otherwise>0</xsl:otherwise>
  </xsl:choose>

 =======================================================================
 ==src/xsl/docbook/html/chunk.xsl
 =======================================================================
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
		version="1.0"
                exclude-result-prefixes="doc">

<xsl:import href="docbook.xsl"/>

<!-- ==================================================================== -->
<!-- What's a chunk?

     The root element
     appendix
     article
     bibliography  in article or book
     book
     chapter
     colophon
     glossary      in article or book
     index         in article or book
     part
     preface
     refentry
     reference
     sect{1,2,3,4,5}  if position()>1 && depth < chunk.section.depth
     section          if position()>1 && depth < chunk.section.depth
     set
     setindex
                                                                          -->
<!-- ==================================================================== -->

<xsl:template name="chunk">
  <xsl:param name="node" select="."/>
  <!-- returns 1 if $node is a chunk -->

<!--
  <xsl:message>
    <xsl:text>chunk: </xsl:text>
    <xsl:value-of select="name($node)"/>
    <xsl:text>(</xsl:text>
    <xsl:value-of select="$node/@id"/>
    <xsl:text>)</xsl:text>
    <xsl:text> csd: </xsl:text>
    <xsl:value-of select="$chunk.section.depth"/>
    <xsl:text> cfs: </xsl:text>
    <xsl:value-of select="$chunk.first.sections"/>
    <xsl:text> ps: </xsl:text>
    <xsl:value-of select="count($node/parent::section)"/>
    <xsl:text> prs: </xsl:text>
    <xsl:value-of select="count($node/preceding-sibling::section)"/>
  </xsl:message>

 =======================================================================
 ==src/xsl/docbook/html/chunker.xsl
 =======================================================================
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:saxon="http://icl.com/saxon"
                xmlns:lxslt="http://xml.apache.org/xslt"
                xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
                xmlns:exsl="http://exslt.org/common"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
		version="1.1"
                exclude-result-prefixes="doc"
                extension-element-prefixes="saxon xalanredirect lxslt exsl">

<!-- This stylesheet works with XSLT implementations that support -->
<!-- exsl:document, saxon:output, or xalanredirect:write -->
<!-- Note: Only Saxon 6.4.2 or later is supported. -->

<!-- ==================================================================== -->

<xsl:template name="make-relative-filename">
  <xsl:param name="base.dir" select="'./'"/>
  <xsl:param name="base.name" select="''"/>

  <xsl:choose>
    <xsl:when test="element-available('exsl:document')">
      <!-- EXSL document does make the chunks relative, I think -->
      <xsl:choose>
        <xsl:when test="count(parent::*) = 0">
          <xsl:value-of select="concat($base.dir,$base.name)"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$base.name"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:when>
    <xsl:when test="element-available('saxon:output')">
      <!-- Saxon doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>
    </xsl:when>
    <xsl:when test="element-available('xalanredirect:write')">
      <!-- Xalan doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:message terminate="yes">
        <xsl:text>Don't know how to chunk with </xsl:text>
        <xsl:value-of select="system-property('xsl:vendor')"/>
      </xsl:message>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="write.chunk">

 =======================================================================
 ==src/xsl/docbook/html/component.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: component.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template name="component.title">
  <xsl:param name="node" select="."/>
  <h2 class="title">
    <xsl:call-template name="anchor">
      <xsl:with-param name="node" select="$node"/>
      <xsl:with-param name="conditional" select="0"/>
    </xsl:call-template>
    <xsl:apply-templates select="$node" mode="object.title.markup">
      <xsl:with-param name="allow-anchors" select="1"/>
    </xsl:apply-templates>
  </h2>
</xsl:template>

<xsl:template name="component.subtitle">
  <xsl:param name="node" select="."/>
  <xsl:variable name="subtitle"
                select="($node/docinfo/subtitle
                        |$node/prefaceinfo/subtitle
                        |$node/chapterinfo/subtitle
                        |$node/appendixinfo/subtitle
                        |$node/articleinfo/subtitle
                        |$node/artheader/subtitle
                        |$node/subtitle)[1]"/>

  <xsl:if test="$subtitle">
    <h3 class="subtitle">
      <i>
        <xsl:apply-templates select="$node" mode="object.subtitle.markup"/>
      </i>
    </h3>
  </xsl:if>
</xsl:template>

<xsl:template name="component.separator">

 =======================================================================
 ==src/xsl/docbook/html/division.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: division.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="set">
  <div class="{name(.)}">
    <xsl:call-template name="set.titlepage"/>
    <xsl:if test="$generate.set.toc != '0'">
      <xsl:call-template name="set.toc"/>
    </xsl:if>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template match="set/setinfo"></xsl:template>
<xsl:template match="set/title"></xsl:template>
<xsl:template match="set/titleabbrev"></xsl:template>
<xsl:template match="set/subtitle"></xsl:template>

<!-- ==================================================================== -->

<xsl:template match="book">
  <div class="{name(.)}">
    <xsl:call-template name="book.titlepage"/>
    <xsl:apply-templates select="dedication" mode="dedication"/>
    <xsl:if test="$generate.book.toc != '0'">
      <xsl:call-template name="division.toc"/>
    </xsl:if>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template match="book/bookinfo"></xsl:template>
<xsl:template match="book/title"></xsl:template>
<xsl:template match="book/titleabbrev"></xsl:template>
<xsl:template match="book/subtitle"></xsl:template>

<!-- ==================================================================== -->

 =======================================================================
 ==src/xsl/docbook/html/docbook.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<xsl:output method="html"
            encoding="ISO-8859-1"
            indent="no"/>

<!-- ********************************************************************
     $Id: docbook.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:include href="../VERSION"/>
<xsl:include href="param.xsl"/>
<xsl:include href="../lib/lib.xsl"/>
<xsl:include href="../common/l10n.xsl"/>
<xsl:include href="../common/common.xsl"/>
<xsl:include href="../common/labels.xsl"/>
<xsl:include href="../common/titles.xsl"/>
<xsl:include href="../common/subtitles.xsl"/>
<xsl:include href="../common/gentext.xsl"/>
<xsl:include href="autotoc.xsl"/>
<xsl:include href="autoidx.xsl"/>
<xsl:include href="lists.xsl"/>
<xsl:include href="callout.xsl"/>
<xsl:include href="verbatim.xsl"/>
<xsl:include href="graphics.xsl"/>
<xsl:include href="xref.xsl"/>
<xsl:include href="formal.xsl"/>
<xsl:include href="table.xsl"/>
<xsl:include href="sections.xsl"/>
<xsl:include href="inline.xsl"/>
<xsl:include href="footnote.xsl"/>
<xsl:include href="html.xsl"/>
<xsl:include href="info.xsl"/>
<xsl:include href="keywords.xsl"/>
<xsl:include href="division.xsl"/>
<xsl:include href="toc.xsl"/>
<xsl:include href="index.xsl"/>
<xsl:include href="refentry.xsl"/>

 =======================================================================
 ==src/xsl/docbook/html/ebnf.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ********************************************************************
     $Id: ebnf.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<doc:reference xmlns="">
<referenceinfo>
<releaseinfo role="meta">
$Id: ebnf.xsl 155424 2005-02-26 13:09:29Z dirkv $
</releaseinfo>
<author><surname>Walsh</surname>
<firstname>Norman</firstname></author>
<copyright><year>1999</year><year>2000</year>
<holder>Norman Walsh</holder>
</copyright>
</referenceinfo>
<title>HTML EBNF Reference</title>

<partintro>
<section><title>Introduction</title>

<para>This is technical reference documentation for the DocBook XSL
Stylesheets; it documents (some of) the parameters, templates, and
other elements of the stylesheets.</para>

<para>This reference describes the templates and parameters relevant
to formatting EBNF markup.</para>

<para>This is not intended to be <quote>user</quote> documentation.
It is provided for developers writing customization layers for the
stylesheets, and for anyone who's interested in <quote>how it
works</quote>.</para>

<para>Although I am trying to be thorough, this documentation is known
to be incomplete. Don't forget to read the source, too :-)</para>
</section>
</partintro>
</doc:reference>


 =======================================================================
 ==src/xsl/docbook/html/expchunk.xsl
 =======================================================================
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:saxon="http://icl.com/saxon"
                xmlns:lxslt="http://xml.apache.org/xslt"
                xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
		version="1.1"
                exclude-result-prefixes="doc"
                extension-element-prefixes="saxon xalanredirect lxslt">

<!-- This stylesheet works with Saxon and Xalan; for XT use xtchunk.xsl -->

<xsl:import href="autoidx.xsl"/>
<xsl:include href="chunk-experimental.xsl"/>
<xsl:include href="chunker.xsl"/>

</xsl:stylesheet>

 =======================================================================
 ==src/xsl/docbook/html/footnote.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: footnote.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template match="footnote">
  <xsl:variable name="name">
    <xsl:call-template name="object.id"/>
  </xsl:variable>
  <xsl:variable name="href">
    <xsl:text>#ftn.</xsl:text>
    <xsl:call-template name="object.id"/>
  </xsl:variable>

  <xsl:choose>
    <xsl:when test="ancestor::table|ancestor::informaltable">
      <sup>
        <xsl:text>[</xsl:text>
        <a name="{$name}" href="{$href}">
          <xsl:apply-templates select="." mode="footnote.number"/>
        </a>
        <xsl:text>]</xsl:text>
      </sup>
    </xsl:when>
    <xsl:otherwise>
      <sup>
        <xsl:text>[</xsl:text>
        <a name="{$name}" href="{$href}">
          <xsl:apply-templates select="." mode="footnote.number"/>
        </a>
        <xsl:text>]</xsl:text>
      </sup>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="footnoteref">
  <xsl:variable name="targets" select="key('id',@linkend)"/>
  <xsl:variable name="footnote" select="$targets[1]"/>
  <xsl:variable name="href">
    <xsl:text>#ftn.</xsl:text>

 =======================================================================
 ==src/xsl/docbook/html/formal.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: formal.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="formal.object">
  <div class="{name(.)}">
    <xsl:call-template name="formal.object.heading"/>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template name="formal.object.heading">
  <p>
    <xsl:call-template name="anchor"/>
    <b>
      <xsl:apply-templates select="." mode="object.title.markup">
        <xsl:with-param name="allow-anchors" select="1"/>
      </xsl:apply-templates>
    </b>
  </p>
</xsl:template>

<xsl:template name="informal.object">
  <div class="{name(.)}">
    <xsl:if test="$spacing.paras != 0"><p/></xsl:if>
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
    <xsl:if test="$spacing.paras != 0"><p/></xsl:if>
  </div>
</xsl:template>

<xsl:template name="semiformal.object">
  <xsl:choose>
    <xsl:when test="title">
      <xsl:call-template name="formal.object"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="informal.object"/>
    </xsl:otherwise>
  </xsl:choose>

 =======================================================================
 ==src/xsl/docbook/html/glossary.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: glossary.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="glossary">
  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>

  <div id="{$id}" class="{name(.)}">
    <xsl:call-template name="glossary.titlepage"/>

    <xsl:choose>
      <xsl:when test="glossdiv">
        <xsl:apply-templates select="(glossdiv[1]/preceding-sibling::*)"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:apply-templates select="(glossentry[1]/preceding-sibling::*)"/>
      </xsl:otherwise>
    </xsl:choose>

    <xsl:choose>
      <xsl:when test="glossdiv">
        <xsl:apply-templates select="glossdiv"/>
      </xsl:when>
      <xsl:otherwise>
        <dl>
          <xsl:apply-templates select="glossentry"/>
        </dl>
      </xsl:otherwise>
    </xsl:choose>

    <xsl:call-template name="process.footnotes"/>
  </div>
</xsl:template>

<xsl:template match="glossary/glossaryinfo"></xsl:template>
<xsl:template match="glossary/title"></xsl:template>
<xsl:template match="glossary/subtitle"></xsl:template>
<xsl:template match="glossary/titleabbrev"></xsl:template>

 =======================================================================
 ==src/xsl/docbook/html/graphics.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xlink="http://www.w3.org/1999/xlink"
                xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.TextFactory"
                xmlns:xtext="com.nwalsh.xalan.Text"
                xmlns:lxslt="http://xml.apache.org/xslt"
                exclude-result-prefixes="xlink stext xtext lxslt"
                extension-element-prefixes="stext xtext"
                version='1.0'>

<!-- ********************************************************************
     $Id: graphics.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     Contributors:
     Colin Paul Adams, <colin@colina.demon.co.uk>

     ******************************************************************** -->

<lxslt:component prefix="xtext"
                 elements="insertfile"/>

<!-- ==================================================================== -->
<!-- Graphic format tests for the HTML backend -->

<xsl:template name="is.graphic.format">
  <xsl:param name="format"></xsl:param>
  <xsl:if test="$format = 'PNG'
                or $format = 'JPG'
                or $format = 'JPEG'
                or $format = 'linespecific'
                or $format = 'GIF'
                or $format = 'GIF87a'
                or $format = 'GIF89a'
                or $format = 'BMP'">1</xsl:if>
</xsl:template>

<xsl:template name="is.graphic.extension">
  <xsl:param name="ext"></xsl:param>
  <xsl:if test="$ext = 'png'
                or $ext = 'jpeg'
                or $ext = 'jpg'
                or $ext = 'avi'
                or $ext = 'mpg'
                or $ext = 'mpeg'
                or $ext = 'qt'

 =======================================================================
 ==src/xsl/docbook/html/html.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: html.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="anchor">
  <xsl:param name="node" select="."/>
  <xsl:param name="conditional" select="1"/>
  <xsl:variable name="id">
    <xsl:call-template name="object.id">
      <xsl:with-param name="object" select="$node"/>
    </xsl:call-template>
  </xsl:variable>
  <xsl:if test="$conditional = 0 or $node/@id">
    <a name="{$id}"/>
  </xsl:if>
</xsl:template>

<xsl:template name="dingbat">
  <xsl:param name="dingbat">bullet</xsl:param>
  <xsl:choose>
    <xsl:when test="false() and $using.chunker != 0">
      <dingbat name="{$dingbat}"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="dingbat.characters">
        <xsl:with-param name="dingbat" select="$dingbat"/>
      </xsl:call-template>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="dingbat.characters">
  <!-- now that I'm using the real serializer, all that dingbat malarky -->
  <!-- isn't necessary anymore... -->
  <xsl:param name="dingbat">bullet</xsl:param>
  <xsl:choose>
    <xsl:when test="$dingbat='bullet'">&#x2022;</xsl:when>
    <xsl:when test="$dingbat='copyright'">&#x00A9;</xsl:when>
    <xsl:when test="$dingbat='trademark'">&#x2122;</xsl:when>
    <xsl:when test="$dingbat='trade'">&#x2122;</xsl:when>

 =======================================================================
 ==src/xsl/docbook/html/index.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: index.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="index|setindex">
  <!-- some implementations use completely empty index tags to indicate -->
  <!-- where an automatically generated index should be inserted. so -->
  <!-- if the index is completely empty, skip it. Unless generate.index -->
  <!-- is non-zero, in which case, this is where the automatically -->
  <!-- generated index should go. -->

  <xsl:if test="count(*)>0 or $generate.index != '0'">
    <div class="{name(.)}">
      <xsl:call-template name="anchor"/>
      <xsl:call-template name="index.titlepage"/>
      <xsl:apply-templates/>

      <xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
        <xsl:call-template name="generate-index"/>
      </xsl:if>

      <xsl:call-template name="process.footnotes"/>
    </div>
  </xsl:if>
</xsl:template>

<xsl:template match="index/title"></xsl:template>
<xsl:template match="index/subtitle"></xsl:template>
<xsl:template match="index/titleabbrev"></xsl:template>

<xsl:template match="index/title" mode="component.title.mode">
  <h2 class="title">
    <xsl:apply-templates/>
  </h2>
</xsl:template>

<xsl:template match="index/subtitle" mode="component.title.mode">
  <h3>

 =======================================================================
 ==src/xsl/docbook/html/info.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: info.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- These templates define the "default behavior" for info
     elements.  Even if you don't process the *info wrappers,
     some of these elements are needed because the elements are
     processed from named templates that are called with modes.
     Since modes aren't sticky, these rules apply. 
     (TODO: clarify this comment) -->

<!-- ==================================================================== -->
<!-- called from named templates in a given mode -->

<xsl:template match="corpauthor">
  <span class="{name(.)}">
    <xsl:apply-templates/>
  </span>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="jobtitle">
  <span class="{name(.)}">
    <xsl:apply-templates/>
  </span>
</xsl:template>

<xsl:template match="orgname">
  <span class="{name(.)}">
    <xsl:apply-templates/>
  </span>
</xsl:template>

<xsl:template match="orgdiv">
  <span class="{name(.)}">
    <xsl:apply-templates/>
  </span>
</xsl:template>


 =======================================================================
 ==src/xsl/docbook/html/inline.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xlink='http://www.w3.org/1999/xlink'
                exclude-result-prefixes="xlink"
                version='1.0'>

<!-- ********************************************************************
     $Id: inline.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="simple.xlink">
  <xsl:param name="node" select="."/>
  <xsl:param name="content">
    <xsl:apply-templates/>
  </xsl:param>

  <xsl:choose>
    <xsl:when test="$node/@xlink:type='simple' and $node/@xlink:href">
      <a>
        <xsl:if test="@xlink.title">
          <xsl:attribute name="title">
            <xsl:value-of select="@xlink:title"/>
          </xsl:attribute>
        </xsl:if>

        <xsl:attribute name="href">
          <xsl:choose>
            <!-- if the href starts with # and does not contain an "(" -->
            <!-- or if the href starts with #xpointer(id(, it's just an ID -->
            <xsl:when test="starts-with(@xlink:href,'#')
                            and (not(contains(@xlink:href,'&#40;'))
                            or starts-with(@xlink:href,'#xpointer&#40;id&#40;'))">
              <xsl:variable name="idref">
                <xsl:call-template name="xpointer.idref">
                  <xsl:with-param name="xpointer" select="@xlink:href"/>
                </xsl:call-template>
              </xsl:variable>

              <xsl:variable name="targets" select="key('id',$idref)"/>
              <xsl:variable name="target" select="$targets[1]"/>

              <xsl:call-template name="check.id.unique">
                <xsl:with-param name="linkend" select="@linkend"/>
              </xsl:call-template>

 =======================================================================
 ==src/xsl/docbook/html/keywords.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: keywords.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template match="keywordset"></xsl:template>
<xsl:template match="subjectset"></xsl:template>

<!-- ==================================================================== -->

<xsl:template match="keywordset" mode="html.header">
  <meta name="keywords">
    <xsl:attribute name="content">
      <xsl:apply-templates select="keyword" mode="html.header"/>
    </xsl:attribute>
  </meta>
</xsl:template>

<xsl:template match="keyword" mode="html.header">
  <xsl:apply-templates/>
  <xsl:if test="following-sibling::keyword">, </xsl:if>
</xsl:template>

<!-- ==================================================================== -->

</xsl:stylesheet>

 =======================================================================
 ==src/xsl/docbook/html/lists.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: lists.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="itemizedlist">
  <xsl:variable name="itemsymbol">
    <xsl:call-template name="list.itemsymbol"/>
  </xsl:variable>

  <div class="{name(.)}">
    <xsl:call-template name="anchor"/>
    <xsl:if test="title">
      <xsl:apply-templates select="title"/>
    </xsl:if>
    <ul type="{$itemsymbol}">
      <xsl:if test="@spacing='compact'">
        <xsl:attribute name="compact">
          <xsl:value-of select="@spacing"/>
        </xsl:attribute>
      </xsl:if>
      <xsl:apply-templates select="listitem"/>
    </ul>
  </div>
</xsl:template>

<xsl:template match="itemizedlist/title">
  <p><b><xsl:apply-templates/></b></p>
</xsl:template>

<xsl:template match="itemizedlist/listitem">
  <xsl:variable name="mark" select="../@mark"/>
  <xsl:variable name="override" select="@override"/>

  <xsl:variable name="usemark">
    <xsl:choose>
      <xsl:when test="$override != ''">
	<xsl:value-of select="$override"/>
      </xsl:when>

 =======================================================================
 ==src/xsl/docbook/html/math.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: math.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template match="inlineequation">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="alt">
</xsl:template>

<!-- Support for TeX math in alt -->

<xsl:template match="*" mode="collect.tex.math">
  <xsl:call-template name="write.text.chunk">
    <xsl:with-param name="filename" select="$tex.math.file"/>
    <xsl:with-param name="method" select="'text'"/>
    <xsl:with-param name="content">
      <xsl:choose>
        <xsl:when test="$tex.math.in.alt = 'plain'">
          <xsl:call-template name="tex.math.plain.head"/>
          <xsl:apply-templates select="." mode="collect.tex.math.plain"/>
          <xsl:call-template name="tex.math.plain.tail"/>
        </xsl:when>
        <xsl:when test="$tex.math.in.alt = 'latex'">
          <xsl:call-template name="tex.math.latex.head"/>
          <xsl:apply-templates select="." mode="collect.tex.math.latex"/>
          <xsl:call-template name="tex.math.latex.tail"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:message>
            Unsupported TeX math notation: 
            <xsl:value-of select="$tex.math.in.alt"/>
          </xsl:message>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:with-param>
    <xsl:with-param name="encoding" select="$default.encoding"/>
  </xsl:call-template>
</xsl:template>

 =======================================================================
 ==src/xsl/docbook/html/oldchunker.xsl
 =======================================================================
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:saxon="http://icl.com/saxon"
                xmlns:lxslt="http://xml.apache.org/xslt"
                xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
		version="1.1"
                exclude-result-prefixes="doc"
                extension-element-prefixes="saxon xalanredirect lxslt">

<!-- This stylesheet works with Saxon and Xalan; for XT use xtchunker.xsl -->

<!-- ==================================================================== -->

<xsl:param name="default.encoding" select="'ISO-8859-1'" doc:type='string'/>

<doc:param name="default.encoding" xmlns="">
<refpurpose>Encoding used in generated HTML pages</refpurpose>
<refdescription>
<para>This encoding is used in files generated by chunking stylesheet. Currently
only Saxon is able to change output encoding.
</para>
</refdescription>
</doc:param>

<!-- ==================================================================== -->

<xsl:param name="saxon.character.representation" select="'entity;decimal'" doc:type='string'/>

<doc:param name="saxon.character.representation" xmlns="">
<refpurpose>Saxon character representation used in generated HTML pages</refpurpose>
<refdescription>
<para>This character representation is used in files generated by chunking stylesheet. If
you want to suppress entity references for characters with direct representation 
in default.encoding, set this parameter to value <literal>native</literal>. 
</para>
</refdescription>
</doc:param>

<!-- ==================================================================== -->

<xsl:template name="make-relative-filename">
  <xsl:param name="base.dir" select="'./'"/>
  <xsl:param name="base.name" select="''"/>

  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>

  <xsl:choose>
    <xsl:when test="contains($vendor, 'SAXON')">
      <!-- Saxon doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>

 =======================================================================
 ==src/xsl/docbook/html/onechunk.xsl
 =======================================================================
 <?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                version="1.0"
                exclude-result-prefixes="doc">

<!-- This stylesheet works with Saxon and Xalan; for XT use xtchunk.xsl -->
<!-- This stylesheet should also work for any processor that supports   -->
<!-- exslt:document() (see http://www.exslt.org/)                       -->

<xsl:import href="autoidx.xsl"/>
<xsl:include href="chunk-common.xsl"/>
<xsl:include href="chunker.xsl"/>

<!-- ==================================================================== -->
<!-- What's a chunk?

     The root element (that's it in this version)
                                                                          -->
<!-- ==================================================================== -->

<xsl:template name="chunk">
  <xsl:param name="node" select="."/>

  <xsl:choose>
    <xsl:when test="not($node/parent::*)">1</xsl:when>
    <xsl:otherwise>0</xsl:otherwise>
  </xsl:choose>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="set|book|part|preface|chapter|appendix
                     |article
                     |reference|refentry
                     |book/glossary|article/glossary
                     |book/bibliography|article/bibliography
                     |sect1|/section|section
                     |setindex|book/index|article/index
                     |colophon" priority="2">
  <xsl:variable name="ischunk">
    <xsl:call-template name="chunk"/>
  </xsl:variable>

  <xsl:choose>
    <xsl:when test="$ischunk = 1">
      <xsl:call-template name="process-chunk-element"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-imports/>

 =======================================================================
 ==src/xsl/docbook/html/param.ent
 =======================================================================
 <!ENTITY admon.graphics SYSTEM "../params/admon.graphics.xml">
<!ENTITY admon.graphics.extension SYSTEM "../params/admon.graphics.extension.xml">
<!ENTITY admon.graphics.path SYSTEM "../params/admon.graphics.path.xml">
<!ENTITY admon.style SYSTEM "../params/admon.style.xml">
<!ENTITY annotate.toc SYSTEM "../params/annotate.toc.xml">
<!ENTITY appendix.autolabel SYSTEM "../params/appendix.autolabel.xml">
<!ENTITY author.othername.in.middle SYSTEM "../params/author.othername.in.middle.xml">
<!ENTITY autotoc.label.separator SYSTEM "../params/autotoc.label.separator.xml">
<!ENTITY base.dir SYSTEM "../params/base.dir.xml">
<!ENTITY biblioentry.item.separator SYSTEM "../params/biblioentry.item.separator.xml">
<!ENTITY bibliography.collection SYSTEM "../params/bibliography.collection.xml">
<!ENTITY bridgehead.in.toc SYSTEM "../params/bridgehead.in.toc.xml">
<!ENTITY callout.defaultcolumn SYSTEM "../params/callout.defaultcolumn.xml">
<!ENTITY callout.graphics SYSTEM "../params/callout.graphics.xml">
<!ENTITY callout.graphics.extension SYSTEM "../params/callout.graphics.extension.xml">
<!ENTITY callout.graphics.number.limit SYSTEM "../params/callout.graphics.number.limit.xml">
<!ENTITY callout.graphics.path SYSTEM "../params/callout.graphics.path.xml">
<!ENTITY callout.list.table SYSTEM "../params/callout.list.table.xml">
<!ENTITY callout.unicode SYSTEM "../params/callout.unicode.xml">
<!ENTITY callout.unicode.number.limit SYSTEM "../params/callout.unicode.number.limit.xml">
<!ENTITY callout.unicode.start.character SYSTEM "../params/callout.unicode.start.character.xml">
<!ENTITY callouts.extension SYSTEM "../params/callouts.extension.xml">
<!ENTITY chapter.autolabel SYSTEM "../params/chapter.autolabel.xml">
<!ENTITY chunk.datafile SYSTEM "../params/chunk.datafile.xml">
<!ENTITY chunk.first.sections SYSTEM "../params/chunk.first.sections.xml">
<!ENTITY chunk.section.depth SYSTEM "../params/chunk.section.depth.xml">
<!ENTITY citerefentry.link SYSTEM "../params/citerefentry.link.xml">
<!ENTITY css.decoration SYSTEM "../params/css.decoration.xml">
<!ENTITY default.encoding SYSTEM "../params/default.encoding.xml">
<!ENTITY default.table.width SYSTEM "../params/default.table.width.xml">
<!ENTITY ebnf.table.bgcolor SYSTEM "../params/ebnf.table.bgcolor.xml">
<!ENTITY ebnf.table.border SYSTEM "../params/ebnf.table.border.xml">
<!ENTITY emphasis.propagates.style SYSTEM "../params/emphasis.propagates.style.xml">
<!ENTITY firstterm.only.link SYSTEM "../params/firstterm.only.link.xml">
<!ENTITY formal.procedures SYSTEM "../params/formal.procedures.xml">
<!ENTITY funcsynopsis.decoration SYSTEM "../params/funcsynopsis.decoration.xml">
<!ENTITY funcsynopsis.style SYSTEM "../params/funcsynopsis.style.xml">
<!ENTITY function.parens SYSTEM "../params/function.parens.xml">
<!ENTITY generate.appendix.toc SYSTEM "../params/generate.appendix.toc.xml">
<!ENTITY generate.article.toc SYSTEM "../params/generate.article.toc.xml">
<!ENTITY generate.book.toc SYSTEM "../params/generate.book.toc.xml">
<!ENTITY generate.chapter.toc SYSTEM "../params/generate.chapter.toc.xml">
<!ENTITY generate.component.toc SYSTEM "../params/generate.component.toc.xml">
<!ENTITY generate.division.toc SYSTEM "../params/generate.division.toc.xml">
<!ENTITY generate.index SYSTEM "../params/generate.index.xml">
<!ENTITY generate.legalnotice.link SYSTEM "../params/generate.legalnotice.link.xml">
<!ENTITY generate.part.toc SYSTEM "../params/generate.part.toc.xml">
<!ENTITY generate.preface.toc SYSTEM "../params/generate.preface.toc.xml">
<!ENTITY generate.qandadiv.toc SYSTEM "../params/generate.qandadiv.toc.xml">
<!ENTITY generate.qandaset.toc SYSTEM "../params/generate.qandaset.toc.xml">

 =======================================================================
 ==src/xsl/docbook/html/param.html
 =======================================================================
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=ISO-8859-1">
<title>HTML Parameter Reference</title>
<meta name="generator" content="DocBook XSL Stylesheets V0.00+">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084"
alink="#0000FF">
<div class="book">
<div class="titlepage">
<div>
<h1 class="title"><a name="d0e3"></a>HTML Parameter Reference</h1>
</div>

<div>
<h3 class="author">Norman Walsh</h3>
</div>

<div>
<p class="releaseinfo">$Id: param.xweb,v 1.7 2001/11/06 02:26:59
bobstayton Exp $</p>
</div>

<div>
<p class="copyright">Copyright © 1999, 2000, 2001 Norman Walsh</p>
</div>

<hr>
</div>

<div class="toc">
<p><b>Table of Contents</b></p>

<dl>
<dt><a href="#d0e23">Introduction</a></dt>

<dt>I. <a href="#d0e70">Admonitions</a></dt>

<dd>
<dl>
<dt><a href=
"#admon.graphics.extension">admon.graphics.extension</a> -
Extension for admonition graphics</dt>

<dt><a href="#admon.graphics.path">admon.graphics.path</a> - Path
to admonition graphics</dt>


 =======================================================================
 ==src/xsl/docbook/html/param.xsl
 =======================================================================
 <?xml version="1.0" encoding="utf-8"?>

<!-- This file is generated from param.xweb; do not edit this file! -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" exclude-result-prefixes="src" version="1.0">

<!-- ********************************************************************
     $Id: param.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:param name="admon.graphics.extension" select="'.png'"/>
<xsl:param name="admon.graphics" select="0"/>
<xsl:param name="admon.graphics.path">images/</xsl:param>
<xsl:param name="admon.style">
  <xsl:text>margin-left: 0.5in; margin-right: 0.5in;</xsl:text>
</xsl:param>
<xsl:param name="annotate.toc" select="1"/>
<xsl:param name="appendix.autolabel" select="1"/>
<xsl:param name="author.othername.in.middle" select="1"/>
<xsl:param name="autotoc.label.separator" select="'. '"/>
<xsl:param name="base.dir" select="''"/>
<xsl:param name="biblioentry.item.separator">. </xsl:param>
<xsl:param name="bibliography.collection" select="'http://docbook.sourceforge.net/release/bibliography/bibliography.xml'"/>
<xsl:param name="bridgehead.in.toc" select="0"/>
<xsl:param name="callout.defaultcolumn" select="'60'"/>
<xsl:param name="callout.graphics.extension" select="'.png'"/>
<xsl:param name="callout.graphics" select="'1'"/>
<xsl:param name="callout.graphics.number.limit" select="'10'"/>
<xsl:param name="callout.graphics.path" select="'images/callouts/'"/>
<xsl:param name="callout.list.table" select="'1'"/>
<xsl:param name="callout.unicode" select="0"/>
<xsl:param name="callout.unicode.number.limit" select="'10'"/>
<xsl:param name="callout.unicode.start.character" select="10102"/>
<xsl:param name="callouts.extension" select="'1'"/>
<xsl:param name="chapter.autolabel" select="1"/>

<xsl:param name="chunk.datafile" select="'.chunks'"/>


<xsl:param name="chunk.first.sections" select="0"/>


<xsl:param name="chunk.section.depth" select="1"/>


 =======================================================================
 ==src/xsl/docbook/html/param.xweb
 =======================================================================
 <!DOCTYPE book [
<!ENTITY % param.ent SYSTEM "param.ent">
%param.ent;
]>
<book xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<bookinfo>
<title>HTML Parameter Reference</title>
<releaseinfo role="meta">
$Id: param.xweb 155424 2005-02-26 13:09:29Z dirkv $
</releaseinfo>
<author>
  <surname>Walsh</surname>
  <firstname>Norman</firstname>
</author>
<copyright>
  <year>1999</year>
  <year>2000</year>
  <year>2001</year>
  <holder>Norman Walsh</holder>
</copyright>
</bookinfo>

<preface><title>Introduction</title>

<para>This is technical reference documentation for the DocBook XSL
Stylesheets; it documents (some of) the parameters, templates, and
other elements of the stylesheets.</para>

<para>This reference describes each of the HTML Stylesheet parameters.
These are the <quote>easily customizable</quote> parts of the stylesheet.
If you want to specify an alternate value for one or more of these
parameters, you can do so in a <quote>driver</quote> stylesheet.</para>

<para>For example, if you want to change the <literal>html.stylesheet</literal>
to <filename>reference.css</filename>, you might create a driver
stylesheet like this:</para>

<programlisting><![CDATA[<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

  <xsl:import href="http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl"/>

  <xsl:param name="html.stylesheet">reference.css</xsl:param>

</xsl:stylesheet>]]></programlisting>

<para>Naturally, you have to change the
<sgmltag class='attribute'>href</sgmltag> attribute on
<literal>&lt;xsl:import&gt;</literal> to point to

 =======================================================================
 ==src/xsl/docbook/html/pi.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: pi.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template match="processing-instruction()">
</xsl:template>

<xsl:template match="processing-instruction('dbhtml')">
  <xsl:if test="$using.chunker">
    <xsl:processing-instruction name="dbhtml">
      <xsl:value-of select="."/>
    </xsl:processing-instruction>
  </xsl:if>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template name="dbhtml-attribute">
  <xsl:param name="pis" select="processing-instruction('dbhtml')"/>
  <xsl:param name="attribute">filename</xsl:param>

  <xsl:call-template name="pi-attribute">
    <xsl:with-param name="pis" select="$pis"/>
    <xsl:with-param name="attribute" select="$attribute"/>
  </xsl:call-template>
</xsl:template>

<xsl:template name="dbhtml-filename">
  <xsl:param name="pis" select="./processing-instruction('dbhtml')"/>
  <xsl:call-template name="dbhtml-attribute">
    <xsl:with-param name="pis" select="$pis"/>
    <xsl:with-param name="attribute">filename</xsl:with-param>
  </xsl:call-template>
</xsl:template>

<xsl:template name="dbhtml-dir">
  <xsl:param name="pis" select="./processing-instruction('dbhtml')"/>
  <xsl:call-template name="dbhtml-attribute">
    <xsl:with-param name="pis" select="$pis"/>
    <xsl:with-param name="attribute">dir</xsl:with-param>

 =======================================================================
 ==src/xsl/docbook/html/qandaset.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ********************************************************************
     $Id: qandaset.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="qandaset">
  <xsl:variable name="title" select="title"/>
  <xsl:variable name="preamble" select="*[name(.) != 'title'
                                          and name(.) != 'titleabbrev'
                                          and name(.) != 'qandadiv'
                                          and name(.) != 'qandaentry']"/>
  <xsl:variable name="label-width">
    <xsl:call-template name="dbhtml-attribute">
      <xsl:with-param name="pis"
                      select="processing-instruction('dbhtml')"/>
      <xsl:with-param name="attribute" select="'label-width'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="table-summary">
    <xsl:call-template name="dbhtml-attribute">
      <xsl:with-param name="pis"
                      select="processing-instruction('dbhtml')"/>
      <xsl:with-param name="attribute" select="'table-summary'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="cellpadding">
    <xsl:call-template name="dbhtml-attribute">
      <xsl:with-param name="pis"
                      select="processing-instruction('dbhtml')"/>
      <xsl:with-param name="attribute" select="'cellpadding'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="cellspacing">
    <xsl:call-template name="dbhtml-attribute">

 =======================================================================
 ==src/xsl/docbook/html/refentry.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: refentry.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="reference">
  <div class="{name(.)}">
    <xsl:call-template name="anchor">
      <xsl:with-param name="conditional" select="0"/>
    </xsl:call-template>
    <xsl:call-template name="reference.titlepage"/>
    <xsl:if test="not(partintro) and $generate.reference.toc != '0'">
      <xsl:call-template name="division.toc"/>
    </xsl:if>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template match="reference" mode="division.number">
  <xsl:number from="book" count="reference" format="I."/>
</xsl:template>

<xsl:template match="reference/docinfo"></xsl:template>
<xsl:template match="reference/referenceinfo"></xsl:template>
<xsl:template match="reference/title"></xsl:template>
<xsl:template match="reference/subtitle"></xsl:template>

<!-- ==================================================================== -->

<xsl:template name="refentry.title">
  <xsl:param name="node" select="."/>
  <xsl:variable name="refmeta" select="$node//refmeta"/>
  <xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/>
  <xsl:variable name="refnamediv" select="$node//refnamediv"/>
  <xsl:variable name="refname" select="$refnamediv//refname"/>
  <xsl:variable name="title">
    <xsl:choose>
      <xsl:when test="$refentrytitle">
        <xsl:apply-templates select="$refentrytitle[1]" mode="title"/>

 =======================================================================
 ==src/xsl/docbook/html/sections.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: sections.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="section">
  <xsl:variable name="depth" select="count(ancestor::section)+1"/>

  <div class="{name(.)}">
    <xsl:call-template name="section.titlepage"/>
    <xsl:if test="($generate.section.toc != '0'
                   and $depth &lt;= $generate.section.toc.level)
                  or refentry">
      <xsl:call-template name="section.toc"/>
    </xsl:if>
    <xsl:apply-templates/>
    <xsl:call-template name="process.chunk.footnotes"/>
  </div>
</xsl:template>

<xsl:template name="section.title">
  <!-- the context node should be the title of a section when called -->
  <xsl:variable name="section" select="(ancestor::section
                                        |ancestor::simplesect
                                        |ancestor::sect1
                                        |ancestor::sect2
                                        |ancestor::sect3
                                        |ancestor::sect4
                                        |ancestor::sect5)[last()]"/>

  <xsl:variable name="level">
    <xsl:call-template name="section.level">
      <xsl:with-param name="node" select="$section"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:call-template name="section.heading">
    <xsl:with-param name="section" select=".."/>
    <xsl:with-param name="level" select="$level"/>

 =======================================================================
 ==src/xsl/docbook/html/synop.xsl
 =======================================================================
 <?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY RE "&#10;">
<!ENTITY nbsp "&#160;">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: synop.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<!-- synopsis is in verbatim -->

<!-- ==================================================================== -->

<xsl:template match="cmdsynopsis">
  <div class="{name(.)}">
    <p>
      <xsl:call-template name="anchor"/>
      <xsl:apply-templates/>
    </p>
  </div>
</xsl:template>

<xsl:template match="cmdsynopsis/command">
  <br/>
  <xsl:call-template name="inline.monoseq"/>
  <xsl:text> </xsl:text>
</xsl:template>

<xsl:template match="cmdsynopsis/command[1]" priority="2">
  <xsl:call-template name="inline.monoseq"/>
  <xsl:text> </xsl:text>
</xsl:template>

<xsl:template match="group|arg">
  <xsl:variable name="choice" select="@choice"/>
  <xsl:variable name="rep" select="@rep"/>
  <xsl:variable name="sepchar">
    <xsl:choose>
      <xsl:when test="ancestor-or-self::*/@sepchar">

 =======================================================================
 ==src/xsl/docbook/html/table.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                xmlns:stbl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Table"
                xmlns:xtbl="com.nwalsh.xalan.Table"
                xmlns:lxslt="http://xml.apache.org/xslt"
                exclude-result-prefixes="doc stbl xtbl lxslt"
                version='1.0'>

<xsl:include href="../common/table.xsl"/>

<!-- ********************************************************************
     $Id: table.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<lxslt:component prefix="xtbl"
                 functions="adjustColumnWidths"/>

<xsl:template name="empty.table.cell">
  <xsl:param name="colnum" select="0"/>

  <xsl:variable name="rowsep">
    <xsl:call-template name="inherited.table.attribute">
      <xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
      <xsl:with-param name="colnum" select="$colnum"/>
      <xsl:with-param name="attribute" select="'rowsep'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="colsep">
    <xsl:call-template name="inherited.table.attribute">
      <xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
      <xsl:with-param name="colnum" select="$colnum"/>
      <xsl:with-param name="attribute" select="'colsep'"/>
    </xsl:call-template>
  </xsl:variable>

  <td class="auto-generated">
    <xsl:if test="$table.borders.with.css != 0">
      <xsl:attribute name="style">
        <xsl:if test="$colsep &gt; 0">
          <xsl:call-template name="border">
            <xsl:with-param name="side" select="'right'"/>
          </xsl:call-template>

 =======================================================================
 ==src/xsl/docbook/html/titlepage.templates.xml
 =======================================================================
 <t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
	     xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
             xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- ==================================================================== -->

<t:titlepage element="article" wrapper="div" class="titlepage">
  <t:titlepage-content side="recto">
    <title/>
    <subtitle/>
    <corpauthor/>
    <authorgroup/>
    <author/>
    <othercredit/>
    <releaseinfo/>
    <copyright/>
    <legalnotice/>
    <pubdate/>
    <revision/>
    <revhistory/>
    <abstract/>
  </t:titlepage-content>

  <t:titlepage-content side="verso">
  </t:titlepage-content>

  <t:titlepage-separator>
    <hr/>
  </t:titlepage-separator>

  <t:titlepage-before side="recto">
  </t:titlepage-before>

  <t:titlepage-before side="verso">
  </t:titlepage-before>
</t:titlepage>

<!-- ==================================================================== -->

<t:titlepage element="set" wrapper="div" class="titlepage">
  <t:titlepage-content side="recto">
    <title/>
    <subtitle/>
    <corpauthor/>
    <authorgroup/>
    <author/>
    <othercredit/>
    <releaseinfo/>
    <copyright/>
    <legalnotice/>

 =======================================================================
 ==src/xsl/docbook/html/titlepage.templates.xsl
 =======================================================================
 <?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->

<xsl:template name="article.titlepage.recto">
  <xsl:choose>
    <xsl:when test="articleinfo/title">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/>
    </xsl:when>
    <xsl:when test="artheader/title">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/>
    </xsl:when>
    <xsl:when test="title">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/>
    </xsl:when>
  </xsl:choose>

  <xsl:choose>
    <xsl:when test="articleinfo/subtitle">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/>
    </xsl:when>
    <xsl:when test="artheader/subtitle">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/>
    </xsl:when>
    <xsl:when test="subtitle">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/>
    </xsl:when>
  </xsl:choose>

  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract"/>

 =======================================================================
 ==src/xsl/docbook/html/titlepage.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: titlepage.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:attribute-set name="book.titlepage.recto.style"/>
<xsl:attribute-set name="book.titlepage.verso.style"/>

<xsl:attribute-set name="article.titlepage.recto.style"/>
<xsl:attribute-set name="article.titlepage.verso.style"/>

<xsl:attribute-set name="set.titlepage.recto.style"/>
<xsl:attribute-set name="set.titlepage.verso.style"/>

<xsl:attribute-set name="part.titlepage.recto.style"/>
<xsl:attribute-set name="part.titlepage.verso.style"/>

<xsl:attribute-set name="partintro.titlepage.recto.style"/>
<xsl:attribute-set name="partintro.titlepage.verso.style"/>

<xsl:attribute-set name="reference.titlepage.recto.style"/>
<xsl:attribute-set name="reference.titlepage.verso.style"/>

<xsl:attribute-set name="refentry.titlepage.recto.style"/>
<xsl:attribute-set name="refentry.titlepage.verso.style"/>

<xsl:attribute-set name="dedication.titlepage.recto.style"/>
<xsl:attribute-set name="dedication.titlepage.verso.style"/>

<xsl:attribute-set name="preface.titlepage.recto.style"/>
<xsl:attribute-set name="preface.titlepage.verso.style"/>

<xsl:attribute-set name="chapter.titlepage.recto.style"/>
<xsl:attribute-set name="chapter.titlepage.verso.style"/>

<xsl:attribute-set name="appendix.titlepage.recto.style"/>
<xsl:attribute-set name="appendix.titlepage.verso.style"/>

<xsl:attribute-set name="bibliography.titlepage.recto.style"/>

 =======================================================================
 ==src/xsl/docbook/html/toc.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

<!-- ********************************************************************
     $Id: toc.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="toc">
  <xsl:choose>
    <xsl:when test="*">
      <xsl:if test="$process.source.toc != 0">
        <!-- if the toc isn't empty, process it -->
        <xsl:element name="{$toc.list.type}">
          <xsl:apply-templates/>
        </xsl:element>
      </xsl:if>
    </xsl:when>
    <xsl:otherwise>
      <xsl:if test="$process.empty.source.toc != 0">
        <xsl:choose>
          <xsl:when test="parent::section
                          or parent::sect1
                          or parent::sect2
                          or parent::sect3
                          or parent::sect4
                          or parent::sect5">
            <xsl:apply-templates select="parent::*"
                                 mode="toc.for.section"/>
          </xsl:when>
          <xsl:when test="parent::article">
            <xsl:apply-templates select="parent::*"
                                 mode="toc.for.component"/>
          </xsl:when>
          <xsl:when test="parent::book
                          or parent::part">
            <xsl:apply-templates select="parent::*"
                                 mode="toc.for.division"/>
          </xsl:when>
          <xsl:when test="parent::set">
            <xsl:apply-templates select="parent::*"
                                 mode="toc.for.set"/>

 =======================================================================
 ==src/xsl/docbook/html/verbatim.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
                xmlns:xverb="com.nwalsh.xalan.Verbatim"
                xmlns:lxslt="http://xml.apache.org/xslt"
                exclude-result-prefixes="sverb xverb lxslt"
                version='1.0'>

<!-- ********************************************************************
     $Id: verbatim.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<lxslt:component prefix="xverb"
                 functions="numberLines"/>

<xsl:template match="programlisting|screen|synopsis">
  <xsl:param name="suppress-numbers" select="'0'"/>
  <xsl:variable name="id">
    <xsl:call-template name="object.id"/>
  </xsl:variable>

  <xsl:call-template name="anchor"/>

  <xsl:variable name="content">
    <xsl:choose>
      <xsl:when test="$suppress-numbers = '0'
                      and @linenumbering = 'numbered'
                      and $use.extensions != '0'
                      and $linenumbering.extension != '0'">
        <xsl:variable name="rtf">
          <xsl:apply-templates/>
        </xsl:variable>
        <pre class="{name(.)}">
          <xsl:call-template name="number.rtf.lines">
            <xsl:with-param name="rtf" select="$rtf"/>
          </xsl:call-template>
        </pre>
      </xsl:when>
      <xsl:otherwise>
        <pre class="{name(.)}">
          <xsl:apply-templates/>
        </pre>
      </xsl:otherwise>
    </xsl:choose>

 =======================================================================
 ==src/xsl/docbook/html/xref.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ********************************************************************
     $Id: xref.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="anchor">
  <xsl:call-template name="anchor"/>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="xref" name="xref">
  <xsl:variable name="targets" select="key('id',@linkend)"/>
  <xsl:variable name="target" select="$targets[1]"/>
  <xsl:variable name="refelem" select="local-name($target)"/>

  <xsl:call-template name="check.id.unique">
    <xsl:with-param name="linkend" select="@linkend"/>
  </xsl:call-template>

  <xsl:call-template name="anchor"/>

  <xsl:choose>
    <xsl:when test="count($target) = 0">
      <xsl:message>
	<xsl:text>XRef to nonexistent id: </xsl:text>
	<xsl:value-of select="@linkend"/>
      </xsl:message>
      <xsl:text>???</xsl:text>
    </xsl:when>

    <xsl:when test="$target/@xreflabel">
      <a>
        <xsl:attribute name="href">
          <xsl:call-template name="href.target">
            <xsl:with-param name="object" select="$target"/>
          </xsl:call-template>

 =======================================================================
 ==src/xsl/docbook/lib/lib.xsl
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                exclude-result-prefixes="doc"
                version='1.0'>

<!-- ********************************************************************
     $Id: lib.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     This module implements DTD-independent functions

     ******************************************************************** -->

<doc:reference xmlns="">
<referenceinfo>
<releaseinfo role="meta">
$Id: lib.xsl 155424 2005-02-26 13:09:29Z dirkv $
</releaseinfo>
<author><surname>Walsh</surname>
<firstname>Norman</firstname></author>
<copyright><year>1999</year><year>2000</year>
<holder>Norman Walsh</holder>
</copyright>
</referenceinfo>
<title>Library Template Reference</title>

<partintro>
<section><title>Introduction</title>

<para>This is technical reference documentation for the DocBook XSL
Stylesheets; it documents (some of) the parameters, templates, and
other elements of the stylesheets.</para>

<para>This is not intended to be <quote>user</quote> documentation.
It is provided for developers writing customization layers for the
stylesheets, and for anyone who's interested in <quote>how it
works</quote>.</para>

<para>Although I am trying to be thorough, this documentation is known
to be incomplete. Don't forget to read the source, too :-)</para>
</section>
</partintro>
</doc:reference>

<xsl:template name="dot.count">

 =======================================================================
 ==src/xsl/docbook/TODO
 =======================================================================
 Documentation
Continued lists
Bibliography support needs improvement


 =======================================================================
 ==src/xsl/docbook/VERSION
 =======================================================================
 <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>
<xsl:param name="VERSION">1.48</xsl:param>
</xsl:stylesheet>


 =======================================================================
 ==src/xsl/docbook/WhatsNew
 =======================================================================
 Changes since version 1.47 (2001-11-28)

Changes to xsl/*

  | 2002-01-06  Norman Walsh <nwalsh@users.sourceforge.net>
  | 
  | 	* Makefile: Clean docsrc
  | 
  | 	* Makefile: Remove .*~ from the ZIP file
  | 
  | 	* VERSION: Version 1.48 released.
  | 

Changes to xsl/common/*

  | 2002-01-03  Norman Walsh <nwalsh@users.sourceforge.net>
  | 
  | 	* .cvsignore, Makefile: Added Thai localization
  | 
  | 	* common.xsl: Calculate itemized list symbol based on depth
  | 	  analagous to orderedlist numeration
  | 
  | 	* gentext.xsl: Use unnumbered gentext keys appropriately
  | 
  | 2001-12-15  Jirka Kosek <kosek@users.sourceforge.net>
  | 
  | 	* common.xsl: Improved support for TeX math inside equations.
  | 
  | 2001-12-04  Norman Walsh <nwalsh@users.sourceforge.net>
  | 
  | 	* labels.xsl: Bug #435320: Poor enumeration of LoTs and LoFs
  | 
  | 	* titles.xsl: Bug! Can't put HTML here. But what does this
  | 	  break?
  | 
  | 2001-12-02  Norman Walsh <nwalsh@users.sourceforge.net>
  | 
  | 	* titles.xsl: Make no.anchor.mode 'sticky'. This is really
  | 	  necessary because otherwise title inlines effectively turn
  | 	  it off
  | 
  | 2001-12-01  Norman Walsh <nwalsh@users.sourceforge.net>
  | 
  | 	* labels.xsl: Improve FAQ labeling
  | 
  | 2001-11-29  Robert Stayton <bobstayton@users.sourceforge.net>
  | 
  | 	* l10n.xsl: Fixed error message for missing localization so
  | 	  that if missing in en.xml, it doesn't say 'using en'.
  | 

 =======================================================================
 ==src/xsl/docbook/xhtml/admon.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: admon.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="admon.graphic.width">
  <xsl:param name="node" select="."/>
  <xsl:text>25</xsl:text>
</xsl:template>

<xsl:template match="note|important|warning|caution|tip">
  <xsl:choose>
    <xsl:when test="$admon.graphics != 0">
      <xsl:call-template name="graphical.admonition"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="nongraphical.admonition"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="admon.graphic">
  <xsl:param name="node" select="."/>
  <xsl:value-of select="$admon.graphics.path"/>
  <xsl:choose>
    <xsl:when test="name($node)='note'">note</xsl:when>
    <xsl:when test="name($node)='warning'">warning</xsl:when>
    <xsl:when test="name($node)='caution'">caution</xsl:when>
    <xsl:when test="name($node)='tip'">tip</xsl:when>
    <xsl:when test="name($node)='important'">important</xsl:when>
    <xsl:otherwise>note</xsl:otherwise>
  </xsl:choose>
  <xsl:value-of select="$admon.graphics.extension"/>
</xsl:template>

<xsl:template name="graphical.admonition">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
  <xsl:if test="$admon.style != ''">
    <xsl:attribute name="style">
      <xsl:value-of select="$admon.style"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/autoidx.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ==================================================================== -->
<!-- Jeni Tennison gets all the credit for what follows.
     I think I understand it :-) Anyway, I've hacked it a bit, so the
     bugs are mine. -->

<xsl:key name="letter" match="indexterm" use="translate(substring(concat(primary/@sortas, primary[not(@sortas)]), 1, 1),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>

<xsl:key name="primary" match="indexterm" use="concat(primary/@sortas, primary[not(@sortas)])"/>

<xsl:key name="secondary" match="indexterm" use="concat(concat(primary/@sortas, primary[not(@sortas)]), &#34; &#34;, concat(secondary/@sortas, secondary[not(@sortas)]))"/>

<xsl:key name="tertiary" match="indexterm" use="concat(concat(primary/@sortas, primary[not(@sortas)]), &#34; &#34;, concat(secondary/@sortas, secondary[not(@sortas)]), &#34; &#34;, concat(tertiary/@sortas, tertiary[not(@sortas)]))"/>

<xsl:key name="primary-section" match="indexterm[not(secondary) and not(see)]" use="concat(concat(primary/@sortas, primary[not(@sortas)]), &#34; &#34;, generate-id((ancestor-or-self::set                      |ancestor-or-self::book                      |ancestor-or-self::part                      |ancestor-or-self::reference                      |ancestor-or-self::partintro                      |ancestor-or-self::chapter                      |ancestor-or-self::appendix                      |ancestor-or-self::preface                      |ancestor-or-self::section                      |ancestor-or-self::sect1                      |ancestor-or-self::sect2                      |ancestor-or-self::sect3                      |ancestor-or-self::sect4                      |ancestor-or-self::sect5                      |ancestor-or-self::refsect1                      |ancestor-or-self::refsect2                      |ancestor-or-self::refsect3                      |ancestor-or-self::simplesect                      |ancestor-or-self::bibliography                      |ancestor-or-self::glossary                      |ancestor-or-self::index)[last()]))"/>

<xsl:key name="secondary-section" match="indexterm[not(tertiary) and not(see)]" use="concat(concat(primary/@sortas, primary[not(@sortas)]), &#34; &#34;, concat(secondary/@sortas, secondary[not(@sortas)]), &#34; &#34;, generate-id((ancestor-or-self::set                      |ancestor-or-self::book                      |ancestor-or-self::part                      |ancestor-or-self::reference                      |ancestor-or-self::partintro                      |ancestor-or-self::chapter                      |ancestor-or-self::appendix                      |ancestor-or-self::preface                      |ancestor-or-self::section                      |ancestor-or-self::sect1                      |ancestor-or-self::sect2                      |ancestor-or-self::sect3                      |ancestor-or-self::sect4                      |ancestor-or-self::sect5                      |ancestor-or-self::refsect1                      |ancestor-or-self::refsect2                      |ancestor-or-self::refsect3                      |ancestor-or-self::simplesect                      |ancestor-or-self::bibliography                      |ancestor-or-self::glossary                      |ancestor-or-self::index)[last()]))"/>

<xsl:key name="tertiary-section" match="indexterm[not(see)]" use="concat(concat(primary/@sortas, primary[not(@sortas)]), &#34; &#34;, concat(secondary/@sortas, secondary[not(@sortas)]), &#34; &#34;, concat(tertiary/@sortas, tertiary[not(@sortas)]), &#34; &#34;, generate-id((ancestor-or-self::set                      |ancestor-or-self::book                      |ancestor-or-self::part                      |ancestor-or-self::reference                      |ancestor-or-self::partintro                      |ancestor-or-self::chapter                      |ancestor-or-self::appendix                      |ancestor-or-self::preface                      |ancestor-or-self::section                      |ancestor-or-self::sect1                      |ancestor-or-self::sect2                      |ancestor-or-self::sect3                      |ancestor-or-self::sect4                      |ancestor-or-self::sect5                      |ancestor-or-self::refsect1                      |ancestor-or-self::refsect2                      |ancestor-or-self::refsect3                      |ancestor-or-self::simplesect                      |ancestor-or-self::bibliography                      |ancestor-or-self::glossary                      |ancestor-or-self::index)[last()]))"/>

<xsl:key name="see-also" match="indexterm[seealso]" use="concat(concat(primary/@sortas, primary[not(@sortas)]), &#34; &#34;, concat(secondary/@sortas, secondary[not(@sortas)]), &#34; &#34;, concat(tertiary/@sortas, tertiary[not(@sortas)]), &#34; &#34;, seealso)"/>

<xsl:key name="see" match="indexterm[see]" use="concat(concat(primary/@sortas, primary[not(@sortas)]), &#34; &#34;, concat(secondary/@sortas, secondary[not(@sortas)]), &#34; &#34;, concat(tertiary/@sortas, tertiary[not(@sortas)]), &#34; &#34;, see)"/>

<xsl:key name="sections" match="*[@id]" use="@id"/>

<xsl:template name="generate-index">
  <xsl:variable name="terms" select="//indexterm[count(.|key('letter',                                      translate(substring(concat(primary/@sortas, primary[not(@sortas)]), 1, 1),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'))[1]) = 1]"/>

  <xsl:variable name="alphabetical" select="$terms[contains(concat('abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'),                                         substring(concat(primary/@sortas, primary[not(@sortas)]), 1, 1))]"/>
  <xsl:variable name="others" select="$terms[not(contains(concat('abcdefghijklmnopqrstuvwxyz',                                                  'ABCDEFGHIJKLMNOPQRSTUVWXYZ'),                                              substring(concat(primary/@sortas, primary[not(@sortas)]), 1, 1)))]"/>
  <div xmlns="http://www.w3.org/1999/xhtml" class="index">
    <xsl:if test="$others">
      <div class="indexdiv">
        <h3>
          <xsl:call-template name="gentext">
            <xsl:with-param name="key" select="'index symbols'"/>
          </xsl:call-template>
        </h3>
        <dl>
          <xsl:apply-templates select="$others[count(.|key('primary',                                        concat(primary/@sortas, primary[not(@sortas)]))[1]) = 1]" mode="index-primary">
            <xsl:sort select="concat(primary/@sortas, primary[not(@sortas)])"/>
          </xsl:apply-templates>
        </dl>
      </div>
    </xsl:if>

 =======================================================================
 ==src/xsl/docbook/xhtml/autotoc.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: autotoc.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="href.target">
  <xsl:param name="object" select="."/>
  <xsl:text>#</xsl:text>
  <xsl:call-template name="object.id">
    <xsl:with-param name="object" select="$object"/>
  </xsl:call-template>
</xsl:template>

<xsl:variable name="toc.listitem.type">
  <xsl:choose>
    <xsl:when test="$toc.list.type = 'dl'">dt</xsl:when>
    <xsl:otherwise>li</xsl:otherwise>
  </xsl:choose>
</xsl:variable>

<!-- this is just hack because dl and ul aren't completely isomorphic -->
<xsl:variable name="toc.dd.type">
  <xsl:choose>
    <xsl:when test="$toc.list.type = 'dl'">dd</xsl:when>
    <xsl:otherwise/>
  </xsl:choose>
</xsl:variable>

<xsl:template name="set.toc">
  <xsl:variable name="nodes" select="book|setindex"/>
  <xsl:if test="$nodes">
    <div xmlns="http://www.w3.org/1999/xhtml" class="toc">
      <p>
        <b>
          <xsl:call-template name="gentext">
            <xsl:with-param name="key">TableofContents</xsl:with-param>
          </xsl:call-template>
        </b>
      </p>
      <xsl:element name="{$toc.list.type}">

 =======================================================================
 ==src/xsl/docbook/xhtml/biblio.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: biblio.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="bibliography">
  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>

  <div xmlns="http://www.w3.org/1999/xhtml" id="{$id}" class="{name(.)}">
    <xsl:call-template name="bibliography.titlepage"/>
    <xsl:apply-templates/>
    <xsl:call-template name="process.footnotes"/>
  </div>
</xsl:template>

<xsl:template match="bibliography/bibliographyinfo"/>
<xsl:template match="bibliography/title"/>
<xsl:template match="bibliography/subtitle"/>
<xsl:template match="bibliography/titleabbrev"/>

<xsl:template match="bibliography/title" mode="component.title.mode">
  <h2 xmlns="http://www.w3.org/1999/xhtml" class="title">
    <xsl:call-template name="anchor">
      <xsl:with-param name="node" select=".."/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </h2>
</xsl:template>

<xsl:template match="bibliography/subtitle" mode="component.title.mode">
  <h3 xmlns="http://www.w3.org/1999/xhtml">
    <i><xsl:apply-templates/></i>
  </h3>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="bibliodiv">

 =======================================================================
 ==src/xsl/docbook/xhtml/block.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: block.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template name="block.object">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="para">
  <p xmlns="http://www.w3.org/1999/xhtml">
    <xsl:if test="position() = 1 and parent::listitem">
      <xsl:call-template name="anchor">
        <xsl:with-param name="node" select="parent::listitem"/>
      </xsl:call-template>
    </xsl:if>

    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
  </p>
</xsl:template>

<xsl:template match="simpara">
  <!-- see also listitem/simpara in lists.xsl -->
  <p xmlns="http://www.w3.org/1999/xhtml">
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
  </p>
</xsl:template>

<xsl:template match="formalpara">
  <p xmlns="http://www.w3.org/1999/xhtml">
    <xsl:call-template name="anchor"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/calc-chunks.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.0" exclude-result-prefixes="doc">

<xsl:import href="docbook.xsl"/>
<xsl:include href="chunker.xsl"/>

<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>

<!-- ==================================================================== -->
<!-- What's a chunk?

     appendix
     article
     bibliography  in article or book
     book
     chapter
     colophon
     glossary      in article or book
     index         in article or book
     part
     preface
     refentry
     reference
     sect1         if position()>1
     section       if position()>1 && parent != section
     set
     setindex
                                                                          -->
<!-- ==================================================================== -->

<xsl:template name="chunk.info">
  <xsl:param name="node" select="."/>
  <xsl:variable name="id">
    <xsl:choose>
      <xsl:when test="$node/@id">
        <xsl:value-of select="$node/@id"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:message>
          <xsl:text>Chunk for </xsl:text>
          <xsl:value-of select="local-name($node)"/>
          <xsl:text> has no id</xsl:text>
        </xsl:message>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <chunk xmlns="http://www.w3.org/1999/xhtml" name="{local-name($node)}" id="{$id}">
    <xsl:attribute name="filename">

 =======================================================================
 ==src/xsl/docbook/xhtml/callout.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim" xmlns:xverb="com.nwalsh.xalan.Verbatim" xmlns:lxslt="http://xml.apache.org/xslt" exclude-result-prefixes="sverb xverb lxslt" version="1.0">

<!-- ********************************************************************
     $Id: callout.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<lxslt:component prefix="xverb" functions="insertCallouts"/>

<xsl:template match="programlistingco|screenco">
  <xsl:variable name="verbatim" select="programlisting|screen"/>

  <xsl:choose>
    <xsl:when test="$use.extensions != '0'                     and $callouts.extension != '0'">
      <xsl:variable name="rtf">
        <xsl:apply-templates select="$verbatim">
          <xsl:with-param name="suppress-numbers" select="'1'"/>
        </xsl:apply-templates>
      </xsl:variable>

      <xsl:variable name="rtf-with-callouts">
        <xsl:choose>
          <xsl:when test="function-available('sverb:insertCallouts')">
            <xsl:copy-of select="sverb:insertCallouts(areaspec,$rtf)"/>
          </xsl:when>
          <xsl:when test="function-available('xverb:insertCallouts')">
            <xsl:copy-of select="xverb:insertCallouts(areaspec,$rtf)"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:message terminate="yes">
              <xsl:text>No insertCallouts function is available.</xsl:text>
            </xsl:message>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>

      <xsl:choose>
        <xsl:when test="$verbatim/@linenumbering = 'numbered'                         and $linenumbering.extension != '0'">
          <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
            <xsl:call-template name="number.rtf.lines">
              <xsl:with-param name="rtf" select="$rtf-with-callouts"/>
              <xsl:with-param name="pi.context" select="programlisting|screen"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/changebars.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:import href="docbook.xsl"/>

<xsl:param name="show.revisionflag" select="'1'"/>

<xsl:template name="user.head.content">
<style xmlns="http://www.w3.org/1999/xhtml" type="text/css">
<xsl:text>
div.added    { background-color: yellow; }
div.deleted  { text-decoration: line-through;
               background-color: #FF7F7F; }
div.changed  { background-color: lime; }
div.off      {  }

span.added   { background-color: yellow; }
span.deleted { text-decoration: line-through;
               background-color: #FF7F7F; }
span.changed { background-color: lime; }
span.off     {  }
</xsl:text>
</style>
</xsl:template>

<xsl:template match="*[@revisionflag]">
  <xsl:choose>
    <xsl:when test="local-name(.) = 'para'                     or local-name(.) = 'simpara'                     or local-name(.) = 'formalpara'                     or local-name(.) = 'section'                     or local-name(.) = 'sect1'                     or local-name(.) = 'sect2'                     or local-name(.) = 'sect3'                     or local-name(.) = 'sect4'                     or local-name(.) = 'sect5'                     or local-name(.) = 'chapter'                     or local-name(.) = 'preface'                     or local-name(.) = 'itemizedlist'                     or local-name(.) = 'varlistentry'                     or local-name(.) = 'glossary'                     or local-name(.) = 'bibliography'                     or local-name(.) = 'index'                     or local-name(.) = 'appendix'">
      <div xmlns="http://www.w3.org/1999/xhtml" class="{@revisionflag}">
	<xsl:apply-imports/>
      </div>
    </xsl:when>
    <xsl:when test="local-name(.) = 'phrase'                     or local-name(.) = 'ulink'                     or local-name(.) = 'link'                     or local-name(.) = 'filename'                     or local-name(.) = 'literal'                     or local-name(.) = 'member'                     or local-name(.) = 'glossterm'                     or local-name(.) = 'sgmltag'                     or local-name(.) = 'quote'                     or local-name(.) = 'emphasis'                     or local-name(.) = 'command'                     or local-name(.) = 'xref'">
      <span xmlns="http://www.w3.org/1999/xhtml" class="{@revisionflag}">
	<xsl:apply-imports/>
      </span>
    </xsl:when>
    <xsl:when test="local-name(.) = 'listitem'                     or local-name(.) = 'entry'                     or local-name(.) = 'title'">
      <!-- nop; these are handled directly in the stylesheet -->
      <xsl:apply-imports/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:message>
	<xsl:text>Revisionflag on unexpected element: </xsl:text>
	<xsl:value-of select="local-name(.)"/>
	<xsl:text> (Assuming block)</xsl:text>
      </xsl:message>
      <div xmlns="http://www.w3.org/1999/xhtml" class="{@revisionflag}">

 =======================================================================
 ==src/xsl/docbook/xhtml/chunk-experimental.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.0" exclude-result-prefixes="doc">

<xsl:import href="docbook.xsl"/>

<!-- ==================================================================== -->
<!-- What's a chunk?

     appendix
     article
     bibliography  in article or book
     book
     chapter
     colophon
     glossary      in article or book
     index         in article or book
     part
     preface
     refentry
     reference
     sect1         if position()>1
     section       if position()>1 && parent != section
     set
     setindex
                                                                          -->
<!-- ==================================================================== -->

<xsl:template name="chunk">
  <xsl:param name="node" select="."/>
  <!-- returns 1 if $node is a chunk -->

  <xsl:variable name="id">
    <xsl:choose>
      <xsl:when test="$node/@id">
        <xsl:value-of select="$node/@id"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="generate-id($node)"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>

  <xsl:variable name="chunks" select="document($chunk.datafile,.)"/>

  <xsl:choose>
    <xsl:when test="$chunks/chunks/chunk[@id=$id]">1</xsl:when>
    <xsl:otherwise>0</xsl:otherwise>
  </xsl:choose>

 =======================================================================
 ==src/xsl/docbook/xhtml/chunk.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.0" exclude-result-prefixes="doc">

<xsl:import href="docbook.xsl"/>

<!-- ==================================================================== -->
<!-- What's a chunk?

     The root element
     appendix
     article
     bibliography  in article or book
     book
     chapter
     colophon
     glossary      in article or book
     index         in article or book
     part
     preface
     refentry
     reference
     sect{1,2,3,4,5}  if position()>1 && depth < chunk.section.depth
     section          if position()>1 && depth < chunk.section.depth
     set
     setindex
                                                                          -->
<!-- ==================================================================== -->

<xsl:template name="chunk">
  <xsl:param name="node" select="."/>
  <!-- returns 1 if $node is a chunk -->

<!--
  <xsl:message>
    <xsl:text>chunk: </xsl:text>
    <xsl:value-of select="name($node)"/>
    <xsl:text>(</xsl:text>
    <xsl:value-of select="$node/@id"/>
    <xsl:text>)</xsl:text>
    <xsl:text> csd: </xsl:text>
    <xsl:value-of select="$chunk.section.depth"/>
    <xsl:text> cfs: </xsl:text>
    <xsl:value-of select="$chunk.first.sections"/>
    <xsl:text> ps: </xsl:text>
    <xsl:value-of select="count($node/parent::section)"/>
    <xsl:text> prs: </xsl:text>
    <xsl:value-of select="count($node/preceding-sibling::section)"/>
  </xsl:message>

 =======================================================================
 ==src/xsl/docbook/xhtml/chunker.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" xmlns:exsl="http://exslt.org/common" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.1" exclude-result-prefixes="doc" extension-element-prefixes="saxon xalanredirect lxslt exsl">

<!-- This stylesheet works with XSLT implementations that support -->
<!-- exsl:document, saxon:output, or xalanredirect:write -->
<!-- Note: Only Saxon 6.4.2 or later is supported. -->

<!-- ==================================================================== -->

<xsl:template name="make-relative-filename">
  <xsl:param name="base.dir" select="'./'"/>
  <xsl:param name="base.name" select="''"/>

  <xsl:choose>
    <xsl:when test="element-available('exsl:document')">
      <!-- EXSL document does make the chunks relative, I think -->
      <xsl:choose>
        <xsl:when test="count(parent::*) = 0">
          <xsl:value-of select="concat($base.dir,$base.name)"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$base.name"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:when>
    <xsl:when test="element-available('saxon:output')">
      <!-- Saxon doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>
    </xsl:when>
    <xsl:when test="element-available('xalanredirect:write')">
      <!-- Xalan doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:message terminate="yes">
        <xsl:text>Don't know how to chunk with </xsl:text>
        <xsl:value-of select="system-property('xsl:vendor')"/>
      </xsl:message>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="write.chunk">
  <xsl:param name="filename" select="''"/>
  <xsl:param name="method" select="$output.method"/>
  <xsl:param name="encoding" select="$default.encoding"/>
  <xsl:param name="indent" select="'no'"/>
  <xsl:param name="content" select="''"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/component.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: component.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template name="component.title">
  <xsl:param name="node" select="."/>
  <h2 xmlns="http://www.w3.org/1999/xhtml" class="title">
    <xsl:call-template name="anchor">
      <xsl:with-param name="node" select="$node"/>
      <xsl:with-param name="conditional" select="0"/>
    </xsl:call-template>
    <xsl:apply-templates select="$node" mode="object.title.markup">
      <xsl:with-param name="allow-anchors" select="1"/>
    </xsl:apply-templates>
  </h2>
</xsl:template>

<xsl:template name="component.subtitle">
  <xsl:param name="node" select="."/>
  <xsl:variable name="subtitle" select="($node/docinfo/subtitle                         |$node/prefaceinfo/subtitle                         |$node/chapterinfo/subtitle                         |$node/appendixinfo/subtitle                         |$node/articleinfo/subtitle                         |$node/artheader/subtitle                         |$node/subtitle)[1]"/>

  <xsl:if test="$subtitle">
    <h3 xmlns="http://www.w3.org/1999/xhtml" class="subtitle">
      <i>
        <xsl:apply-templates select="$node" mode="object.subtitle.markup"/>
      </i>
    </h3>
  </xsl:if>
</xsl:template>

<xsl:template name="component.separator">
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="dedication" mode="dedication">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">

 =======================================================================
 ==src/xsl/docbook/xhtml/division.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: division.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="set">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:call-template name="set.titlepage"/>
    <xsl:if test="$generate.set.toc != '0'">
      <xsl:call-template name="set.toc"/>
    </xsl:if>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template match="set/setinfo"/>
<xsl:template match="set/title"/>
<xsl:template match="set/titleabbrev"/>
<xsl:template match="set/subtitle"/>

<!-- ==================================================================== -->

<xsl:template match="book">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:call-template name="book.titlepage"/>
    <xsl:apply-templates select="dedication" mode="dedication"/>
    <xsl:if test="$generate.book.toc != '0'">
      <xsl:call-template name="division.toc"/>
    </xsl:if>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template match="book/bookinfo"/>
<xsl:template match="book/title"/>
<xsl:template match="book/titleabbrev"/>
<xsl:template match="book/subtitle"/>


 =======================================================================
 ==src/xsl/docbook/xhtml/docbook.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" exclude-result-prefixes="doc" version="1.0">

<xsl:output method="xml" encoding="ISO-8859-1" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>

<!-- ********************************************************************
     $Id: docbook.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:include href="../VERSION"/>
<xsl:include href="param.xsl"/>
<xsl:include href="../lib/lib.xsl"/>
<xsl:include href="../common/l10n.xsl"/>
<xsl:include href="../common/common.xsl"/>
<xsl:include href="../common/labels.xsl"/>
<xsl:include href="../common/titles.xsl"/>
<xsl:include href="../common/subtitles.xsl"/>
<xsl:include href="../common/gentext.xsl"/>
<xsl:include href="autotoc.xsl"/>
<xsl:include href="autoidx.xsl"/>
<xsl:include href="lists.xsl"/>
<xsl:include href="callout.xsl"/>
<xsl:include href="verbatim.xsl"/>
<xsl:include href="graphics.xsl"/>
<xsl:include href="xref.xsl"/>
<xsl:include href="formal.xsl"/>
<xsl:include href="table.xsl"/>
<xsl:include href="sections.xsl"/>
<xsl:include href="inline.xsl"/>
<xsl:include href="footnote.xsl"/>
<xsl:include href="html.xsl"/>
<xsl:include href="info.xsl"/>
<xsl:include href="keywords.xsl"/>
<xsl:include href="division.xsl"/>
<xsl:include href="toc.xsl"/>
<xsl:include href="index.xsl"/>
<xsl:include href="refentry.xsl"/>
<xsl:include href="math.xsl"/>
<xsl:include href="admon.xsl"/>
<xsl:include href="component.xsl"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/ebnf.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" exclude-result-prefixes="doc" version="1.0">

<!-- ********************************************************************
     $Id: ebnf.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<doc:reference>
<referenceinfo xmlns="http://www.w3.org/1999/xhtml">
<releaseinfo role="meta">
$Id: ebnf.xsl 155424 2005-02-26 13:09:29Z dirkv $
</releaseinfo>
<author><surname>Walsh</surname>
<firstname>Norman</firstname></author>
<copyright><year>1999</year><year>2000</year>
<holder>Norman Walsh</holder>
</copyright>
</referenceinfo>
<title xmlns="http://www.w3.org/1999/xhtml">HTML EBNF Reference</title>

<partintro xmlns="http://www.w3.org/1999/xhtml">
<section><title>Introduction</title>

<para>This is technical reference documentation for the DocBook XSL
Stylesheets; it documents (some of) the parameters, templates, and
other elements of the stylesheets.</para>

<para>This reference describes the templates and parameters relevant
to formatting EBNF markup.</para>

<para>This is not intended to be <quote>user</quote> documentation.
It is provided for developers writing customization layers for the
stylesheets, and for anyone who's interested in <quote>how it
works</quote>.</para>

<para>Although I am trying to be thorough, this documentation is known
to be incomplete. Don't forget to read the source, too :-)</para>
</section>
</partintro>
</doc:reference>

<!-- ==================================================================== -->

 =======================================================================
 ==src/xsl/docbook/xhtml/expchunk.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.1" exclude-result-prefixes="doc" extension-element-prefixes="saxon xalanredirect lxslt">

<!-- This stylesheet works with Saxon and Xalan; for XT use xtchunk.xsl -->

<xsl:import href="autoidx.xsl"/>
<xsl:include href="chunk-experimental.xsl"/>
<xsl:include href="chunker.xsl"/>

</xsl:stylesheet>

 =======================================================================
 ==src/xsl/docbook/xhtml/FIXME.bak
 =======================================================================
  + width, height e.g in tables, images
 + anchors need to be <a id="..." instead of <a name="
 + img must have an alt attribute, even if it is empty (omitting is not
allowed)
 + one thing that was already mentioned, the proper nesting of elements:
there are no div elemtents allowed inside p elements (validator.w3.org says:
"Error: element "div" not allowed here; possible cause is an inline element
containing a block-level element"),
so we have to replace nearly all p elements by div elements, one exception
would be the simpara-->p transformation, which seems to be ok.
this are the first things that have come into mind, so this list has to be
filled.

 =======================================================================
 ==src/xsl/docbook/xhtml/footnote.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: footnote.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template match="footnote">
  <xsl:variable name="name">
    <xsl:call-template name="object.id"/>
  </xsl:variable>
  <xsl:variable name="href">
    <xsl:text>#ftn.</xsl:text>
    <xsl:call-template name="object.id"/>
  </xsl:variable>

  <xsl:choose>
    <xsl:when test="ancestor::table|ancestor::informaltable">
      <sup xmlns="http://www.w3.org/1999/xhtml">
        <xsl:text>[</xsl:text>
        <a id="{$name}" href="{$href}">
          <xsl:apply-templates select="." mode="footnote.number"/>
        </a>
        <xsl:text>]</xsl:text>
      </sup>
    </xsl:when>
    <xsl:otherwise>
      <sup xmlns="http://www.w3.org/1999/xhtml">
        <xsl:text>[</xsl:text>
        <a id="{$name}" href="{$href}">
          <xsl:apply-templates select="." mode="footnote.number"/>
        </a>
        <xsl:text>]</xsl:text>
      </sup>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="footnoteref">
  <xsl:variable name="targets" select="key('id',@linkend)"/>
  <xsl:variable name="footnote" select="$targets[1]"/>
  <xsl:variable name="href">

 =======================================================================
 ==src/xsl/docbook/xhtml/formal.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: formal.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="formal.object">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:call-template name="formal.object.heading"/>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template name="formal.object.heading">
  <p xmlns="http://www.w3.org/1999/xhtml">
    <xsl:call-template name="anchor"/>
    <b>
      <xsl:apply-templates select="." mode="object.title.markup">
        <xsl:with-param name="allow-anchors" select="1"/>
      </xsl:apply-templates>
    </b>
  </p>
</xsl:template>

<xsl:template name="informal.object">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:if test="$spacing.paras != 0"><p/></xsl:if>
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
    <xsl:if test="$spacing.paras != 0"><p/></xsl:if>
  </div>
</xsl:template>

<xsl:template name="semiformal.object">
  <xsl:choose>
    <xsl:when test="title">
      <xsl:call-template name="formal.object"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="informal.object"/>
    </xsl:otherwise>

 =======================================================================
 ==src/xsl/docbook/xhtml/glossary.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: glossary.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="glossary">
  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>

  <div xmlns="http://www.w3.org/1999/xhtml" id="{$id}" class="{name(.)}">
    <xsl:call-template name="glossary.titlepage"/>

    <xsl:choose>
      <xsl:when test="glossdiv">
        <xsl:apply-templates select="(glossdiv[1]/preceding-sibling::*)"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:apply-templates select="(glossentry[1]/preceding-sibling::*)"/>
      </xsl:otherwise>
    </xsl:choose>

    <xsl:choose>
      <xsl:when test="glossdiv">
        <xsl:apply-templates select="glossdiv"/>
      </xsl:when>
      <xsl:otherwise>
        <dl>
          <xsl:apply-templates select="glossentry"/>
        </dl>
      </xsl:otherwise>
    </xsl:choose>

    <xsl:call-template name="process.footnotes"/>
  </div>
</xsl:template>

<xsl:template match="glossary/glossaryinfo"/>
<xsl:template match="glossary/title"/>
<xsl:template match="glossary/subtitle"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/graphics.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.TextFactory" xmlns:xtext="com.nwalsh.xalan.Text" xmlns:lxslt="http://xml.apache.org/xslt" exclude-result-prefixes="xlink stext xtext lxslt" extension-element-prefixes="stext xtext" version="1.0">

<!-- ********************************************************************
     $Id: graphics.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     Contributors:
     Colin Paul Adams, <colin@colina.demon.co.uk>

     ******************************************************************** -->

<lxslt:component prefix="xtext" elements="insertfile"/>

<!-- ==================================================================== -->
<!-- Graphic format tests for the HTML backend -->

<xsl:template name="is.graphic.format">
  <xsl:param name="format"/>
  <xsl:if test="$format = 'PNG'                 or $format = 'JPG'                 or $format = 'JPEG'                 or $format = 'linespecific'                 or $format = 'GIF'                 or $format = 'GIF87a'                 or $format = 'GIF89a'                 or $format = 'BMP'">1</xsl:if>
</xsl:template>

<xsl:template name="is.graphic.extension">
  <xsl:param name="ext"/>
  <xsl:if test="$ext = 'png'                 or $ext = 'jpeg'                 or $ext = 'jpg'                 or $ext = 'avi'                 or $ext = 'mpg'                 or $ext = 'mpeg'                 or $ext = 'qt'                 or $ext = 'gif'                 or $ext = 'bmp'">1</xsl:if>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="screenshot">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template match="screeninfo">
</xsl:template>

<!-- ==================================================================== -->

<xsl:template name="process.image">
  <!-- When this template is called, the current node should be  -->
  <!-- a graphic, inlinegraphic, imagedata, or videodata. All    -->
  <!-- those elements have the same set of attributes, so we can -->

 =======================================================================
 ==src/xsl/docbook/xhtml/html.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: html.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="anchor">
  <xsl:param name="node" select="."/>
  <xsl:param name="conditional" select="1"/>
  <xsl:variable name="id">
    <xsl:call-template name="object.id">
      <xsl:with-param name="object" select="$node"/>
    </xsl:call-template>
  </xsl:variable>
  <xsl:if test="$conditional = 0 or $node/@id">
    <a xmlns="http://www.w3.org/1999/xhtml" id="{$id}"/>
  </xsl:if>
</xsl:template>

<xsl:template name="dingbat">
  <xsl:param name="dingbat">bullet</xsl:param>
  <xsl:choose>
    <xsl:when test="false() and $using.chunker != 0">
      <dingbat xmlns="http://www.w3.org/1999/xhtml" name="{$dingbat}"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="dingbat.characters">
        <xsl:with-param name="dingbat" select="$dingbat"/>
      </xsl:call-template>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="dingbat.characters">
  <!-- now that I'm using the real serializer, all that dingbat malarky -->
  <!-- isn't necessary anymore... -->
  <xsl:param name="dingbat">bullet</xsl:param>
  <xsl:choose>
    <xsl:when test="$dingbat='bullet'">&#8226;</xsl:when>
    <xsl:when test="$dingbat='copyright'">&#169;</xsl:when>
    <xsl:when test="$dingbat='trademark'">&#8482;</xsl:when>

 =======================================================================
 ==src/xsl/docbook/xhtml/html2xhtml.xsl
 =======================================================================
 <?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

<xsl:output method="xml" encoding="US-ASCII"/>
<xsl:preserve-space elements="*"/>

<xsl:template match="/">
  <xsl:text>&#10;</xsl:text>
  <xsl:comment>This file was created automatically by html2xhtml</xsl:comment>
  <xsl:text>&#10;</xsl:text>
  <xsl:comment>from the HTML stylesheets. Do not edit this file.</xsl:comment>
  <xsl:text>&#10;</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>&#10;</xsl:text>
</xsl:template>

<!-- Make sure we override some templates and parameters appropriately for XHTML -->
<xsl:template match="xsl:output">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:attribute name="method">xml</xsl:attribute>
    <xsl:attribute name="doctype-public">-//W3C//DTD XHTML 1.0 Transitional//EN</xsl:attribute>
    <xsl:attribute name="doctype-system">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</xsl:attribute>
  </xsl:copy>
</xsl:template>

<xsl:template match="xsl:param[@name='make.valid.html']">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:attribute name="select">1</xsl:attribute>
  </xsl:copy>
</xsl:template>

<xsl:template match="xsl:param[@name='output.method']">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:attribute name="select">'xml'</xsl:attribute>
  </xsl:copy>
</xsl:template>

<xsl:template match="xsl:param[@name='html.ext']">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:attribute name="select">'xhtm'</xsl:attribute>
  </xsl:copy>
</xsl:template>

<xsl:template match="xsl:attribute[@name='name']">
  <xsl:choose>

 =======================================================================
 ==src/xsl/docbook/xhtml/index.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: index.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="index|setindex">
  <!-- some implementations use completely empty index tags to indicate -->
  <!-- where an automatically generated index should be inserted. so -->
  <!-- if the index is completely empty, skip it. Unless generate.index -->
  <!-- is non-zero, in which case, this is where the automatically -->
  <!-- generated index should go. -->

  <xsl:if test="count(*)&gt;0 or $generate.index != '0'">
    <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
      <xsl:call-template name="anchor"/>
      <xsl:call-template name="index.titlepage"/>
      <xsl:apply-templates/>

      <xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
        <xsl:call-template name="generate-index"/>
      </xsl:if>

      <xsl:call-template name="process.footnotes"/>
    </div>
  </xsl:if>
</xsl:template>

<xsl:template match="index/title"/>
<xsl:template match="index/subtitle"/>
<xsl:template match="index/titleabbrev"/>

<xsl:template match="index/title" mode="component.title.mode">
  <h2 xmlns="http://www.w3.org/1999/xhtml" class="title">
    <xsl:apply-templates/>
  </h2>
</xsl:template>

<xsl:template match="index/subtitle" mode="component.title.mode">

 =======================================================================
 ==src/xsl/docbook/xhtml/info.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: info.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- These templates define the "default behavior" for info
     elements.  Even if you don't process the *info wrappers,
     some of these elements are needed because the elements are
     processed from named templates that are called with modes.
     Since modes aren't sticky, these rules apply. 
     (TODO: clarify this comment) -->

<!-- ==================================================================== -->
<!-- called from named templates in a given mode -->

<xsl:template match="corpauthor">
  <span xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:apply-templates/>
  </span>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="jobtitle">
  <span xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:apply-templates/>
  </span>
</xsl:template>

<xsl:template match="orgname">
  <span xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:apply-templates/>
  </span>
</xsl:template>

<xsl:template match="orgdiv">
  <span xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:apply-templates/>
  </span>
</xsl:template>

 =======================================================================
 ==src/xsl/docbook/xhtml/inline.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" exclude-result-prefixes="xlink" version="1.0">

<!-- ********************************************************************
     $Id: inline.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template name="simple.xlink">
  <xsl:param name="node" select="."/>
  <xsl:param name="content">
    <xsl:apply-templates/>
  </xsl:param>

  <xsl:choose>
    <xsl:when test="$node/@xlink:type='simple' and $node/@xlink:href">
      <a xmlns="http://www.w3.org/1999/xhtml">
        <xsl:if test="@xlink.title">
          <xsl:attribute name="title">
            <xsl:value-of select="@xlink:title"/>
          </xsl:attribute>
        </xsl:if>

        <xsl:attribute name="href">
          <xsl:choose>
            <!-- if the href starts with # and does not contain an "(" -->
            <!-- or if the href starts with #xpointer(id(, it's just an ID -->
            <xsl:when test="starts-with(@xlink:href,'#')                             and (not(contains(@xlink:href,'('))                             or starts-with(@xlink:href,'#xpointer(id('))">
              <xsl:variable name="idref">
                <xsl:call-template name="xpointer.idref">
                  <xsl:with-param name="xpointer" select="@xlink:href"/>
                </xsl:call-template>
              </xsl:variable>

              <xsl:variable name="targets" select="key('id',$idref)"/>
              <xsl:variable name="target" select="$targets[1]"/>

              <xsl:call-template name="check.id.unique">
                <xsl:with-param name="linkend" select="@linkend"/>
              </xsl:call-template>

              <xsl:choose>
                <xsl:when test="count($target) = 0">

 =======================================================================
 ==src/xsl/docbook/xhtml/keywords.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: keywords.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template match="keywordset"/>
<xsl:template match="subjectset"/>

<!-- ==================================================================== -->

<xsl:template match="keywordset" mode="html.header">
  <meta xmlns="http://www.w3.org/1999/xhtml" name="keywords">
    <xsl:attribute name="content">
      <xsl:apply-templates select="keyword" mode="html.header"/>
    </xsl:attribute>
  </meta>
</xsl:template>

<xsl:template match="keyword" mode="html.header">
  <xsl:apply-templates/>
  <xsl:if test="following-sibling::keyword">, </xsl:if>
</xsl:template>

<!-- ==================================================================== -->

</xsl:stylesheet>

 =======================================================================
 ==src/xsl/docbook/xhtml/lists.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: lists.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="itemizedlist">
  <xsl:variable name="itemsymbol">
    <xsl:call-template name="list.itemsymbol"/>
  </xsl:variable>

  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:call-template name="anchor"/>
    <xsl:if test="title">
      <xsl:apply-templates select="title"/>
    </xsl:if>
    <ul type="{$itemsymbol}">
      <xsl:if test="@spacing='compact'">
        <xsl:attribute name="compact">
          <xsl:value-of select="@spacing"/>
        </xsl:attribute>
      </xsl:if>
      <xsl:apply-templates select="listitem"/>
    </ul>
  </div>
</xsl:template>

<xsl:template match="itemizedlist/title">
  <p xmlns="http://www.w3.org/1999/xhtml"><b><xsl:apply-templates/></b></p>
</xsl:template>

<xsl:template match="itemizedlist/listitem">
  <xsl:variable name="mark" select="../@mark"/>
  <xsl:variable name="override" select="@override"/>

  <xsl:variable name="usemark">
    <xsl:choose>
      <xsl:when test="$override != ''">
	<xsl:value-of select="$override"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/math.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: math.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template match="inlineequation">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="alt">
</xsl:template>

<!-- Support for TeX math in alt -->

<xsl:template match="*" mode="collect.tex.math">
  <xsl:call-template name="write.text.chunk">
    <xsl:with-param name="filename" select="$tex.math.file"/>
    <xsl:with-param name="method" select="'text'"/>
    <xsl:with-param name="content">
      <xsl:choose>
        <xsl:when test="$tex.math.in.alt = 'plain'">
          <xsl:call-template name="tex.math.plain.head"/>
          <xsl:apply-templates select="." mode="collect.tex.math.plain"/>
          <xsl:call-template name="tex.math.plain.tail"/>
        </xsl:when>
        <xsl:when test="$tex.math.in.alt = 'latex'">
          <xsl:call-template name="tex.math.latex.head"/>
          <xsl:apply-templates select="." mode="collect.tex.math.latex"/>
          <xsl:call-template name="tex.math.latex.tail"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:message>
            Unsupported TeX math notation: 
            <xsl:value-of select="$tex.math.in.alt"/>
          </xsl:message>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:with-param>
    <xsl:with-param name="encoding" select="$default.encoding"/>
  </xsl:call-template>

 =======================================================================
 ==src/xsl/docbook/xhtml/oldchunker.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.1" exclude-result-prefixes="doc" extension-element-prefixes="saxon xalanredirect lxslt">

<!-- This stylesheet works with Saxon and Xalan; for XT use xtchunker.xsl -->

<!-- ==================================================================== -->

<xsl:param name="default.encoding" select="'ISO-8859-1'" doc:type="string"/>

<doc:param name="default.encoding">
<refpurpose xmlns="http://www.w3.org/1999/xhtml">Encoding used in generated HTML pages</refpurpose>
<refdescription xmlns="http://www.w3.org/1999/xhtml">
<para>This encoding is used in files generated by chunking stylesheet. Currently
only Saxon is able to change output encoding.
</para>
</refdescription>
</doc:param>

<!-- ==================================================================== -->

<xsl:param name="saxon.character.representation" select="'entity;decimal'" doc:type="string"/>

<doc:param name="saxon.character.representation">
<refpurpose xmlns="http://www.w3.org/1999/xhtml">Saxon character representation used in generated HTML pages</refpurpose>
<refdescription xmlns="http://www.w3.org/1999/xhtml">
<para>This character representation is used in files generated by chunking stylesheet. If
you want to suppress entity references for characters with direct representation 
in default.encoding, set this parameter to value <literal>native</literal>. 
</para>
</refdescription>
</doc:param>

<!-- ==================================================================== -->

<xsl:template name="make-relative-filename">
  <xsl:param name="base.dir" select="'./'"/>
  <xsl:param name="base.name" select="''"/>

  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>

  <xsl:choose>
    <xsl:when test="contains($vendor, 'SAXON')">
      <!-- Saxon doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>
    </xsl:when>
    <xsl:when test="contains($vendor, 'Apache')">
      <!-- Xalan doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/onechunk.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.0" exclude-result-prefixes="doc">

<!-- This stylesheet works with Saxon and Xalan; for XT use xtchunk.xsl -->
<!-- This stylesheet should also work for any processor that supports   -->
<!-- exslt:document() (see http://www.exslt.org/)                       -->

<xsl:import href="autoidx.xsl"/>
<xsl:include href="chunk-common.xsl"/>
<xsl:include href="chunker.xsl"/>

<!-- ==================================================================== -->
<!-- What's a chunk?

     The root element (that's it in this version)
                                                                          -->
<!-- ==================================================================== -->

<xsl:template name="chunk">
  <xsl:param name="node" select="."/>

  <xsl:choose>
    <xsl:when test="not($node/parent::*)">1</xsl:when>
    <xsl:otherwise>0</xsl:otherwise>
  </xsl:choose>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="set|book|part|preface|chapter|appendix                      |article                      |reference|refentry                      |book/glossary|article/glossary                      |book/bibliography|article/bibliography                      |sect1|/section|section                      |setindex|book/index|article/index                      |colophon" priority="2">
  <xsl:variable name="ischunk">
    <xsl:call-template name="chunk"/>
  </xsl:variable>

  <xsl:choose>
    <xsl:when test="$ischunk = 1">
      <xsl:call-template name="process-chunk-element"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-imports/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<!-- ==================================================================== -->

</xsl:stylesheet>

 =======================================================================
 ==src/xsl/docbook/xhtml/param.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<!-- This file is generated from param.xweb; do not edit this file! --><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" exclude-result-prefixes="src" version="1.0">

<!-- ********************************************************************
     $Id: param.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:param name="admon.graphics.extension" select="'.png'"/>
<xsl:param name="admon.graphics" select="0"/>
<xsl:param name="admon.graphics.path">images/</xsl:param>
<xsl:param name="admon.style">
  <xsl:text>margin-left: 0.5in; margin-right: 0.5in;</xsl:text>
</xsl:param>
<xsl:param name="annotate.toc" select="1"/>
<xsl:param name="appendix.autolabel" select="1"/>
<xsl:param name="author.othername.in.middle" select="1"/>
<xsl:param name="autotoc.label.separator" select="'. '"/>
<xsl:param name="base.dir" select="''"/>
<xsl:param name="biblioentry.item.separator">. </xsl:param>
<xsl:param name="bibliography.collection" select="'http://docbook.sourceforge.net/release/bibliography/bibliography.xml'"/>
<xsl:param name="bridgehead.in.toc" select="0"/>
<xsl:param name="callout.defaultcolumn" select="'60'"/>
<xsl:param name="callout.graphics.extension" select="'.png'"/>
<xsl:param name="callout.graphics" select="'1'"/>
<xsl:param name="callout.graphics.number.limit" select="'10'"/>
<xsl:param name="callout.graphics.path" select="'images/callouts/'"/>
<xsl:param name="callout.list.table" select="'1'"/>
<xsl:param name="callout.unicode" select="0"/>
<xsl:param name="callout.unicode.number.limit" select="'10'"/>
<xsl:param name="callout.unicode.start.character" select="10102"/>
<xsl:param name="callouts.extension" select="'1'"/>
<xsl:param name="chapter.autolabel" select="1"/>

<xsl:param name="chunk.datafile" select="'.chunks'"/>


<xsl:param name="chunk.first.sections" select="0"/>


<xsl:param name="chunk.section.depth" select="1"/>

<xsl:param name="citerefentry.link" select="'0'"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/pi.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: pi.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<xsl:template match="processing-instruction()">
</xsl:template>

<xsl:template match="processing-instruction('dbhtml')">
  <xsl:if test="$using.chunker">
    <xsl:processing-instruction name="dbhtml">
      <xsl:value-of select="."/>
    </xsl:processing-instruction>
  </xsl:if>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template name="dbhtml-attribute">
  <xsl:param name="pis" select="processing-instruction('dbhtml')"/>
  <xsl:param name="attribute">filename</xsl:param>

  <xsl:call-template name="pi-attribute">
    <xsl:with-param name="pis" select="$pis"/>
    <xsl:with-param name="attribute" select="$attribute"/>
  </xsl:call-template>
</xsl:template>

<xsl:template name="dbhtml-filename">
  <xsl:param name="pis" select="./processing-instruction('dbhtml')"/>
  <xsl:call-template name="dbhtml-attribute">
    <xsl:with-param name="pis" select="$pis"/>
    <xsl:with-param name="attribute">filename</xsl:with-param>
  </xsl:call-template>
</xsl:template>

<xsl:template name="dbhtml-dir">
  <xsl:param name="pis" select="./processing-instruction('dbhtml')"/>
  <xsl:call-template name="dbhtml-attribute">
    <xsl:with-param name="pis" select="$pis"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/qandaset.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" exclude-result-prefixes="doc" version="1.0">

<!-- ********************************************************************
     $Id: qandaset.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="qandaset">
  <xsl:variable name="title" select="title"/>
  <xsl:variable name="preamble" select="*[name(.) != 'title'                                           and name(.) != 'titleabbrev'                                           and name(.) != 'qandadiv'                                           and name(.) != 'qandaentry']"/>
  <xsl:variable name="label-width">
    <xsl:call-template name="dbhtml-attribute">
      <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
      <xsl:with-param name="attribute" select="'label-width'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="table-summary">
    <xsl:call-template name="dbhtml-attribute">
      <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
      <xsl:with-param name="attribute" select="'table-summary'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="cellpadding">
    <xsl:call-template name="dbhtml-attribute">
      <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
      <xsl:with-param name="attribute" select="'cellpadding'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="cellspacing">
    <xsl:call-template name="dbhtml-attribute">
      <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
      <xsl:with-param name="attribute" select="'cellspacing'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="toc">
    <xsl:call-template name="dbhtml-attribute">

 =======================================================================
 ==src/xsl/docbook/xhtml/refentry.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: refentry.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="reference">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:call-template name="anchor">
      <xsl:with-param name="conditional" select="0"/>
    </xsl:call-template>
    <xsl:call-template name="reference.titlepage"/>
    <xsl:if test="not(partintro) and $generate.reference.toc != '0'">
      <xsl:call-template name="division.toc"/>
    </xsl:if>
    <xsl:apply-templates/>
  </div>
</xsl:template>

<xsl:template match="reference" mode="division.number">
  <xsl:number from="book" count="reference" format="I."/>
</xsl:template>

<xsl:template match="reference/docinfo"/>
<xsl:template match="reference/referenceinfo"/>
<xsl:template match="reference/title"/>
<xsl:template match="reference/subtitle"/>

<!-- ==================================================================== -->

<xsl:template name="refentry.title">
  <xsl:param name="node" select="."/>
  <xsl:variable name="refmeta" select="$node//refmeta"/>
  <xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/>
  <xsl:variable name="refnamediv" select="$node//refnamediv"/>
  <xsl:variable name="refname" select="$refnamediv//refname"/>
  <xsl:variable name="title">
    <xsl:choose>
      <xsl:when test="$refentrytitle">

 =======================================================================
 ==src/xsl/docbook/xhtml/sections.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: sections.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="section">
  <xsl:variable name="depth" select="count(ancestor::section)+1"/>

  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <xsl:call-template name="section.titlepage"/>
    <xsl:if test="($generate.section.toc != '0'                    and $depth &lt;= $generate.section.toc.level)                   or refentry">
      <xsl:call-template name="section.toc"/>
    </xsl:if>
    <xsl:apply-templates/>
    <xsl:call-template name="process.chunk.footnotes"/>
  </div>
</xsl:template>

<xsl:template name="section.title">
  <!-- the context node should be the title of a section when called -->
  <xsl:variable name="section" select="(ancestor::section                                         |ancestor::simplesect                                         |ancestor::sect1                                         |ancestor::sect2                                         |ancestor::sect3                                         |ancestor::sect4                                         |ancestor::sect5)[last()]"/>

  <xsl:variable name="level">
    <xsl:call-template name="section.level">
      <xsl:with-param name="node" select="$section"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:call-template name="section.heading">
    <xsl:with-param name="section" select=".."/>
    <xsl:with-param name="level" select="$level"/>
    <xsl:with-param name="title">
      <xsl:apply-templates select="$section" mode="object.title.markup">
        <xsl:with-param name="allow-anchors" select="1"/>
      </xsl:apply-templates>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>

 =======================================================================
 ==src/xsl/docbook/xhtml/synop.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: synop.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<!-- synopsis is in verbatim -->

<!-- ==================================================================== -->

<xsl:template match="cmdsynopsis">
  <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
    <p>
      <xsl:call-template name="anchor"/>
      <xsl:apply-templates/>
    </p>
  </div>
</xsl:template>

<xsl:template match="cmdsynopsis/command">
  <br xmlns="http://www.w3.org/1999/xhtml"/>
  <xsl:call-template name="inline.monoseq"/>
  <xsl:text> </xsl:text>
</xsl:template>

<xsl:template match="cmdsynopsis/command[1]" priority="2">
  <xsl:call-template name="inline.monoseq"/>
  <xsl:text> </xsl:text>
</xsl:template>

<xsl:template match="group|arg">
  <xsl:variable name="choice" select="@choice"/>
  <xsl:variable name="rep" select="@rep"/>
  <xsl:variable name="sepchar">
    <xsl:choose>
      <xsl:when test="ancestor-or-self::*/@sepchar">
        <xsl:value-of select="ancestor-or-self::*/@sepchar"/>
      </xsl:when>
      <xsl:otherwise>

 =======================================================================
 ==src/xsl/docbook/xhtml/table.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:stbl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Table" xmlns:xtbl="com.nwalsh.xalan.Table" xmlns:lxslt="http://xml.apache.org/xslt" exclude-result-prefixes="doc stbl xtbl lxslt" version="1.0">

<xsl:include href="../common/table.xsl"/>

<!-- ********************************************************************
     $Id: table.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<lxslt:component prefix="xtbl" functions="adjustColumnWidths"/>

<xsl:template name="empty.table.cell">
  <xsl:param name="colnum" select="0"/>

  <xsl:variable name="rowsep">
    <xsl:call-template name="inherited.table.attribute">
      <xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
      <xsl:with-param name="colnum" select="$colnum"/>
      <xsl:with-param name="attribute" select="'rowsep'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:variable name="colsep">
    <xsl:call-template name="inherited.table.attribute">
      <xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
      <xsl:with-param name="colnum" select="$colnum"/>
      <xsl:with-param name="attribute" select="'colsep'"/>
    </xsl:call-template>
  </xsl:variable>

  <td xmlns="http://www.w3.org/1999/xhtml" class="auto-generated">
    <xsl:if test="$table.borders.with.css != 0">
      <xsl:attribute name="style">
        <xsl:if test="$colsep &gt; 0">
          <xsl:call-template name="border">
            <xsl:with-param name="side" select="'right'"/>
          </xsl:call-template>
        </xsl:if>
        <xsl:if test="$rowsep &gt; 0">
          <xsl:call-template name="border">
            <xsl:with-param name="side" select="'bottom'"/>
          </xsl:call-template>

 =======================================================================
 ==src/xsl/docbook/xhtml/titlepage.templates.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->

<xsl:template name="article.titlepage.recto">
  <xsl:choose>
    <xsl:when test="articleinfo/title">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/>
    </xsl:when>
    <xsl:when test="artheader/title">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/>
    </xsl:when>
    <xsl:when test="title">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/>
    </xsl:when>
  </xsl:choose>

  <xsl:choose>
    <xsl:when test="articleinfo/subtitle">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/>
    </xsl:when>
    <xsl:when test="artheader/subtitle">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/>
    </xsl:when>
    <xsl:when test="subtitle">
      <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/>
    </xsl:when>
  </xsl:choose>

  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/>
  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/>

 =======================================================================
 ==src/xsl/docbook/xhtml/titlepage.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: titlepage.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:attribute-set name="book.titlepage.recto.style"/>
<xsl:attribute-set name="book.titlepage.verso.style"/>

<xsl:attribute-set name="article.titlepage.recto.style"/>
<xsl:attribute-set name="article.titlepage.verso.style"/>

<xsl:attribute-set name="set.titlepage.recto.style"/>
<xsl:attribute-set name="set.titlepage.verso.style"/>

<xsl:attribute-set name="part.titlepage.recto.style"/>
<xsl:attribute-set name="part.titlepage.verso.style"/>

<xsl:attribute-set name="partintro.titlepage.recto.style"/>
<xsl:attribute-set name="partintro.titlepage.verso.style"/>

<xsl:attribute-set name="reference.titlepage.recto.style"/>
<xsl:attribute-set name="reference.titlepage.verso.style"/>

<xsl:attribute-set name="refentry.titlepage.recto.style"/>
<xsl:attribute-set name="refentry.titlepage.verso.style"/>

<xsl:attribute-set name="dedication.titlepage.recto.style"/>
<xsl:attribute-set name="dedication.titlepage.verso.style"/>

<xsl:attribute-set name="preface.titlepage.recto.style"/>
<xsl:attribute-set name="preface.titlepage.verso.style"/>

<xsl:attribute-set name="chapter.titlepage.recto.style"/>
<xsl:attribute-set name="chapter.titlepage.verso.style"/>

<xsl:attribute-set name="appendix.titlepage.recto.style"/>
<xsl:attribute-set name="appendix.titlepage.verso.style"/>


 =======================================================================
 ==src/xsl/docbook/xhtml/toc.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- ********************************************************************
     $Id: toc.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="toc">
  <xsl:choose>
    <xsl:when test="*">
      <xsl:if test="$process.source.toc != 0">
        <!-- if the toc isn't empty, process it -->
        <xsl:element name="{$toc.list.type}">
          <xsl:apply-templates/>
        </xsl:element>
      </xsl:if>
    </xsl:when>
    <xsl:otherwise>
      <xsl:if test="$process.empty.source.toc != 0">
        <xsl:choose>
          <xsl:when test="parent::section                           or parent::sect1                           or parent::sect2                           or parent::sect3                           or parent::sect4                           or parent::sect5">
            <xsl:apply-templates select="parent::*" mode="toc.for.section"/>
          </xsl:when>
          <xsl:when test="parent::article">
            <xsl:apply-templates select="parent::*" mode="toc.for.component"/>
          </xsl:when>
          <xsl:when test="parent::book                           or parent::part">
            <xsl:apply-templates select="parent::*" mode="toc.for.division"/>
          </xsl:when>
          <xsl:when test="parent::set">
            <xsl:apply-templates select="parent::*" mode="toc.for.set"/>
          </xsl:when>
          <!-- there aren't any other contexts that allow toc -->
          <xsl:otherwise>
            <xsl:message>
              <xsl:text>I don't know how to make a TOC in this context!</xsl:text>
            </xsl:message>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:if>

 =======================================================================
 ==src/xsl/docbook/xhtml/verbatim.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim" xmlns:xverb="com.nwalsh.xalan.Verbatim" xmlns:lxslt="http://xml.apache.org/xslt" exclude-result-prefixes="sverb xverb lxslt" version="1.0">

<!-- ********************************************************************
     $Id: verbatim.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<lxslt:component prefix="xverb" functions="numberLines"/>

<xsl:template match="programlisting|screen|synopsis">
  <xsl:param name="suppress-numbers" select="'0'"/>
  <xsl:variable name="id">
    <xsl:call-template name="object.id"/>
  </xsl:variable>

  <xsl:call-template name="anchor"/>

  <xsl:variable name="content">
    <xsl:choose>
      <xsl:when test="$suppress-numbers = '0'                       and @linenumbering = 'numbered'                       and $use.extensions != '0'                       and $linenumbering.extension != '0'">
        <xsl:variable name="rtf">
          <xsl:apply-templates/>
        </xsl:variable>
        <pre xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
          <xsl:call-template name="number.rtf.lines">
            <xsl:with-param name="rtf" select="$rtf"/>
          </xsl:call-template>
        </pre>
      </xsl:when>
      <xsl:otherwise>
        <pre xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
          <xsl:apply-templates/>
        </pre>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>

  <xsl:choose>
    <xsl:when test="$shade.verbatim != 0">
      <table xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="shade.verbatim.style">
        <tr>
          <td>

 =======================================================================
 ==src/xsl/docbook/xhtml/xref.xsl
 =======================================================================
 <?xml version="1.0" encoding="US-ASCII"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" exclude-result-prefixes="doc" version="1.0">

<!-- ********************************************************************
     $Id: xref.xsl 155424 2005-02-26 13:09:29Z dirkv $
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

<xsl:template match="anchor">
  <xsl:call-template name="anchor"/>
</xsl:template>

<!-- ==================================================================== -->

<xsl:template match="xref" name="xref">
  <xsl:variable name="targets" select="key('id',@linkend)"/>
  <xsl:variable name="target" select="$targets[1]"/>
  <xsl:variable name="refelem" select="local-name($target)"/>

  <xsl:call-template name="check.id.unique">
    <xsl:with-param name="linkend" select="@linkend"/>
  </xsl:call-template>

  <xsl:call-template name="anchor"/>

  <xsl:choose>
    <xsl:when test="count($target) = 0">
      <xsl:message>
	<xsl:text>XRef to nonexistent id: </xsl:text>
	<xsl:value-of select="@linkend"/>
      </xsl:message>
      <xsl:text>???</xsl:text>
    </xsl:when>

    <xsl:when test="$target/@xreflabel">
      <a xmlns="http://www.w3.org/1999/xhtml">
        <xsl:attribute name="href">
          <xsl:call-template name="href.target">
            <xsl:with-param name="object" select="$target"/>
          </xsl:call-template>
        </xsl:attribute>

 =======================================================================
 ==src/xsl/docbook/xhtml/xslfiles.gen
 =======================================================================
 xslfiles: admon.xsl \
autoidx.xsl \
autotoc.xsl \
biblio.xsl \
block.xsl \
calc-chunks.xsl \
callout.xsl \
changebars.xsl \
chunk-experimental.xsl \
chunk.xsl \
chunker.xsl \
component.xsl \
division.xsl \
docbook.xsl \
ebnf.xsl \
expchunk.xsl \
footnote.xsl \
formal.xsl \
glossary.xsl \
graphics.xsl \
html.xsl \
index.xsl \
info.xsl \
inline.xsl \
keywords.xsl \
lists.xsl \
math.xsl \
oldchunker.xsl \
onechunk.xsl \
param.xsl \
pi.xsl \
qandaset.xsl \
refentry.xsl \
sections.xsl \
synop.xsl \
table.xsl \
titlepage.templates.xsl \
titlepage.xsl \
toc.xsl \
verbatim.xsl \
xref.xsl

 =======================================================================
 ==src/xsl/site/docbook2document.xsl
 =======================================================================
 <?xml version="1.0"?>

<!--
    Author:     Berin Loritsch (bloritsch@infoplanning.com)
    Author:     Peter Donald  (donaldp@apache.org)
    Author:     dIon Gillard (trongus@yahoo.com)
    Version:    $Id: docbook2document.xsl 155424 2005-02-26 13:09:29Z dirkv $
    FIXME:      Doesn't handle attributes of informaltable and other docbook elements
  -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- used for cross ref links (xref) -->
    <xsl:key name="id" match="*" use="@id"/>

    <xsl:template match="/">
        <xsl:comment>This document generated by docbook2document.xsl</xsl:comment>
        <xsl:apply-templates />
    </xsl:template>
    
    <!-- top level component templates -->
    <xsl:template match="book">
        <document>
            <properties>
                <title>
                    <xsl:value-of select="title"/>
                    <xsl:if test="subtitle">
                        (<xsl:value-of select="subtitle"/>)
                    </xsl:if>
                </title>
                <xsl:for-each select="//authorgroup/author">
                    <author email="{affiliation/address/email}">
                        <xsl:if test="honorific"><xsl:value-of select="honorific"/>. </xsl:if>
                        <xsl:if test="firstname">
                            <xsl:value-of select="firstname"/>
                            <xsl:text> </xsl:text>
                        </xsl:if>
                        <xsl:value-of select="surname"/>
                    </author>
                </xsl:for-each>
                <!-- always have the following as an author -->
                <author email="commons-dev@jakarta.apache.org">Commons Documentation Team</author>
            </properties>

            <body>
                <xsl:apply-templates select="dedication"/>
                <xsl:apply-templates select="bookinfo"/>
            </body>
        </document>    
    </xsl:template>


 =======================================================================
 ==src/xsl/site/site.xsl
 =======================================================================
 <?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Content Stylesheet for "jakarta-site2" Documentation -->
<!-- NOTE:  Changes here should also be reflected in "site.vsl" and vice
     versa, so either Anakia or XSLT can be used for document generation.   -->


<!-- Outstanding Compatibility Issues (with Anakia-based stylesheets):

* Handling of the <image> element to insert relative path prefixes

* Functional equivalent of "site_printable.vsl" not yet started.

-->


<!-- $Id: site.xsl 155424 2005-02-26 13:09:29Z dirkv $ -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0">


  <!-- Output method -->
  <xsl:output method="html"
            encoding="iso-8859-1"
              indent="no"/>


  <!-- Defined parameters (overrideable) -->
  <xsl:param name="relative-path" select="'.'"/>
  <xsl:param name="project-doc" select="'project.xml'" />

  <!-- Defined variables (non-overrideable) -->
  <xsl:variable name="body-bg"       select="'#ffffff'"/>
  <xsl:variable name="body-fg"       select="'#000000'"/>
  <xsl:variable name="body-link"     select="'#525D76'"/>
  <xsl:variable name="banner-bg"     select="'#525D76'"/>
  <xsl:variable name="banner-fg"     select="'#ffffff'"/>
  <xsl:variable name="sub-banner-bg" select="'#828DA6'"/>
  <xsl:variable name="sub-banner-fg" select="'#ffffff'"/>
  <xsl:variable name="table-th-bg"   select="'#039acc'"/>
  <xsl:variable name="table-td-bg"   select="'#a0ddf0'"/>
  <xsl:variable name="source-color"  select="'#023264'"/>


  <!-- Process an entire document into an HTML page -->
  <xsl:template match="document">
    <xsl:variable name="project"
                select="document($project-doc)/project"/>

    <html>