version 1.89, 2007/06/22 14:17:09
|
version 1.90, 2008/01/09 16:24:02
|
Line 1
|
Line 1
|
/* |
/* |
* |
* |
* (c) COPYRIGHT INRIA and W3C, 1996-2005 |
* (c) COPYRIGHT INRIA and W3C, 1996-2008 |
* Please first read the full copyright statement in file COPYRIGHT. |
* Please first read the full copyright statement in file COPYRIGHT. |
* |
* |
*/ |
*/ |
Line 70 SSchema GetMathMLSSchema (Document doc)
|
Line 70 SSchema GetMathMLSSchema (Document doc)
|
GetSVGSSchema returns the SVG Thot schema for document doc. |
GetSVGSSchema returns the SVG Thot schema for document doc. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
SSchema GetSVGSSchema (Document doc) |
SSchema GetSVGSSchema (Document doc) |
|
|
{ |
{ |
SSchema SVGSSchema; |
SSchema SVGSSchema; |
|
|
Line 85 SSchema GetSVGSSchema (Document doc)
|
Line 84 SSchema GetSVGSSchema (Document doc)
|
GetXLinkSSchema returns the XLink Thot schema for document doc. |
GetXLinkSSchema returns the XLink Thot schema for document doc. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
SSchema GetXLinkSSchema (Document doc) |
SSchema GetXLinkSSchema (Document doc) |
|
|
{ |
{ |
SSchema XLinkSSchema; |
SSchema XLinkSSchema; |
|
|
Line 99 SSchema GetXLinkSSchema (Document doc)
|
Line 97 SSchema GetXLinkSSchema (Document doc)
|
/* -------------------------------------------------------------------- |
/* -------------------------------------------------------------------- |
GetTemplateSSchema returns the Template Thot schema for document doc. |
GetTemplateSSchema returns the Template Thot schema for document doc. |
--------------------------------------------------------------------*/ |
--------------------------------------------------------------------*/ |
|
|
SSchema GetTemplateSSchema (Document doc) |
SSchema GetTemplateSSchema (Document doc) |
{ |
{ |
SSchema TemplateSSchema; |
SSchema TemplateSSchema; |
Line 108 SSchema GetTemplateSSchema (Document doc
|
Line 105 SSchema GetTemplateSSchema (Document doc
|
if (TemplateSSchema == NULL) |
if (TemplateSSchema == NULL) |
TemplateSSchema = TtaNewNature (doc, TtaGetDocumentSSchema(doc), NULL, |
TemplateSSchema = TtaNewNature (doc, TtaGetDocumentSSchema(doc), NULL, |
"Template", "TemplateP"); |
"Template", "TemplateP"); |
|
|
return (TemplateSSchema); |
return (TemplateSSchema); |
} |
} |
|
|
Line 119 SSchema GetTemplateSSchema (Document doc
|
Line 115 SSchema GetTemplateSSchema (Document doc
|
(this is not XML, but its useful to have this function here). |
(this is not XML, but its useful to have this function here). |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
SSchema GetTextSSchema (Document doc) |
SSchema GetTextSSchema (Document doc) |
|
|
{ |
{ |
SSchema XLinkSSchema; |
SSchema XLinkSSchema; |
|
|
Line 135 SSchema GetTextSSchema (Document doc)
|
Line 130 SSchema GetTextSSchema (Document doc)
|
Returns the XML Thot schema of name schemaName for the document doc. |
Returns the XML Thot schema of name schemaName for the document doc. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
SSchema GetGenericXMLSSchema (char *schemaName, Document doc) |
SSchema GetGenericXMLSSchema (char *schemaName, Document doc) |
|
|
{ |
{ |
SSchema XMLSSchema; |
SSchema XMLSSchema; |
|
|
Line 280 void MapXMLElementType (int XMLtype, cha
|
Line 274 void MapXMLElementType (int XMLtype, cha
|
else |
else |
ptr = SVGElemMappingTable; |
ptr = SVGElemMappingTable; |
} |
} |
|
#ifdef TEMPLATES |
else if (XMLtype == Template_TYPE) |
else if (XMLtype == Template_TYPE) |
{ |
{ |
if (profile == L_Basic && DocumentTypes[doc] == docHTML) |
if (profile == L_Basic && DocumentTypes[doc] == docHTML) |
Line 291 void MapXMLElementType (int XMLtype, cha
|
Line 286 void MapXMLElementType (int XMLtype, cha
|
else |
else |
ptr = TemplateElemMappingTable; |
ptr = TemplateElemMappingTable; |
} |
} |
|
#endif /* TEMPLATES */ |
else |
else |
ptr = NULL; |
ptr = NULL; |
|
|
Line 363 char *GetXMLElementName (ElementType elT
|
Line 359 char *GetXMLElementName (ElementType elT
|
ptr = SVGElemMappingTable; |
ptr = SVGElemMappingTable; |
else if (strcmp ("HTML", name) == 0) |
else if (strcmp ("HTML", name) == 0) |
ptr = XHTMLElemMappingTable; |
ptr = XHTMLElemMappingTable; |
|
#ifdef TEMPLATES |
|
else if (strcmp ("Template", name) == 0) |
|
ptr = TemplateElemMappingTable; |
|
#endif /* TEMPLATES */ |
else |
else |
ptr = NULL; |
ptr = NULL; |
|
|
Line 414 ThotBool IsXMLElementInline (ElementType
|
Line 414 ThotBool IsXMLElementInline (ElementType
|
ptr = SVGElemMappingTable; |
ptr = SVGElemMappingTable; |
else if (strcmp ("HTML", name) == 0) |
else if (strcmp ("HTML", name) == 0) |
ptr = XHTMLElemMappingTable; |
ptr = XHTMLElemMappingTable; |
|
#ifdef TEMPLATES |
|
else if (strcmp ("Template", name) == 0) |
|
ptr = TemplateElemMappingTable; |
|
#endif /* TEMPLATES */ |
else |
else |
ptr = NULL; |
ptr = NULL; |
|
|