?
Solved

XSLT

Posted on 2011-03-06
5
Medium Priority
?
55 Views
Last Modified: 2016-05-30
How to get hostname in xslt? is it possible ?
0
Comment
Question by:dotnetuser123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 2000 total points
ID: 35054877
unless you are using the .Net CMS Umbraco,
the above solution will not help you at all,
that solution is based on an XSLT extension library available in umbraco only
(google is only your friend if you understand what you read :-)

If you need the base uri of the source XML document,
and if you are on XSLT2
you can use base-uri()

If you are not using XSLT2,
you need to tell me which processor you are on,
some processors havce extensions, so I could provide a processor dependent solution

Most commonly however, I would pass that information from outside into the XSLT as a xsl:param
0
 

Expert Comment

by:EE_AutoDeleter
ID: 41623787
I've requested that this question be deleted for the following reason:

                           
No comment has been added to this question in more than 21 days, so it is now classified as abandoned and is now flagged for deletion.


If there is a valid solution, please OBJECT and indicate the comments that are, or would otherwise lead to, a solution.


Use the specific format https:#axxxxxxxx for comment ID(s).


Also, please don't object simply because the author did not respond to your comment. While we understand this is frustrating, unfortunately we cannot force the author to return to the question. Unless you feel you have presented a valid, verifiable solution we'll simply delete the question.


Experts-Exchange Auto Deleter
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 41623788
please accept https:#a35054877 as the solution
This comment replies exactly to the very generic question and gives an industry proven best practice approach for both XSLT1 and XSLT2.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question