Commit f7639c15 authored by Cyril Deguet's avatar Cyril Deguet

* all: changed dtd version to 1.99 before the final dtd freeze

parent 3a1bce32
......@@ -2,7 +2,7 @@
* skin_parser.cpp
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: skin_parser.cpp,v 1.3 2004/03/01 18:33:31 asmax Exp $
* $Id: skin_parser.cpp,v 1.4 2004/03/01 19:36:43 asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
......@@ -25,7 +25,7 @@
#include <math.h>
// Current DTD version
#define SKINS_DTD_VERSION "2.0"
#define SKINS_DTD_VERSION "1.99"
SkinParser::SkinParser( intf_thread_t *pIntf, const string &rFileName ):
......@@ -177,6 +177,8 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
{
msg_Err( getIntf(), "Bad theme version : %s (you need version %s)",
attr["version"], SKINS_DTD_VERSION );
m_errors = true;
return;
}
const BuilderData::Theme theme( atoi( attr["magnet"] ),
atoi( attr["alpha"] ), atoi( attr["movealpha"] ),
......
......@@ -2,7 +2,7 @@
* xmlparser.hpp
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: xmlparser.hpp,v 1.5 2004/02/27 15:07:04 gbazin Exp $
* $Id: xmlparser.hpp,v 1.6 2004/03/01 19:36:43 asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
......@@ -50,6 +50,9 @@ class XMLParser: public SkinObject
/// Type for attribute lists
typedef map<const char*, const char*, ltstr> AttrList_t;
/// Flag for validation errors
bool m_errors;
/// Callbacks
virtual void handleBeginElement( const string &rName, AttrList_t &attr ) {}
virtual void handleEndElement( const string &rName ) {}
......@@ -57,8 +60,6 @@ class XMLParser: public SkinObject
private:
/// Reader context
xmlTextReaderPtr m_pReader;
/// Flag for validation errors
bool m_errors;
/// Callback for validation errors
static void handleError( void *pArg, const char *pMsg,
......
<!DOCTYPE Theme SYSTEM "skin.dtd">
<Theme version="2.0" magnet="20" alpha="255" movealpha="192" fadetime="500">
<Theme version="1.99" magnet="20" alpha="255" movealpha="192" fadetime="500">
<ThemeInfo name="VLC OSX Interface" author="BigBen"
email="bigben@videolan.org" webpage="http://www.videolan.org"/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment