Solved

XSLT

Posted on 2011-03-06
5
47 Views
Last Modified: 2016-05-30
How to get hostname in xslt? is it possible ?
0
Comment
Question by:dotnetuser123
  • 2
5 Comments
 
LVL 1

Expert Comment

by:lalitgada
ID: 35053435
0
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
create wsdl for check policy price 32 35
Auto Complete Using JQuery 5 87
My first SOAP client. I have constructed the XML message... how to send? 8 72
Grunt No Clean Targets 6 186
Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

856 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