Commit | Line | Data |
---|---|---|
c495c100 P |
1 | <?php |
2 | ||
3 | /***************************************************************************\ | |
4 | * SPIP, Systeme de publication pour l'internet * | |
5 | * * | |
6 | * Copyright (c) 2001-2007 * | |
7 | * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * | |
8 | * * | |
9 | * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * | |
10 | * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * | |
11 | \***************************************************************************/ | |
12 | ||
13 | if (!defined("_ECRIRE_INC_VERSION")) return; | |
14 | ||
15 | include_spip('inc/sax'); | |
16 | ||
17 | define('_REGEXP_DOCTYPE', | |
18 | '/^((<[?][^>]*>)*\s*(<!--.*?-->)*)*<!DOCTYPE\s+(\w+)\s+(\w+)\s*([^>]*)>\s*/'); | |
19 | ||
20 | define('_MESSAGE_DOCTYPE', '<!-- SPIP CORRIGE -->'); | |
21 | ||
22 | define('_SUB_REGEXP_SYMBOL', '[A-Za-z_][\w_:.-]*'); | |
23 | ||
24 | define('_REGEXP_ID', '/^' . _SUB_REGEXP_SYMBOL . '$/'); | |
25 | ||
26 | define('_REGEXP_ENTITY_USE', '/%(' . _SUB_REGEXP_SYMBOL . ');/'); | |
27 | define('_REGEXP_ENTITY_DEF', '/^%(' . _SUB_REGEXP_SYMBOL . ');/'); | |
28 | define('_REGEXP_ENTITY_DECL', '/^<!ENTITY\s+(%?)\s*(' . | |
29 | _SUB_REGEXP_SYMBOL . | |
30 | ';?)\s+(PUBLIC|SYSTEM|INCLUDE|IGNORE|CDATA)?\s*"([^"]*)"\s*(--.*?--)?("([^"]*)")?\s*>\s*(.*)$/s'); | |
31 | ||
32 | // Document Type Compilation | |
33 | ||
34 | class DTC { | |
35 | var $macros = array(); | |
36 | var $elements = array(); | |
37 | var $peres = array(); | |
38 | var $attributs = array(); | |
39 | var $entites = array(); | |
40 | var $regles = array(); | |
41 | } | |
42 | ?> |