/*
* xlink.c : implementation of the hyperlinks detection module
* This version supports both XML XLinks and HTML simple links
*
* See Copyright for the status of this software.
*
* daniel@veillard.com
*/
#define IN_LIBXML
#include "libxml.h"
#ifdef LIBXML_XPTR_ENABLED
#include <string.h> /* for memset() only */
#ifdef HAVE_CTYPE_H
#include <ctype.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_SYS_STAT_H
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_ZLIB_H
#include <zlib.h>
#endif
#include <libxml/xmlmemory.h>
/****************************************************************
* *
* Default setting and related functions *
* *
****************************************************************/
/**
* xlinkGetDefaultHandler:
*
* Get the default xlink handler.
*
* Returns the current xlinkHandlerPtr value.
*/
xlinkGetDefaultHandler(void) {
return(xlinkDefaultHandler);
}
/**
* xlinkSetDefaultHandler:
* @handler: the new value for the xlink handler block
*
* Set the default xlink handlers
*/
void
}
/**
* xlinkGetDefaultDetect:
*
* Get the default xlink detection routine
*
* Returns the current function or NULL;
*/
xlinkGetDefaultDetect (void) {
return(xlinkDefaultDetect);
}
/**
* xlinkSetDefaultDetect:
* @func: pointer to the new detection routine.
*
* Set the default xlink detection routine
*/
void
}
/****************************************************************
* *
* The detection routines *
* *
****************************************************************/
/**
* xlinkIsLink:
* @doc: the document containing the node
* @node: the node pointer itself
*
* Check whether the given node carries the attributes needed
* to be a link element (or is one of the linking elements issued
* from the (X)HTML DtDs).
* This routine don't try to do full checking of the link validity
* but tries to detect and return the appropriate link type.
*
* Returns the xlinkType of the node (XLINK_TYPE_NONE if there is no
* link detected.
*/
/*
* This is an HTML document.
*/
/*
* !!!! We really need an IS_XHTML_ELEMENT function from HTMLtree.h @@@
*/
/*
* This is an XHTML element within an XML document
* Check whether it's one of the element able to carry links
* and in that case if it holds the attributes.
*/
}
/*
* We don't prevent a-priori having XML Linking constructs on
* XHTML elements
*/
/* Humm, fallback method */
} else {
}
}
}
}
return(ret);
}
#endif /* LIBXML_XPTR_ENABLED */
#define bottom_xlink
#include "elfgcchack.h"