You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Jason Eacott (JIRA)" <xa...@xml.apache.org> on 2004/11/19 09:28:24 UTC

[jira] Created: (XALANJ-1997) exclude-result-prefixes namespace fixup issue?

exclude-result-prefixes namespace fixup issue?
----------------------------------------------

         Key: XALANJ-1997
         URL: http://nagoya.apache.org/jira/browse/XALANJ-1997
     Project: XalanJ2
        Type: Bug
  Components: Xalan  
    Versions: 2.6    
 Environment: linux jdk4.x jdk5.x not tested but expect windows would have same issue.
    Reporter: Jason Eacott
    Priority: Minor


trying to parse something like this:
<xsl:stylesheet version="1.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
       exclude-result-prefixes="breakme">

will throw an
 org.xml.sax.SAXException: Can not resolve namespace prefix: breakme

this behavious is new with the latest release of Xalan (possibly some previous versions too)
as I understand the w3c spec (and I may well have this wrong)
this namespace should be automatically "fixed up" in this situation.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (XALANJ-1997) exclude-result-prefixes namespace fixup issue?

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1997?page=all ]

Brian Minchau updated XALANJ-1997:
----------------------------------

    Fix Version: 2.7

> exclude-result-prefixes namespace fixup issue?
> ----------------------------------------------
>
>          Key: XALANJ-1997
>          URL: http://issues.apache.org/jira/browse/XALANJ-1997
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.6
>  Environment: linux jdk4.x jdk5.x not tested but expect windows would have same issue.
>     Reporter: Jason Eacott
>     Priority: Minor
>      Fix For: 2.7

>
> trying to parse something like this:
> <xsl:stylesheet version="1.0"
>        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>        exclude-result-prefixes="breakme">
> will throw an
>  org.xml.sax.SAXException: Can not resolve namespace prefix: breakme
> this behavious is new with the latest release of Xalan (possibly some previous versions too)
> as I understand the w3c spec (and I may well have this wrong)
> this namespace should be automatically "fixed up" in this situation.

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1997) exclude-result-prefixes namespace fixup issue?

Posted by "Jess Sightler (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-1997?page=comments#action_12360347 ] 

Jess Sightler commented on XALANJ-1997:
---------------------------------------

Yes, this broke quite a few stylesheets here as well...

Having said that, the new behaviour is the correct one.  It should throw an exception in these cases.

> exclude-result-prefixes namespace fixup issue?
> ----------------------------------------------
>
>          Key: XALANJ-1997
>          URL: http://issues.apache.org/jira/browse/XALANJ-1997
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.6
>  Environment: linux jdk4.x jdk5.x not tested but expect windows would have same issue.
>     Reporter: Jason Eacott
>     Priority: Minor
>      Fix For: 2.7

>
> trying to parse something like this:
> <xsl:stylesheet version="1.0"
>        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>        exclude-result-prefixes="breakme">
> will throw an
>  org.xml.sax.SAXException: Can not resolve namespace prefix: breakme
> this behavious is new with the latest release of Xalan (possibly some previous versions too)
> as I understand the w3c spec (and I may well have this wrong)
> this namespace should be automatically "fixed up" in this situation.

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANJ-1997) exclude-result-prefixes namespace fixup issue?

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1997?page=history ]
     
Henry Zongaro resolved XALANJ-1997:
-----------------------------------

    Resolution: Invalid

I'm not sure what kind of fixup should happen.  According to section 7.1.1 of XSLT 1.0:[1]

  The value of both [the exclude-result-prefixes and
  xsl:exclude-result-prefixes] attributes is a
  whitespace-separated list of namespace prefixes.
  The namespace bound to each of the prefixes is
  designated as an excluded namespace. It is an error
  if there is no namespace bound to the prefix on the
  element bearing the exclude-result-prefixes or
  xsl:exclude-result-prefixes attribute.

That seems to make it clear that this is an error.  It appears that this problem was fixed in Xalan-J 2.5.2 under bug report XALANJ-30.[2]

[1] http://www.w3.org/TR/xslt#literal-result-element
[2] http://nagoya.apache.org/jira/secure/ViewIssue.jspa?key=XALANJ-30

> exclude-result-prefixes namespace fixup issue?
> ----------------------------------------------
>
>          Key: XALANJ-1997
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1997
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.6
>  Environment: linux jdk4.x jdk5.x not tested but expect windows would have same issue.
>     Reporter: Jason Eacott
>     Priority: Minor

>
> trying to parse something like this:
> <xsl:stylesheet version="1.0"
>        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>        exclude-result-prefixes="breakme">
> will throw an
>  org.xml.sax.SAXException: Can not resolve namespace prefix: breakme
> this behavious is new with the latest release of Xalan (possibly some previous versions too)
> as I understand the w3c spec (and I may well have this wrong)
> this namespace should be automatically "fixed up" in this situation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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