Results 1 to 3 of 3

Thread: Ext.DOMQuery and XML namespaces

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    18
    Vote Rating
    0
      0  

    Default Ext.DOMQuery and XML namespaces

    Hi,

    Are there plans to support XML namespaces in the CSS3 selectors as described in http://www.w3.org/TR/2005/WD-css3-se...215/#typenmsp? This is relevant for Ajax responses that are formatted in XML, but also for the document tree in the browser, because there can be parts in other namespaces.

    For this to work the Ext.DOMQuery class would need a way to declare namespace prefixes, analogous to the @namespace rules in CSS3. This way the selectors can use the prefixes defined in the application, regardless of the prefixes used in the document.

    Currently the only safe way to query a DOM tree with namespaces is to strip all prefixes first. This can of course lead to local name clashes, but this is still more robust than relying on prefixes, because these can be chosen freely by a server.

    Best regards,

    Werner Donn.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    18
    Vote Rating
    0
      0  

    Default

    I have seen most of those, but they are about parsing prefixes. People seem to try to use the namespace prefixes that are in the document in their selectors. This is wrong. Namespace URIs should be matched instead, which is why the application should be able to declare its own prefix to namespace URI mapping and use that in its selectors. There also seems to be confusion about the prefix syntax in CSS3, which uses "|" as a separator instead of ":".

Similar Threads

  1. xml namespaces with Ext.DomQuery
    By fshort in forum Ext 1.x: Help & Discussion
    Replies: 13
    Last Post: 30 Jul 2012, 4:47 AM
  2. namespaces
    By dke01 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 4 Jul 2009, 6:08 AM
  3. xml namespaces
    By sekaijin in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 12 Mar 2008, 11:12 AM
  4. How to use namespaces?
    By LeonardoAP in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 24 Jan 2008, 5:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •