XSLT - is there a way to read from URL string?

M

Martin Honnen

Kenji4861 said:
My XML with XSLT is at http://www.test.com/beta/test.xml

In the XSLT, is there a way to find out what the address is? I want
to parse at the domain name. Thanks in advance

I think with XSLT 1.0/XPath 1.0 you need to declare a global param in
your stylesheeet and pass the URL to the stylesheet (how you do that
depends on the XSLT processor used).
With XSLT 2.0/XPath 2.0 there is a function base-uri I think that might
allow you to find the URL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top