From: ddennedy Date: Fri, 26 Mar 2004 21:15:15 +0000 (+0000) Subject: added westley.dtd X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ac0225a1c4b16cab62e6044b18818f44933a29e9;p=mlt added westley.dtd git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@253 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/demo/entity.westley b/demo/entity.westley index a54f4e1c..0f6a6b94 100644 --- a/demo/entity.westley +++ b/demo/entity.westley @@ -1,5 +1,5 @@ - ]> diff --git a/demo/new.westley b/demo/new.westley index e5005b9f..c623b3ec 100644 --- a/demo/new.westley +++ b/demo/new.westley @@ -22,33 +22,29 @@ luma - - luma + + - - clip2.mpeg - + - - clip3.mpeg - + luma - - luma + + 1 diff --git a/docs/westley.txt b/docs/westley.txt index c36fa6e7..5625c5d4 100644 --- a/docs/westley.txt +++ b/docs/westley.txt @@ -4,7 +4,12 @@ WESTLEY Preamble: Westley is the MLT projects XML serialisation/deserialisation format - - as such, it closely mirrors the internal structure of the MLT API. + as such, it closely mirrors the internal structure of the MLT API. + + If you just want to go straight to the DTD, then see + mlt/src/modules/westley.dtd, which gets installed at + $(prefix)/share/mlt/modules/westley.dtd. Currently, the westley parser is + non-validating. Introduction: diff --git a/src/modules/westley/Makefile b/src/modules/westley/Makefile index b0a8d011..a5d5d184 100644 --- a/src/modules/westley/Makefile +++ b/src/modules/westley/Makefile @@ -28,6 +28,7 @@ clean: install: all install -m 755 $(TARGET) "$(prefix)/share/mlt/modules" + install -m 644 westley.dtd "$(prefix)/share/mlt/modules" ifneq ($(wildcard .depend),) include .depend diff --git a/src/modules/westley/producer_westley.c b/src/modules/westley/producer_westley.c index dfaa8ceb..f6a86419 100644 --- a/src/modules/westley/producer_westley.c +++ b/src/modules/westley/producer_westley.c @@ -979,7 +979,7 @@ static void on_characters( void *ctx, const xmlChar *ch, int len ) value[ len ] = 0; strncpy( value, (const char*) ch, len ); - + if ( context->stack_node_size > 0 ) xmlNodeAddContent( context->stack_node[ context->stack_node_size - 1 ], ( xmlChar* )value ); diff --git a/src/modules/westley/westley.dtd b/src/modules/westley/westley.dtd new file mode 100644 index 00000000..4b926d7c --- /dev/null +++ b/src/modules/westley/westley.dtd @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + +