From owner-svn-doc-head@freebsd.org Sat Aug 11 15:52:27 2018 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4BB7A10713A2; Sat, 11 Aug 2018 15:52:27 +0000 (UTC) (envelope-from sevan@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 018318493D; Sat, 11 Aug 2018 15:52:27 +0000 (UTC) (envelope-from sevan@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D71251959F; Sat, 11 Aug 2018 15:52:26 +0000 (UTC) (envelope-from sevan@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7BFqQ5w004170; Sat, 11 Aug 2018 15:52:26 GMT (envelope-from sevan@FreeBSD.org) Received: (from sevan@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7BFqQRl004169; Sat, 11 Aug 2018 15:52:26 GMT (envelope-from sevan@FreeBSD.org) Message-Id: <201808111552.w7BFqQRl004169@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sevan set sender to sevan@FreeBSD.org using -f From: Sevan Janiyan Date: Sat, 11 Aug 2018 15:52:26 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r52103 - head/en_US.ISO8859-1/books/fdp-primer/xml-primer X-SVN-Group: doc-head X-SVN-Commit-Author: sevan X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/fdp-primer/xml-primer X-SVN-Commit-Revision: 52103 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 15:52:27 -0000 Author: sevan Date: Sat Aug 11 15:52:26 2018 New Revision: 52103 URL: https://svnweb.freebsd.org/changeset/doc/52103 Log: Example snippet uses invalid syntax which creates errors when used in a doc. Fix spelling mistake while here. PR: 204893 Submitted by: Andreas Perstinger Approved by: bcr (mentor) rene Differential Revision: https://reviews.freebsd.org/D16680 Modified: head/en_US.ISO8859-1/books/fdp-primer/xml-primer/chapter.xml Modified: head/en_US.ISO8859-1/books/fdp-primer/xml-primer/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/fdp-primer/xml-primer/chapter.xml Sat Aug 11 08:33:42 2018 (r52102) +++ head/en_US.ISO8859-1/books/fdp-primer/xml-primer/chapter.xml Sat Aug 11 15:52:26 2018 (r52103) @@ -861,7 +861,7 @@ example.xml:5: element head: validity error : Element context. Parameter entity definitions are similar to those for - general entities. However, parameter entries are included + general entities. However, parameter entities are included with %entity-name;. The definition also includes the % between @@ -877,13 +877,16 @@ example.xml:5: element head: validity error : Element <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ -<!ENTITY % param.some "some"> -<!ENTITY % param.text "text"> -<!ENTITY % param.new "%param.some more %param.text"> - -<!-- %param.new now contains "some more text" --> +<!ENTITY % entity "<!ENTITY version '1.0'>"> +<!-- use the parameter entity --> +%entity; ]> + + At first sight, parameter entities do not look very + useful, but they make it possible to include other files into + an XML document.