// file      : xsde/cxx/serializer/validating/id.cxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2007 Code Synthesis Tools CC
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#include <xsde/cxx/pre.hxx>

#include <xsde/cxx/serializer/validating/id.hxx>

namespace xsde
{
  namespace cxx
  {
    namespace serializer
    {
      namespace validating
      {
        void id_simpl::
        _serialize_content ()
        {
          ncname_simpl::_serialize_content ();

          context& ctx = _context ();

          if (ctx.error_type () == context::error_schema &&
              ctx.schema_error () == schema_error::invalid_ncname_value)
            ctx.schema_error (schema_error::invalid_id_value);
        }
      }
    }
  }
}

#include <xsde/cxx/post.hxx>
