You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "S. Dunand (JIRA)" <xe...@xml.apache.org> on 2006/03/27 15:24:20 UTC

[jira] Created: (XERCESC-1584) keyref with imported schema are not processing correctly

keyref with imported schema are not processing correctly
--------------------------------------------------------

         Key: XERCESC-1584
         URL: http://issues.apache.org/jira/browse/XERCESC-1584
     Project: Xerces-C++
        Type: Bug
  Components: SAX/SAX2  
    Versions: 2.7.0    
 Environment: windows
    Reporter: S. Dunand


When schema A import schema B with keyref, the keyref of schema A are not processing correctly. The problem is in TraverseSchema::processElemDeclIC at line fIC_ElementsNS->containsKey(fTargetNSURIString). In this case, fIC_ElementsNS is allocated (by imported schema process) but doesn't contain fTargetNSURIString. The nodes are added in B namespace. 
I try this code with success : 

        if (fIC_ElementsNS->containsKey(fTargetNSURIString)) {

            fIC_Elements = fIC_ElementsNS->get(fTargetNSURIString);
            fIC_NamespaceDepth = fIC_NamespaceDepthNS->get(fTargetNSURIString);
        }
        else
            fIC_Elements = NULL;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Resolved: (XERCESC-1584) keyref with imported schema are not processing correctly

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1584?page=all ]
     
Alberto Massari resolved XERCESC-1584:
--------------------------------------

    Resolution: Duplicate

Duplicate of XERCESC-1583

> keyref with imported schema are not processing correctly
> --------------------------------------------------------
>
>          Key: XERCESC-1584
>          URL: http://issues.apache.org/jira/browse/XERCESC-1584
>      Project: Xerces-C++
>         Type: Bug
>   Components: SAX/SAX2
>     Versions: 2.7.0
>  Environment: windows
>     Reporter: S. Dunand

>
> When schema A import schema B with keyref, the keyref of schema A are not processing correctly. The problem is in TraverseSchema::processElemDeclIC at line fIC_ElementsNS->containsKey(fTargetNSURIString). In this case, fIC_ElementsNS is allocated (by imported schema process) but doesn't contain fTargetNSURIString. The nodes are added in B namespace. 
> I try this code with success : 
>         if (fIC_ElementsNS->containsKey(fTargetNSURIString)) {
>             fIC_Elements = fIC_ElementsNS->get(fTargetNSURIString);
>             fIC_NamespaceDepth = fIC_NamespaceDepthNS->get(fTargetNSURIString);
>         }
>         else
>             fIC_Elements = NULL;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org