You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Romeu Flores (JIRA)" <xa...@xml.apache.org> on 2008/09/01 18:06:46 UTC

[jira] Created: (XALANJ-2455) CLONE -XPath ignores namespace declarations except on root element

CLONE -XPath ignores namespace declarations except on root element
------------------------------------------------------------------

                 Key: XALANJ-2455
                 URL: https://issues.apache.org/jira/browse/XALANJ-2455
             Project: XalanJ2
          Issue Type: Bug
      Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects.  Anybody can view the issue.)
          Components: XPath
    Affects Versions: 2.5Dx
         Environment: Operating System: Windows NT/2K
Platform: PC
            Reporter: Romeu Flores
            Assignee: Xalan Developers Mailing List


By my reading of the XML standards, this document should be valid:

<?xml version="1.0"?>
<foo:Foo xmlns:foo="http://foo.com">
  <bar:Bar  xmlns:bar="http://bar.com"/>
</foo:Foo>

and I should be able to search for //bar:Bar using the XPath implementation in 
Xalan. However, if I make that search using the ApplyXPath sample, then I get a 
javax.xml.transformer.Exception saying "Prefix must resolve to a namespace: 
bar".

If I change the XML to this:

<?xml version="1.0"?>
<foo:Foo xmlns:foo="http://foo.com"
         xmlns:bar="http://bar.com">
  <bar:Bar  xmlns:bar="http://bar.com"/>
</foo:Foo>

then the search works.  In the original XML above, I can search for //foo:Foo, 
but if I wrap the whole structure in a <baz>...</baz> then the search for fooFoo 
fails.

This is v2.5.2, BTW. Your menu of versions in Bugzilla doesn't have that one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Closed: (XALANJ-2455) CLONE -XPath ignores namespace declarations except on root element

Posted by "Romeu Flores (JIRA)" <xa...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XALANJ-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romeu Flores closed XALANJ-2455.
--------------------------------

    Resolution: Invalid

sorry. I misused jira

> CLONE -XPath ignores namespace declarations except on root element
> ------------------------------------------------------------------
>
>                 Key: XALANJ-2455
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2455
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in Xalan projects.  Anybody can view the issue.) 
>          Components: XPath
>    Affects Versions: 2.5Dx
>         Environment: Operating System: Windows NT/2K
> Platform: PC
>            Reporter: Romeu Flores
>            Assignee: Xalan Developers Mailing List
>
> By my reading of the XML standards, this document should be valid:
> <?xml version="1.0"?>
> <foo:Foo xmlns:foo="http://foo.com">
>   <bar:Bar  xmlns:bar="http://bar.com"/>
> </foo:Foo>
> and I should be able to search for //bar:Bar using the XPath implementation in 
> Xalan. However, if I make that search using the ApplyXPath sample, then I get a 
> javax.xml.transformer.Exception saying "Prefix must resolve to a namespace: 
> bar".
> If I change the XML to this:
> <?xml version="1.0"?>
> <foo:Foo xmlns:foo="http://foo.com"
>          xmlns:bar="http://bar.com">
>   <bar:Bar  xmlns:bar="http://bar.com"/>
> </foo:Foo>
> then the search works.  In the original XML above, I can search for //foo:Foo, 
> but if I wrap the whole structure in a <baz>...</baz> then the search for fooFoo 
> fails.
> This is v2.5.2, BTW. Your menu of versions in Bugzilla doesn't have that one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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