From: Luca Toscano Date: Fri, 18 Aug 2017 08:21:43 +0000 (+0000) Subject: doc xsl/dtd: introduce idtype attribute for directivesynopsis X-Git-Tag: 2.5.0-alpha~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50c86e4f2c95c1939cb5534039e4d4e7063c0434;p=thirdparty%2Fapache%2Fhttpd.git doc xsl/dtd: introduce idtype attribute for directivesynopsis In r1805193 synopsis.xsl was changed to allow two directives of different type (like and SSLPolicy) to share the same name but have different ids (and please validate-xml/xhtml). The downside of this action was that all the quicklinks to existing directive sections (like , , etc..) were changed, possibly breaking external clients already referencing them. This change introduces a new attribute in the directivesynopsis DTD, namely 'idtype', that will be appended to 'name' in the id generation by synopsis.xsl. This will rollback link names to their previous values and will allow documentators to fine tune directivesynopsis sections as they need (for example we have recently introduced mod_md's ManagedDomain/, and modssl's SSLPolicy/). This approach seems more precise and less invasive to me. Of course the name of the attribute can be changed later on to whatever term would fit best, the main concern for me at the moment is to restore the trunk documentation to its previous state. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1805372 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/style/modulesynopsis.dtd b/docs/manual/style/modulesynopsis.dtd index 1ca9b06542b..aa3d6ee9d5e 100644 --- a/docs/manual/style/modulesynopsis.dtd +++ b/docs/manual/style/modulesynopsis.dtd @@ -45,8 +45,15 @@ usage?, seealso*)> - + + diff --git a/docs/manual/style/xsl/common.xsl b/docs/manual/style/xsl/common.xsl index e0e21bf77f1..e9d8ffef83a 100644 --- a/docs/manual/style/xsl/common.xsl +++ b/docs/manual/style/xsl/common.xsl @@ -888,11 +888,11 @@ if (typeof(prettyPrint) !== 'undefined') { + $uppercase, $lowercase),@idtype))" /> + $uppercase, $lowercase),@idtype))" /> diff --git a/docs/manual/style/xsl/synopsis.xsl b/docs/manual/style/xsl/synopsis.xsl index 00fb6fb7926..37aa3c27d1d 100644 --- a/docs/manual/style/xsl/synopsis.xsl +++ b/docs/manual/style/xsl/synopsis.xsl @@ -195,7 +195,7 @@ + $lowercase),@idtype)" /> @@ -357,8 +357,8 @@ a directive to be referenced multiple times with different types --> - + select="concat(translate(name, $uppercase, $lowercase),@idtype)" /> +