xsl-list
[Top] [All Lists]

Re: [xsl] Why no namespace node KindTest?

2006-08-26 14:32:03
Colin Paul Adams wrote:

"Florent" == Florent Georges writes:

    Florent>   Hi I wonder why there is no KindTest for
    Florent> namepace nodes.  In particular, we can't write
    Florent> something like:

    Florent>     if ( $arg instance of namespace() ) ...

Because namespace nodes are deprecated, and a compliant
processor need not support them.

  Thanks Colin.

  What I understood is that namespace nodes are not
deprecated, but the namespace axis is.  So in plain XPath,
if the namespace axis is not supported, it is no possible to
actually get a namespace node.

  But XPath is designed as an embeded language.  XSLT for
example has xsl:namespace to create namespace nodes "by
hand".  As there is no kind test for namespace nodes, we
can't write something like:

    <xsl:variable name="..." as="namespace()">
      <xsl:namespace .../>
    </xsl:variable>

  So again, here, if no namespace axis, it is not possible
to get a namespace node.  But what about an other language?
I feel that setting the namespace axis as deprecated but not
the namespace nodes is not very logical.  But maybe I'm
completely wrong?

  Regards,

--drkm





















        
 p4.vert.ukl.yahoo.com uncompressed/chunked Sat Aug 26 20:13:39 GMT 2006 
        
                
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.com 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--