I mean how to extract the namespace of xml by using xslt through xpath. is it is possible?

I mean how to extract the namespace of xml by using xslt through xpath. is it is possible?
gayathri grandheAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gertone (Geert Bormans)Information ArchitectCommented:
for this XML

<foo xmlns="abc">
    
</foo>

Open in new window


this template will give the namespace uri for the nodes

   <xsl:template match="node()">
        <xsl:value-of select="namespace-uri()"/>
    </xsl:template>

Open in new window


I assume that is what you need
(try to be more specific in your questions: xslt version, specific requirement.... this seems like homework without context)
0
gayathri grandheAuthor Commented:
I don't need namespace for a particular node.
I mean in the xml
these are the namespaces

<?xml-stylesheet type="text/xsl" href="update.xsl"?>
<insurance xsi:schemaLocation="http://redbus.com/service/kbs/Integration C:/DOCUME~1/AXSURY/MYDOCU~1/ACES/Design/XSLT/Update/Create_intellengent.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://redbus.com/service/kbs/Integration">

how to extract this namespace.
could you please suggest me in that.
0
gayathri grandheAuthor Commented:
how to extract that by using xpath
0
Gertone (Geert Bormans)Information ArchitectCommented:
to find the namespace uri of the root node

        <xsl:value-of select="namespace-uri(/*)"/>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gertone (Geert Bormans)Information ArchitectCommented:
completely answered.
Relevant for the knowledge database since it is a generic question and dito solution
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.