version 1.27, 2000/09/05 15:44:11
|
version 1.28, 2000/09/06 13:57:11
|
Line 327 int *thotType;
|
Line 327 int *thotType;
|
a given Thot type. |
a given Thot type. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
#ifdef __STDC__ |
#ifdef __STDC__ |
CHAR_T* GetXMLAttributeName (AttributeType attrType, Document doc) |
CHAR_T* GetXMLAttributeName (AttributeType attrType, ElementType elType, Document doc) |
#else |
#else |
CHAR_T* GetXMLAttributeName (attrType, doc) |
CHAR_T* GetXMLAttributeName (attrType, elType, doc) |
AttributeType attrType; |
AttributeType attrType; |
|
ElementType elType; |
Document doc; |
Document doc; |
#endif |
#endif |
{ |
{ |
AttributeMapping *ptr; |
AttributeMapping *ptr; |
STRING name; |
STRING name, tag; |
int i; |
int i; |
ThotBool invalid = FALSE; |
ThotBool invalid = FALSE; |
|
|
if (attrType.AttrTypeNum > 0) |
if (attrType.AttrTypeNum > 0) |
{ |
{ |
|
/* get the specific element tag */ |
|
if (elType.ElTypeNum > 0) |
|
tag = GetXMLElementName (elType, doc); |
|
else |
|
tag = TEXT(""); |
|
|
i = 0; |
i = 0; |
/* Select the table which matches with the element schema */ |
/* Select the table which matches with the element schema */ |
name = TtaGetSSchemaName (attrType.AttrSSchema); |
name = TtaGetSSchemaName (attrType.AttrSSchema); |
Line 356 Document doc;
|
Line 363 Document doc;
|
if (ptr) |
if (ptr) |
do |
do |
{ |
{ |
if (ptr[i].ThotAttribute == attrType.AttrTypeNum) |
if (ptr[i].ThotAttribute == attrType.AttrTypeNum && |
|
(ptr[i].XMLelement[0] == WC_EOS || |
|
!ustrcmp (ptr[i].XMLelement, tag))) |
{ |
{ |
if (doc == 0 || ptr[i].Level <= ParsingLevel[doc]) |
if (doc == 0 || ptr[i].Level <= ParsingLevel[doc]) |
return ptr[i].XMLattribute; |
return ptr[i].XMLattribute; |