xsl-list
[Top] [All Lists]

RE: [xsl] exclude-result-prefixes

2006-04-24 00:38:44
Arulraj wrote:

  Hi

How to suppress the namespace of f and h in the result
tree?

  Don't use them.

  Namespaces prefixes can be used outside of what they were created for
(defined by the XML Namespaces REC): naming elements and attributes. 
For example, some XML applications use them in attribute *values*:

    <xsl:function name="ns:fun">
      ...
    </xsl:function>

  So the XSLT processor uses all namespaces in the result tree, until
you specify @exclude-result-prefixes *and* they are not used (for
naming element or attribute).  The processor prevents you to produce
ill-formed XML.

  Why don't you want the namespace declarations?

  Regards,

--drkm






















        

        
                
___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>