Initial import of pxp-1.1.6:
PXP is a validating XML parser for O'Caml. It strictly complies to the XML-1.0 standard. The parser is simple to call, usually only one statement (function call) is sufficient to parse an XML document and to represent it as object tree. Once the document is parsed, it can be accessed using a class interface. The interface allows arbitrary access including transformations. One of the features of the document representation is its polymorphic nature; it is simple to add custom methods to the document classes. Furthermore, the parser can be configured such that different XML elements are represented by objects created from different classes. This is a very powerful feature, because it simplifies the structure of programs processing XML documents. Note that the class interface does not comply to the DOM standard. It was not a development goal to realize a standard API (industrial developers can this much better than I); however, the API is powerful enough to be considered as equivalent with DOM. More important, the interface is compatible with the XML information model required by many XML-related standards.
This commit is contained in:
parent
eaf4ccf609
commit
86a1ae9133
5 changed files with 132 additions and 0 deletions
22
textproc/pxp/DESCR
Normal file
22
textproc/pxp/DESCR
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
PXP is a validating XML parser for O'Caml. It strictly complies to
|
||||||
|
the XML-1.0 standard.
|
||||||
|
|
||||||
|
The parser is simple to call, usually only one statement (function
|
||||||
|
call) is sufficient to parse an XML document and to represent it
|
||||||
|
as object tree.
|
||||||
|
|
||||||
|
Once the document is parsed, it can be accessed using a class
|
||||||
|
interface. The interface allows arbitrary access including
|
||||||
|
transformations. One of the features of the document representation
|
||||||
|
is its polymorphic nature; it is simple to add custom methods to
|
||||||
|
the document classes. Furthermore, the parser can be configured
|
||||||
|
such that different XML elements are represented by objects created
|
||||||
|
from different classes. This is a very powerful feature, because
|
||||||
|
it simplifies the structure of programs processing XML documents.
|
||||||
|
|
||||||
|
Note that the class interface does not comply to the DOM standard.
|
||||||
|
It was not a development goal to realize a standard API (industrial
|
||||||
|
developers can this much better than I); however, the API is powerful
|
||||||
|
enough to be considered as equivalent with DOM. More important,
|
||||||
|
the interface is compatible with the XML information model required
|
||||||
|
by many XML-related standards.
|
21
textproc/pxp/Makefile
Normal file
21
textproc/pxp/Makefile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1.1.1 2006/08/11 15:44:33 wiz Exp $
|
||||||
|
#
|
||||||
|
|
||||||
|
DISTNAME= pxp-1.1.6
|
||||||
|
CATEGORIES= textproc
|
||||||
|
MASTER_SITES= http://www.ocaml-programming.de/packages/
|
||||||
|
|
||||||
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||||
|
HOMEPAGE= http://www.ocaml-programming.de/packages/
|
||||||
|
COMMENT= Polymorphic XML parser, a validating XML-1.0 parser (OCaml)
|
||||||
|
|
||||||
|
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
|
||||||
|
DEPENDS+= ocamlnet-[0-9]*:../../zzz/ocamlnet
|
||||||
|
|
||||||
|
USE_TOOLS+= gmake
|
||||||
|
BUILD_TARGET= all opt
|
||||||
|
HAS_CONFIGURE= yes
|
||||||
|
PLIST_SRC= PLIST.opt PLIST
|
||||||
|
|
||||||
|
.include "../../lang/ocaml/buildlink3.mk"
|
||||||
|
.include "../../mk/bsd.pkg.mk"
|
73
textproc/pxp/PLIST
Normal file
73
textproc/pxp/PLIST
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
@comment $NetBSD: PLIST,v 1.1.1.1 2006/08/11 15:44:33 wiz Exp $
|
||||||
|
@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/pxp
|
||||||
|
@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/pxp-lex-utf8
|
||||||
|
@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/pxp-lex-iso88591
|
||||||
|
@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/pxp-engine
|
||||||
|
lib/ocaml/site-lib/pxp-engine/META
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_aux.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_codewriter.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_codewriter.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_dfa.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_dfa.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_document.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_document.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_dtd.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_dtd.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_engine.cma
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_entity.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_lexer_types.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_lexer_types.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_lexers.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_lexers.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_lexing.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_lexing.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_lib.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_lib.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_marshal.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_marshal.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_reader.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_reader.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_top.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_top.cmo
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_top.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_types.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_types.mli
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_yacc.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_yacc.mli
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/META
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_aux_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_content_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_content_string_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_declaration_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_document_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_document_type_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_dtd_string_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_iso88591.cma
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_link_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_link_iso88591.cmo
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_misc_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_name_string_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_within_tag_iso88591.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/META
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_aux_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_content_string_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_content_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_declaration_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_document_type_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_document_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_dtd_string_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_link_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_link_utf8.cmo
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_misc_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_name_string_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_utf8.cma
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_within_tag_utf8.cmi
|
||||||
|
lib/ocaml/site-lib/pxp/META
|
||||||
|
@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/pxp-engine
|
||||||
|
@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/pxp-lex-iso88591
|
||||||
|
@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/pxp-lex-utf8
|
||||||
|
@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/pxp
|
||||||
|
@dirrm lib/ocaml/site-lib/pxp-lex-utf8
|
||||||
|
@dirrm lib/ocaml/site-lib/pxp-lex-iso88591
|
||||||
|
@dirrm lib/ocaml/site-lib/pxp-engine
|
||||||
|
@dirrm lib/ocaml/site-lib/pxp
|
11
textproc/pxp/PLIST.opt
Normal file
11
textproc/pxp/PLIST.opt
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
@comment $NetBSD: PLIST.opt,v 1.1.1.1 2006/08/11 15:44:33 wiz Exp $
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_engine.a
|
||||||
|
lib/ocaml/site-lib/pxp-engine/pxp_engine.cmxa
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_iso88591.a
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_iso88591.cmxa
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_link_iso88591.cmx
|
||||||
|
lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_link_iso88591.o
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_link_utf8.cmx
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_link_utf8.o
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_utf8.a
|
||||||
|
lib/ocaml/site-lib/pxp-lex-utf8/pxp_lex_utf8.cmxa
|
5
textproc/pxp/distinfo
Normal file
5
textproc/pxp/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
$NetBSD: distinfo,v 1.1.1.1 2006/08/11 15:44:33 wiz Exp $
|
||||||
|
|
||||||
|
SHA1 (pxp-1.1.6.tar.gz) = 49ca3cc02f87eb6c6cf26a6cc0ed386f86161c72
|
||||||
|
RMD160 (pxp-1.1.6.tar.gz) = d4569f9e40b151f494a5e8744ba0713ad740b8ad
|
||||||
|
Size (pxp-1.1.6.tar.gz) = 615236 bytes
|
Loading…
Reference in a new issue