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&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&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><!ELEMENT byteLength EMPTY> <!ATTLIST byteLength min CDATA "0" max CDATA #IMPLIED label CDATA #IMPLIED></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>
</xsl:text> <xsl:apply-templates/> <xsl:text>
</xsl:text> Thank you very much. <xsl:text>
</xsl:text> </xsl:template> <xsl:template match="report"> <xsl:text>
</xsl:text> <xsl:apply-templates select="//request[not(requestSuccess)] | reportMessage"/> <!-- <xsl:apply-templates select="//request"/> --> <xsl:text>
</xsl:text> <xsl:call-template name="summary"/> <xsl:text>
</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>
</xsl:text> <xsl:value-of select="count(//request)"/><xsl:text> requests.</xsl:text> <xsl:text>
</xsl:text> <xsl:value-of select="count(//request/requestSuccess)"/><xsl:text> passed.</xsl:text> <xsl:text>
</xsl:text> <xsl:value-of select="count(//request/requestFailure)"/><xsl:text> failed.</xsl:text> <xsl:text>
</xsl:text> <xsl:value-of select="count(//request/requestSkipped)"/><xsl:text> skipped.</xsl:text> <xsl:text>
</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>

</xsl:text> </xsl:template> <xsl:template match="request"> <xsl:value-of select="@url"/> <xsl:call-template name="label"/> <xsl:text>
</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 <not/> 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><!ELEMENT byteLength EMPTY> <!ATTLIST byteLength min CDATA "0" max CDATA #IMPLIED label CDATA #IMPLIED></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èndex"/> <l:gentext key="Appendix" text="Apè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ó"/> <l:gentext key="caution" text="Atenció"/> <l:gentext key="CAUTION" text="ATENCIÓ"/> <l:gentext key="Chapter" text="Capítol"/> <l:gentext key="chapter" text="capítol"/> <l:gentext key="Colophon" text="Colophon"/> <l:gentext key="colophon" text="Colophon"/> <l:gentext key="Copyright" text="Dret de reproducció"/> <l:gentext key="copyright" text="Dret de reproducció"/> <l:gentext key="Dedication" text="Dedicatòria"/> <l:gentext key="dedication" text="Dedicatòria"/> <l:gentext key="Edition" text="Edició"/> <l:gentext key="edition" text="Edició"/> <l:gentext key="Equation" text="Equació"/> <l:gentext key="equation" text="Equació"/> <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é"/> <l:gentext key="glossseealso" text="Veure també"/> <l:gentext key="IMPORTANT" text="IMPORTANT"/> <l:gentext key="Important" text="Important"/> <l:gentext key="important" text="Important"/> <l:gentext key="Index" text="Índex alfabètic"/> <l:gentext key="index" text="Índex alfabè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ěď:"/> <l:gentext key="answer" text="Odpověď:"/> <l:gentext key="Appendix" text="Příloha"/> <l:gentext key="appendix" text="Příloha"/> <l:gentext key="Article" text="Článek"/> <l:gentext key="article" text="Člá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ýstraha"/> <l:gentext key="Caution" text="Výstraha"/> <l:gentext key="caution" text="Výstraha"/> <l:gentext key="Chapter" text="Kapitola"/> <l:gentext key="chapter" text="Kapitola"/> <l:gentext key="Colophon" text="Tiráž"/> <l:gentext key="colophon" text="Tiráž"/> <l:gentext key="Copyright" text="Copyright"/> <l:gentext key="copyright" text="Copyright"/> <l:gentext key="Dedication" text="Věnování"/> <l:gentext key="dedication" text="Věnování"/> <l:gentext key="Edition" text="Vydání"/> <l:gentext key="edition" text="Vydání"/> <l:gentext key="Equation" text="Rovnice"/> <l:gentext key="equation" text="Rovnice"/> <l:gentext key="Example" text="Příklad"/> <l:gentext key="example" text="Příklad"/> <l:gentext key="Figure" text="Obrázek"/> <l:gentext key="figure" text="Obrázek"/> <l:gentext key="Glossary" text="Slovník"/> <l:gentext key="glossary" text="Slovník"/> <l:gentext key="GlossSee" text="Viz"/> <l:gentext key="glosssee" text="Viz"/> <l:gentext key="GlossSeeAlso" text="Viz též"/> <l:gentext key="glossseealso" text="Viz též"/> <l:gentext key="IMPORTANT" text="Důležité"/> <l:gentext key="Important" text="Důležité"/> <l:gentext key="important" text="Důležité"/> <l:gentext key="Index" text="Rejstřík"/> <l:gentext key="index" text="Rejstří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é"/> <l:gentext key="abstract" text="resumé"/> <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Å"/> <l:gentext key="Caution" text="Pas på"/> <l:gentext key="caution" text="pas på"/> <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å"/> <l:gentext key="glossseealso" text="se også"/> <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="Ðåñßëçøç"/> <l:gentext key="abstract" text="Ðåñßëçøç"/> <l:gentext key="Answer" text="Á:"/> <l:gentext key="answer" text="Á:"/> <l:gentext key="Appendix" text="ÐáñÜñôçìá"/> <l:gentext key="appendix" text="ðáñÜñôçìá"/> <l:gentext key="Article" text="¶ñèñï"/> <l:gentext key="article" text="¶ñèñï"/> <l:gentext key="Bibliography" text="Âéâëéïãñáößá"/> <l:gentext key="bibliography" text="Âéâëéïãñáößá"/> <l:gentext key="Book" text="Âéâëßï"/> <l:gentext key="book" text="Âéâëßï"/> <l:gentext key="CAUTION" text="ÐÑÏÓÏ×Ç"/> <l:gentext key="caution" text="Ðñïóï÷Þ"/> <l:gentext key="Caution" text="Ðñïóï÷Þ"/> <l:gentext key="Chapter" text="ÊåöÜëáéï"/> <l:gentext key="chapter" text="êåöÜëáéï"/> <l:gentext key="Colophon" text="Êïñùíßäá"/> <l:gentext key="colophon" text="Êïñùíßäá"/> <l:gentext key="Copyright" text="ÐíåõìáôéêÜ Äéêáéþìáôá"/> <l:gentext key="copyright" text="ÐíåõìáôéêÜ Äéêáéþìáôá"/> <l:gentext key="Dedication" text="ÁöéÝñùóç"/> <l:gentext key="dedication" text="ÁöéÝñùóç"/> <l:gentext key="Edition" text="¸êäïóç"/> <l:gentext key="edition" text="¸êäïóç"/> <l:gentext key="Equation" text="Åîßóùóç"/> <l:gentext key="equation" text="Åîßóùóç"/> <l:gentext key="Example" text="ÐáñÜäåéãìá"/> <l:gentext key="example" text="ÐáñÜäåéãìá"/> <l:gentext key="Figure" text="Ó÷Þìá"/> <l:gentext key="figure" text="Ó÷Þìá"/> <l:gentext key="Glossary" text="ÃëùóóÜñéï"/> <l:gentext key="glossary" text="ÃëùóóÜñéï"/> <l:gentext key="GlossSee" text="Äåßôå"/> <l:gentext key="glosssee" text="Äåßôå"/> <l:gentext key="GlossSeeAlso" text="Äåßôå Åðßóçò"/> <l:gentext key="glossseealso" text="Äåßôå Åðßóçò"/> <l:gentext key="IMPORTANT" text="ÓÇÌÁÍÔÉÊÏ"/> <l:gentext key="Important" text="Óçìáíôéêü"/> <l:gentext key="important" text="Óçìáíôéêü"/> <l:gentext key="Index" text="ÅõñåôÞñéï"/> <l:gentext key="index" text="ÅõñåôÞñéï"/> <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éndice"/> <l:gentext key="appendix" text="apéndice"/> <l:gentext key="Article" text="Artículo"/> <l:gentext key="article" text="Artículo"/> <l:gentext key="Bibliography" text="Bibliografía"/> <l:gentext key="bibliography" text="Bibliografía"/> <l:gentext key="Book" text="Libro"/> <l:gentext key="book" text="Libro"/> <l:gentext key="Caution" text="Atención"/> <l:gentext key="caution" text="Atención"/> <l:gentext key="CAUTION" text="ATENCIÓN"/> <l:gentext key="Chapter" text="Capítulo"/> <l:gentext key="chapter" text="capí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ón"/> <l:gentext key="edition" text="Edición"/> <l:gentext key="Equation" text="Ecuación"/> <l:gentext key="equation" text="Ecuació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én"/> <l:gentext key="glossseealso" text="Ver también"/> <l:gentext key="IMPORTANT" text="IMPORTANTE"/> <l:gentext key="Important" text="Importante"/> <l:gentext key="important" text="Importante"/> <l:gentext key="Index" text="Índice"/> <l:gentext key="index" text="Í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="Ülevaade"/> <l:gentext key="abstract" text="Ü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ükk"/> <l:gentext key="chapter" text="peatükk"/> <l:gentext key="Colophon" text="Lõpumärgis"/> <l:gentext key="colophon" text="Lõpumärgis"/> <l:gentext key="Copyright" text="Autoriõigus"/> <l:gentext key="copyright" text="Autoriõigus"/> <l:gentext key="Dedication" text="Pühendus"/> <l:gentext key="dedication" text="Pühendus"/> <l:gentext key="Edition" text="Väljaanne"/> <l:gentext key="edition" text="Väljaanne"/> <l:gentext key="Equation" text="Valem"/> <l:gentext key="equation" text="Valem"/> <l:gentext key="Example" text="Näide"/> <l:gentext key="example" text="Näide"/> <l:gentext key="figure" text="Joonis"/> <l:gentext key="Figure" text="Joonis"/> <l:gentext key="Glossary" text="Sõnastik"/> <l:gentext key="glossary" text="Sõ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ä"/> <l:gentext key="abstract" text="Lyhennelmä"/> <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ähteet"/> <l:gentext key="bibliography" text="Lä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ös"/> <l:gentext key="glossseealso" text="Katso myös"/> <l:gentext key="IMPORTANT" text="TÄRKEÄÄ"/> <l:gentext key="Important" text="Tärkeää"/> <l:gentext key="important" text="Tärkeää"/> <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ésumé"/> <l:gentext key="abstract" text="Résumé"/> <l:gentext key="Answer" text="R :"/> <l:gentext key="answer" text="R :"/> <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édicace"/> <l:gentext key="dedication" text="Dédicace"/> <l:gentext key="Edition" text="Édition"/> <l:gentext key="edition" text="Édition"/> <l:gentext key="Equation" text="Équation"/> <l:gentext key="equation" text="É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álasz"/> <l:gentext key="answer" text="válasz"/> <l:gentext key="Appendix" text="Függelék"/> <l:gentext key="appendix" text="függelék"/> <l:gentext key="Article" text="Cikk"/> <l:gentext key="article" text="cikk"/> <l:gentext key="Bibliography" text="Irodalomjegyzék"/> <l:gentext key="bibliography" text="irodalomjegyzék"/> <l:gentext key="Book" text="Könyv"/> <l:gentext key="book" text="kö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égszó"/> <l:gentext key="colophon" text="végszó"/> <l:gentext key="Copyright" text="Copyright"/> <l:gentext key="copyright" text="copyright"/> <l:gentext key="Dedication" text="Ajánlás"/> <l:gentext key="dedication" text="ajánlás"/> <l:gentext key="Edition" text="Kiadás"/> <l:gentext key="edition" text="kiadás"/> <l:gentext key="Equation" text="Egyenlet"/> <l:gentext key="equation" text="egyenlet"/> <l:gentext key="Example" text="Példa"/> <l:gentext key="example" text="példa"/> <l:gentext key="Figure" text="Ábra"/> <l:gentext key="figure" text="ábra"/> <l:gentext key="Glossary" text="Szójegyzék"/> <l:gentext key="glossary" text="szójegyzék"/> <l:gentext key="GlossSee" text="Lásd"/> <l:gentext key="glosssee" text="lásd"/> <l:gentext key="GlossSeeAlso" text="Lásd még"/> <l:gentext key="glossseealso" text="lásd mé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árgymutató"/> <l:gentext key="index" text="tárgymutató"/> <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="概要"/> <l:gentext key="abstract" text="概要"/> <l:gentext key="Answer" text="問:"/> <l:gentext key="answer" text="問:"/> <l:gentext key="Appendix" text="付録"/> <l:gentext key="appendix" text="付録"/> <l:gentext key="Article" text="項目"/> <l:gentext key="article" text="項目"/> <l:gentext key="Bibliography" text="参考文献"/> <l:gentext key="bibliography" text="参考文献"/> <l:gentext key="Book" text="ブック"/> <l:gentext key="book" text="ブック"/> <l:gentext key="Caution" text="注意"/> <l:gentext key="caution" text="注意"/> <l:gentext key="CAUTION" text="注意"/> <l:gentext key="chapter" text="章"/> <l:gentext key="chapter1" text="第"/> <l:gentext key="Chapter1" text="第"/> <l:gentext key="Chapter2" text="章"/> <l:gentext key="chapter2" text="章"/> <l:gentext key="Colophon" text="奥付"/> <l:gentext key="colophon" text="奥付"/> <l:gentext key="Copyright" text="製作著作"/> <l:gentext key="copyright" text="製作著作"/> <l:gentext key="Dedication" text="謝辞"/> <l:gentext key="dedication" text="謝辞"/> <l:gentext key="Edition" text="編集"/> <l:gentext key="edition" text="編集"/> <l:gentext key="Equation" text="式"/> <l:gentext key="equation" text="式"/> <l:gentext key="Example" text="例"/> <l:gentext key="example" text="例"/> <l:gentext key="Figure" text="図"/> <l:gentext key="figure" text="図"/> <l:gentext key="Glossary" text="用語集"/> <l:gentext key="glossary" text="用語集"/> <l:gentext key="GlossSee" text="参照"/> <l:gentext key="glosssee" text="参照"/> <l:gentext key="GlossSeeAlso" text="参照"/> <l:gentext key="glossseealso" text="参照"/> <l:gentext key="IMPORTANT" text="重要項目"/> <l:gentext key="Important" text="重要項目"/> <l:gentext key="important" text="重要項目"/> ======================================================================= ==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="초록"/> <l:gentext key="abstract" text="초록"/> <l:gentext key="Answer" text="답변"/> <l:gentext key="answer" text="답변"/> <l:gentext key="Appendix" text="부록"/> <l:gentext key="appendix" text="부록"/> <l:gentext key="Article" text="문서"/> <l:gentext key="article" text="문서"/> <l:gentext key="Bibliography" text="서지사항"/> <l:gentext key="bibliography" text="서지사항"/> <l:gentext key="Book" text="책"/> <l:gentext key="book" text="책"/> <l:gentext key="Caution" text="경고"/> <l:gentext key="CAUTION" text="[경고]"/> <l:gentext key="Chapter" text="장"/> <l:gentext key="chapter" text="장"/> <l:gentext key="Colophon" text="판권"/> <l:gentext key="colophon" text="판권"/> <l:gentext key="Copyright" text="저작권"/> <l:gentext key="copyright" text="저작권"/> <l:gentext key="Dedication" text="바치는 글"/> <l:gentext key="dedication" text="바치는 글"/> <l:gentext key="Edition" text="엮음"/> <l:gentext key="edition" text="엮음"/> <l:gentext key="Equation" text="수식"/> <l:gentext key="equation" text="수식"/> <l:gentext key="Example" text="예"/> <l:gentext key="example" text="예"/> <l:gentext key="figure" text="그림"/> <l:gentext key="Figure" text="그림"/> <l:gentext key="Glossary" text="용어해설"/> <l:gentext key="glossary" text="용어해설"/> <l:gentext key="GlossSee" text="살펴볼 내용"/> <l:gentext key="glosssee" text="살펴볼 내용"/> <l:gentext key="GlossSeeAlso" text="다른 살펴볼 내용"/> <l:gentext key="glossseealso" text="다른 살펴볼 내용"/> <l:gentext key="Important" text="중요"/> <l:gentext key="important" text="중요"/> <l:gentext key="IMPORTANT" text="[중요]"/> <l:gentext key="Index" text="색인"/> <l:gentext key="index" text="색인"/> <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"> ⁡ &ca; &cs; &da; &de; ⪙ &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åve"/> <l:gentext key="edition" text="utgåve"/> <l:gentext key="Equation" text="Formel"/> <l:gentext key="equation" text="formel"/> <l:gentext key="Example" text="Døme"/> <l:gentext key="example" text="døme"/> <l:gentext key="Figure" text="Figur"/> <l:gentext key="figure" text="figur"/> <l:gentext key="GlossSee" text="Sjå"/> <l:gentext key="glosssee" text="sjå"/> <l:gentext key="GlossSeeAlso" text="Sjå òg"/> <l:gentext key="glossseealso" text="sjå ò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å"/> <l:gentext key="glossseealso" text="Se Også"/> <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ł"/> <l:gentext key="article" text="Artykuł"/> <l:gentext key="Bibliography" text="Bibliografia"/> <l:gentext key="bibliography" text="Bibliografia"/> <l:gentext key="Book" text="Książka"/> <l:gentext key="book" text="Książ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ł"/> <l:gentext key="chapter" text="rozdział;"/> <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ównanie"/> <l:gentext key="equation" text="Równanie"/> <l:gentext key="Example" text="Przykład"/> <l:gentext key="example" text="Przykł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ż"/> <l:gentext key="glossseealso" text="Patrz też"/> <l:gentext key="Important" text="WAŻNE"/> <l:gentext key="important" text="WAŻ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êndice"/> <l:gentext key="appendix" text="apê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ítulo"/> <l:gentext key="chapter" text="capí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ória"/> <l:gentext key="dedication" text="Dedicatória"/> <l:gentext key="Edition" text="Edição"/> <l:gentext key="edition" text="Edição"/> <l:gentext key="Equation" text="Equação"/> <l:gentext key="equation" text="Equaçã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ém"/> <l:gentext key="glossseealso" text="Ver També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êndice"/> <l:gentext key="appendix" text="apê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ítulo"/> <l:gentext key="chapter" text="capítulo"/> <l:gentext key="Colophon" text="Considerações finais"/> <l:gentext key="colophon" text="Considerações finais"/> <l:gentext key="Copyright" text="Copyright"/> <l:gentext key="copyright" text="Copyright"/> <l:gentext key="Dedication" text="Dedicatória"/> <l:gentext key="dedication" text="Dedicatória"/> <l:gentext key="Edition" text="Edição"/> <l:gentext key="edition" text="Edição"/> <l:gentext key="Equation" text="Equação"/> <l:gentext key="equation" text="Equaçã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ário"/> <l:gentext key="glossary" text="Glossário"/> <l:gentext key="GlossSee" text="Ver"/> <l:gentext key="glosssee" text="Ver"/> <l:gentext key="GlossSeeAlso" text="Ver Também"/> <l:gentext key="glossseealso" text="Ver Também"/> <l:gentext key="IMPORTANT" text="IMPORTANTE"/> <l:gentext key="Important" text="Importante"/> <l:gentext key="important" text="Importante"/> <l:gentext key="Index" text="Índice Remissivo"/> <l:gentext key="index" text="Í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ÞIE"/> <l:gentext key="caution" text="Atenþie"/> <l:gentext key="Caution" text="Atenþ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þie"/> <l:gentext key="dedication" text="Dedicaþie"/> <l:gentext key="Edition" text="Ediþie"/> <l:gentext key="edition" text="Ediþie"/> <l:gentext key="Equation" text="ecuaþia"/> <l:gentext key="equation" text="ecuaþ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 şi"/> <l:gentext key="glossseealso" text="Vezi ş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="Аннотация"/> <l:gentext key="abstract" text="Аннотация"/> <l:gentext key="Answer" text="A:"/> <l:gentext key="answer" text="A:"/> <l:gentext key="Appendix" text="Приложение"/> <l:gentext key="appendix" text="приложение"/> <l:gentext key="Appendix.abr" text="Прил."/> <l:gentext key="appendix.abr" text="Прил."/> <l:gentext key="Article" text="Статья"/> <l:gentext key="article" text="Статья"/> <l:gentext key="Audience" text="Аудитория"/> <l:gentext key="audience" text="Аудитория"/> <l:gentext key="Bibliography" text="Литература"/> <l:gentext key="bibliography" text="Литература"/> <l:gentext key="Book" text="Книга"/> <l:gentext key="book" text="Книга"/> <l:gentext key="Caution" text="Предостережение"/> <l:gentext key="caution" text="Предостережение"/> <l:gentext key="CAUTION" text="ПРЕДОСТЕРЕЖЕНИЕ"/> <l:gentext key="Chapter" text="Глава"/> <l:gentext key="chapter" text="глава"/> <l:gentext key="Chapter.abr" text="Гл."/> <l:gentext key="chapter.abr" text="Гл."/> <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="Посвящение"/> <l:gentext key="dedication" text="Посвящение"/> <l:gentext key="Edition" text="Редакция"/> <l:gentext key="edition" text="Редакция"/> <l:gentext key="Equation" text="Формула"/> <l:gentext key="equation" text="Формула"/> <l:gentext key="Equation.abr" text="Ф."/> <l:gentext key="equation.abr" text="Ф."/> <l:gentext key="Example" text="Пример"/> <l:gentext key="example" text="Пример"/> <l:gentext key="Example.abr" text="Прим."/> <l:gentext key="example.abr" text="Прим."/> <l:gentext key="Figure" text="Рисунок"/> <l:gentext key="figure" text="Рисунок"/> <l:gentext key="Figure.abr" text="Рис."/> <l:gentext key="figure.abr" text="Рис."/> ======================================================================= ==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="Článok"/> <l:gentext key="article" text="Člá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ÝSTRAHA"/> <l:gentext key="caution" text="Výstraha"/> <l:gentext key="Caution" text="Výstraha"/> <l:gentext key="Chapter" text="Kapitola"/> <l:gentext key="chapter" text="kapitola"/> <l:gentext key="Colophon" text="Tiráž"/> <l:gentext key="colophon" text="Tiráž"/> <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íklad"/> <l:gentext key="example" text="Príklad"/> <l:gentext key="Figure" text="Obrázok"/> <l:gentext key="figure" text="Obrázok"/> <l:gentext key="Glossary" text="Slovník"/> <l:gentext key="glossary" text="Slovník"/> <l:gentext key="GlossSee" text="Pozri"/> <l:gentext key="glosssee" text="Pozri"/> <l:gentext key="GlossSeeAlso" text="Pozri tiež"/> <l:gentext key="glossseealso" text="Pozri tiež"/> <l:gentext key="IMPORTANT" text="DÔLEŽITÉ"/> <l:gentext key="Important" text="Dôležité"/> <l:gentext key="important" text="Dôležité"/> <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="Članek"/> <l:gentext key="article" text="Č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ščita"/> <l:gentext key="copyright" text="Pravna zašč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čba"/> <l:gentext key="equation" text="Enač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ček"/> <l:gentext key="glossary" text="Slovarč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="Članak"/> <l:gentext key="article" text="Č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štita"/> <l:gentext key="copyright" text="Pravna zaš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čina"/> <l:gentext key="equation" text="Jednač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čnik"/> <l:gentext key="glossary" text="Rečnik"/> <l:gentext key="GlossSee" text="Vidi"/> <l:gentext key="glosssee" text="Vidi"/> <l:gentext key="GlossSeeAlso" text="Vidi takođe"/> <l:gentext key="glossseealso" text="Vidi takođe"/> <l:gentext key="IMPORTANT" text="VAŽNO"/> <l:gentext key="Important" text="Važno"/> <l:gentext key="important" text="Važ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åva"/> <l:gentext key="edition" text="Utgå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 Även"/> <l:gentext key="glossseealso" text="Se Ä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 > 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 > 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="บทคัดย่อ"/> <l:gentext key="abstract" text="บทคัดย่อ"/> <l:gentext key="Answer" text="ตอบ:"/> <l:gentext key="answer" text="ตอบ:"/> <l:gentext key="Appendix" text="ภาคผนวก"/> <l:gentext key="appendix" text="ภาคผนวก"/> <l:gentext key="Article" text="บทความ"/> <l:gentext key="article" text="บทความ"/> <l:gentext key="Bibliography" text="บรรณานุกรม"/> <l:gentext key="bibliography" text="บรรณานุกรม"/> <l:gentext key="Book" text="หนังสือ"/> <l:gentext key="book" text="หนังสือ"/> <l:gentext key="CAUTION" text="คำเตือน"/> <l:gentext key="Caution" text="คำเตือน"/> <l:gentext key="caution" text="คำเตือน"/> <l:gentext key="Chapter" text="บทที่"/> <l:gentext key="chapter" text="บทที่"/> <l:gentext key="Colophon" text="เบื้องหลัง"/> <l:gentext key="colophon" text="เบื้องหลัง"/> <l:gentext key="Copyright" text="สงวนสิขสิทธิ์"/> <l:gentext key="copyright" text="สงวนสิขสิทธิ์"/> <l:gentext key="Dedication" text="คำอุทิศ"/> <l:gentext key="dedication" text="คำอุทิศ"/> <l:gentext key="Edition" text="ฉบับ"/> <l:gentext key="edition" text="ฉบับ"/> <l:gentext key="Equation" text="สมการ"/> <l:gentext key="equation" text="สมการ"/> <l:gentext key="Example" text="ตัวอย่าง"/> <l:gentext key="example" text="ตัวอย่าง"/> <l:gentext key="Figure" text="รูป"/> <l:gentext key="figure" text="รูป"/> <l:gentext key="Glossary" text="อภิทานศัพท์"/> <l:gentext key="glossary" text="อภิทานศัพท์"/> <l:gentext key="GlossSee" text="ดู"/> <l:gentext key="glosssee" text="ดู"/> <l:gentext key="GlossSeeAlso" text="ดูเพิ่มเติม"/> <l:gentext key="glossseealso" text="ดูเพิ่มเติม"/> <l:gentext key="IMPORTANT" text="ข้อควรจำ"/> <l:gentext key="important" text="ข้อควรจำ"/> <l:gentext key="Important" text="ข้อควรจำ"/> <l:gentext key="Index" text="ดรรชนี"/> <l:gentext key="index" text="ดรรชนี"/> <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="Özet"/> <l:gentext key="abstract" text="Ö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ça"/> <l:gentext key="bibliography" text="Kaynakça"/> <l:gentext key="Book" text="Kitap"/> <l:gentext key="book" text="Kitap"/> <l:gentext key="CAUTION" text="DÝKKAT"/> <l:gentext key="Caution" text="Dikkat"/> <l:gentext key="caution" text="Dikkat"/> <l:gentext key="Chapter" text="Bölüm"/> <l:gentext key="chapter" text="Bölüm"/> <l:gentext key="Colophon" text="Colophon"/> <l:gentext key="colophon" text="Colophon"/> <l:gentext key="Copyright" text="Telif hakký"/> <l:gentext key="copyright" text="Telif hakký"/> <l:gentext key="Dedication" text="Ýthaf"/> <l:gentext key="dedication" text="Ýthaf"/> <l:gentext key="Edition" text="Baský"/> <l:gentext key="edition" text="Baský"/> <l:gentext key="Equation" text="Denklem"/> <l:gentext key="equation" text="Denklem"/> <l:gentext key="Example" text="Örnek"/> <l:gentext key="example" text="Örnek"/> <l:gentext key="Figure" text="Þekil"/> <l:gentext key="figure" text="þekil"/> <l:gentext key="Glossary" text="Sözlük"/> <l:gentext key="glossary" text="Sözlü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="ÖNEMLÝ"/> <l:gentext key="Important" text="Önemli"/> <l:gentext key="important" text="Ö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="Анотація"/> <l:gentext key="abstract" text="Анотація"/> <l:gentext key="Answer" text="В:"/> <l:gentext key="answer" text="в:"/> <l:gentext key="Appendix" text="Додаток"/> <l:gentext key="appendix" text="додаток"/> <l:gentext key="Appendix.abr" text="Дод."/> <l:gentext key="appendix.abr" text="дод."/> <l:gentext key="Article" text="Стаття"/> <l:gentext key="article" text="стаття"/> <l:gentext key="Audience" text="Аудиторія"/> <l:gentext key="audience" text="Аудиторія"/> <l:gentext key="Bibliography" text="Литература"/> <l:gentext key="bibliography" text="литература"/> <l:gentext key="Book" text="Книга"/> <l:gentext key="book" text="книга"/> <l:gentext key="Caution" text="Застереження"/> <l:gentext key="Caution" text="застереження"/> <l:gentext key="CAUTION" text="ЗАСТЕРЕЖЕННЯ"/> <l:gentext key="Chapter" text="Розділ"/> <l:gentext key="chapter" text="розділ"/> <l:gentext key="Chapter.abr" text="Розд."/> <l:gentext key="chapter.abr" text="розд."/> <l:gentext key="Colophon" text="Colophon"/> <l:gentext key="colophon" text="Colophon"/> <l:gentext key="Copyright" text="Авторське право"/> <l:gentext key="copyright" text="авторське право"/> <l:gentext key="Dedication" text="Присвячення"/> <l:gentext key="dedication" text="присвячення"/> <l:gentext key="Edition" text="Видання"/> <l:gentext key="edition" text="видання"/> <l:gentext key="Equation" text="Формула"/> <l:gentext key="equation" text="Формула"/> <l:gentext key="Equation.abr" text="Ф."/> <l:gentext key="equation.abr" text="Ф."/> <l:gentext key="Example" text="Приклад"/> <l:gentext key="example" text="приклад"/> <l:gentext key="Example.abr" text="Прикл."/> <l:gentext key="example.abr" text="прикл."/> <l:gentext key="Figure" text="Рисунок"/> <l:gentext key="figure" text="Рисунок"/> <l:gentext key="Figure.abr" text="Рис."/> <l:gentext key="figure.abr" text="Рис."/> ======================================================================= ==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="摘要"/> <l:gentext key="abstract" text="摘要"/> <l:gentext key="Answer" text="答:"/> <l:gentext key="answer" text="答:"/> <l:gentext key="Appendix" text="附录"/> <l:gentext key="appendix" text="附录"/> <l:gentext key="Article" text="文章"/> <l:gentext key="article" text="文章"/> <l:gentext key="Bibliography" text="参考书目"/> <l:gentext key="bibliography" text="参考书目"/> <l:gentext key="Book" text="书目"/> <l:gentext key="book" text="书目"/> <l:gentext key="CAUTION" text="注意"/> <l:gentext key="Caution" text="注意"/> <l:gentext key="caution" text="注意"/> <l:gentext key="Chapter" text="章"/> <l:gentext key="chapter" text="章"/> <l:gentext key="Colophon" text="Colophon"/> <l:gentext key="colophon" text="Colophon"/> <l:gentext key="Copyright" text="版权"/> <l:gentext key="copyright" text="版权"/> <l:gentext key="Dedication" text="奉献"/> <l:gentext key="dedication" text="奉献"/> <l:gentext key="Edition" text="版"/> <l:gentext key="edition" text="版"/> <l:gentext key="Equation" text="方程"/> <l:gentext key="equation" text="方程"/> <l:gentext key="Example" text="例子"/> <l:gentext key="example" text="例子"/> <l:gentext key="Figure" text="图形"/> <l:gentext key="figure" text="图形"/> <l:gentext key="Glossary" text="术语表"/> <l:gentext key="glossary" text="术语表"/> <l:gentext key="GlossSee" text="见"/> <l:gentext key="glosssee" text="见"/> <l:gentext key="GlossSeeAlso" text="另见"/> <l:gentext key="glossseealso" text="另见"/> <l:gentext key="IMPORTANT" text="重要"/> <l:gentext key="Important" text="重要"/> <l:gentext key="important" text="重要"/> <l:gentext key="Index" text="索引"/> <l:gentext key="index" text="索引"/> <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="摘要"/> <l:gentext key="Abstract" text="摘要"/> <l:gentext key="Answer" text="答:"/> <l:gentext key="answer" text="答:"/> <l:gentext key="Appendix" text="附錄"/> <l:gentext key="appendix" text="附錄"/> <l:gentext key="article" text="文章"/> <l:gentext key="Article" text="文章"/> <l:gentext key="Bibliography" text="參考文獻"/> <l:gentext key="bibliography" text="參考文獻"/> <l:gentext key="book" text="書目"/> <l:gentext key="Book" text="書目"/> <l:gentext key="caution" text="注意"/> <l:gentext key="Caution" text="注意"/> <l:gentext key="Chapter" text="章"/> <l:gentext key="chapter" text="章"/> <l:gentext key="colophon" text="版本記錄"/> <l:gentext key="Colophon" text="版本記錄"/> <l:gentext key="copyright" text="版權"/> <l:gentext key="Copyright" text="版權"/> <l:gentext key="dedication" text="奉獻"/> <l:gentext key="Dedication" text="奉獻"/> <l:gentext key="Edition" text="版"/> <l:gentext key="edition" text="版"/> <l:gentext key="Equation" text="方程式"/> <l:gentext key="equation" text="方程式"/> <l:gentext key="Example" text="範例"/> <l:gentext key="example" text="範例"/> <l:gentext key="Figure" text="圖形"/> <l:gentext key="figure" text="圖形"/> <l:gentext key="Glossary" text="小辭彙"/> <l:gentext key="glossary" text="小辭彙"/> <l:gentext key="GlossSee" text="參見"/> <l:gentext key="glosssee" text="參見"/> <l:gentext key="GlossSeeAlso" text="另參見"/> <l:gentext key="glossseealso" text="另參見"/> <l:gentext key="Important" text="重要"/> <l:gentext key="important" text="重要"/> <l:gentext key="index" text="索引"/> <l:gentext key="Index" text="索引"/> <l:gentext key="isbn" text="ISBN"/> <l:gentext key="legalnotice" text="法律聲明"/> <l:gentext key="LegalNotice" text="法律聲明"/> ======================================================================= ==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(§ion;)'> <!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'">•</xsl:when> <xsl:when test="$dingbat='copyright'">©</xsl:when> <xsl:when test="$dingbat='trademark'">™</xsl:when> <xsl:when test="$dingbat='trade'">™</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,'(')) 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> ======================================================================= ==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><xsl:import></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 <= $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 " "> <!ENTITY nbsp " "> ]> <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 > 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)]), " ", concat(secondary/@sortas, secondary[not(@sortas)]))"/> <xsl:key name="tertiary" match="indexterm" use="concat(concat(primary/@sortas, primary[not(@sortas)]), " ", concat(secondary/@sortas, secondary[not(@sortas)]), " ", 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)]), " ", 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)]), " ", concat(secondary/@sortas, secondary[not(@sortas)]), " ", 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)]), " ", concat(secondary/@sortas, secondary[not(@sortas)]), " ", concat(tertiary/@sortas, tertiary[not(@sortas)]), " ", 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)]), " ", concat(secondary/@sortas, secondary[not(@sortas)]), " ", concat(tertiary/@sortas, tertiary[not(@sortas)]), " ", seealso)"/> <xsl:key name="see" match="indexterm[see]" use="concat(concat(primary/@sortas, primary[not(@sortas)]), " ", concat(secondary/@sortas, secondary[not(@sortas)]), " ", concat(tertiary/@sortas, tertiary[not(@sortas)]), " ", 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'">•</xsl:when> <xsl:when test="$dingbat='copyright'">©</xsl:when> <xsl:when test="$dingbat='trademark'">™</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> </xsl:text> <xsl:comment>This file was created automatically by html2xhtml</xsl:comment> <xsl:text> </xsl:text> <xsl:comment>from the HTML stylesheets. Do not edit this file.</xsl:comment> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:text> </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(*)>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 <= $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 > 0"> <xsl:call-template name="border"> <xsl:with-param name="side" select="'right'"/> </xsl:call-template> </xsl:if> <xsl:if test="$rowsep > 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>