Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9260115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:48:52+00:00 2026-06-18T12:48:52+00:00

I use these codes for hiding my methods in my XML(WSDL) file: <xsl:template match=wsdl:operation[@name

  • 0

I use these codes for hiding my methods in my XML(WSDL) file:

    <xsl:template match="wsdl:operation[@name = 'GetCityWeatherByZIP']" />  
<xsl:template match="wsdl:message[@name = 'GetCityWeatherByZIPSoapIn']" /> 
<xsl:template match="wsdl:message[@name = 'GetCityWeatherByZIPSoapOut']" /> 

<xsl:template match="wsdl:message[@name = 'GetCityWeatherByZIPHttpGetIn']" /> 
<xsl:template match="wsdl:message[@name = 'GetCityWeatherByZIPHttpGetOut']" /> 

<xsl:template match="wsdl:message[@name = 'GetCityWeatherByZIPHttpPostIn']" /> 
<xsl:template match="wsdl:message[@name = 'GetCityWeatherByZIPHttpPostOut']" /> 

<xsl:template match="s:element[@name = 'GetCityWeatherByZIP']" /> 
<xsl:template match="s:element[@name = 'GetCityWeatherByZIPResponse']" />

Now I want to use just a condition for hiding all of them instead of multiple if. Actually I use this some lines in my .xslt file for hiding my method from an special ip-address:

    <xsl:template match="wsdl:operation[@name = 'GetCityWeatherByZIP']">
   <xsl:variable name="rcaTrimmed" 
          select="substring-before(substring-after($remoteClientAddress, '/'), ':')" />
   <xsl:if test="not($rcaTrimmed = '192.168.3.74')">
      <xsl:copy>
         <xsl:apply-templates select="@* | node()" />
      </xsl:copy>
   </xsl:if>
</xsl:template>

I want to add all of my **<xsl:template match** in a line and then hide all of them from an special ip-address, I dont’t want to write for all of my methods these codes one by one.
How can I do this purpose?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:48:53+00:00Added an answer on June 18, 2026 at 12:48 pm

    Do you just want to hide everything that has a @name that starts with ‘GetCityWeatherByZIP’? If so, you can just use this single template:

    <xsl:template match="*[starts-with(@name, 'GetCityWeatherByZIP')]">
       <xsl:variable name="rcaTrimmed" 
              select="substring-before(substring-after($remoteClientAddress, '/'), ':')" />
       <xsl:if test="not($rcaTrimmed = '192.168.3.74')">
          <xsl:copy>
             <xsl:apply-templates select="@* | node()" />
          </xsl:copy>
       </xsl:if>
    </xsl:template>
    

    I’d also suggest moving the definition of the rcaTrimmed variable outside of the template so it only needs to be computed once:

    <xsl:variable name="rcaTrimmed" 
              select="substring-before(substring-after($remoteClientAddress, '/'), ':')" />
    
    <xsl:template match="*[starts-with(@name, 'GetCityWeatherByZIP')]">
       <xsl:if test="not($rcaTrimmed = '192.168.3.74')">
          <xsl:copy>
             <xsl:apply-templates select="@* | node()" />
          </xsl:copy>
       </xsl:if>
    </xsl:template>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have use these code to upload two images in folder of the root
I don't want to use something like this : Logger.getLogger(MyClass.class).info(Info message); each time I
I've got a question about accidentally hiding abstract methods. I'm creating a basic Entity
I have questions about inheriting(extending) methods from classes and hiding some classes and methods
is there some ruby code I can use to install a gem from a
Is there a way to use pure html-code to display inside a frame instead
Is there any magic tools i can use to scan source code that was
Is there any way to Use the Builtin ScrollBars that comes with each .Net
Is there any good tutorial or code snippet out there on how to use
Is there any codeplex license that allows some one to use my code any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.