XML xhtml1 Entities

From CBLFS
Jump to navigationJump to search

Introduction to XML xhtml1 Entities

XML Entity Declarations for Characters

Project Homepage: http://www.w3.org/2003/entities/

Dependencies

Required

Caution.png

Note

This package isn't distributed in an archive, we can download the files individually from w3 and save them if you wish:
mkdir xhtml1-entities
cd xhtml1-entities
wget -i- -Bhttp://www.w3.org/2003/entities/xhtml1/ << EOS
xhtml1-lat1.ent
xhtml1-special.ent
xhtml1-symbol.ent
EOS

Non-Multilib or Multilib

Package Installation

Install the Schema with the following commands:

install -dv -m755 /usr/share/xml/entities/xhtml1/ent &&
install -v -m644 *.ent /usr/share/xml/entities/xhtml1/ent

Local Catalog

Create a local catalog for this package:

xmlcatalog --noout --create /usr/share/xml/entities/xhtml1/catalog.xml &&
xmlcatalog --noout --add "system" \
           "http://www.w3.org/2003/entities/xhtml1/xhtml1-lat1.ent" \
           "./ent/xhtml1-lat1.ent" \
           /usr/share/xml/entities/xhtml1/catalog.xml &&
xmlcatalog --noout --add "system" \
           "http://www.w3.org/2003/entities/xhtml1/xhtml1-special.ent" \
           "./ent/xhtml1-special.ent" \
           /usr/share/xml/entities/xhtml1/catalog.xml &&
xmlcatalog --noout --add "system" \
           "http://www.w3.org/2003/entities/xhtml1/xhtml1-symbol.ent" \
           "./ent/xhtml1-symbol.ent" \
           /usr/share/xml/entities/xhtml1/catalog.xml

Global Catalog

Create the global catalog if it doesn't exist:

install -dv -m755 /etc/xml
[ ! -f /etc/xml/catalog ] &&
    xmlcatalog --noout --create /etc/xml/catalog

Add entries into the global catalog for this package:

xmlcatalog --noout --add "delegateSystem" \
           "http://www.w3.org/2003/entities/xhtml1" \
           "file:///usr/share/xml/entities/xhtml1/catalog.xml" \
           /etc/xml/catalog