[ http://issues.apache.org/jira/browse/XALANJ-742?page=all ]

Brian Minchau updated XALANJ-742:
---------------------------------

    Version: 2.2.0
                 (was: Latest Development Code)

> attr's namespace URI for xsl:stylesheet not checked properly
> ------------------------------------------------------------
>
>          Key: XALANJ-742
>          URL: http://issues.apache.org/jira/browse/XALANJ-742
>      Project: XalanJ2
>         Type: Bug
>   Components: transformation, Xalan-interpretive
>     Versions: 2.2.0
>  Environment: Operating System: All
> Platform: All
>     Reporter: Steven L. Murray
>     Assignee: Xalan Developers Mailing List

>
> In the file ProcessorLRE.java, line 163, the default namespace for an 
> attribute
> is tested for as NULL.  The default namespace for an attribute will be the 
> empty
> string "".  This causes failues to validate a stylesheet whose stylesheet 
> element contains two or more namespace definitions (eg xmlns:xls and 
> xmlns:fo).
> The line should be modified to be:
>           String attrLocalName = attributes.getLocalName(i);
>           String attrUri = attributes.getURI(i);
>           String value = attributes.getValue(i);
>   -----> if ((null != attrUri || "".equals(attrUri)) && attrUri.equals
> (Constants.S_XSLNAMESPACEURL))
>           {
>             stylesheetAttrs.addAttribute(null, attrLocalName, attrLocalName,
>                                          attributes.getType(i),
>                                          attributes.getValue(i));
>           }
> You can verify that a null test in invalid by looking at AttrList.getURI 
> which 
> returns "" if the namespaceURI is 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to