1:The solution is:INPUT: 1:The solution is:INPUT:
58957

How to read the processing-instructions properties?

Question:

I have processing-instructions in XML.

How can I get the <strong>id</strong> value in processing-instruction when we apply the

<xsl:template match="Dest" > <?abc ?abc:Dest id="e47529cb-4d17-461b-8438-e3b6d9ec1a68"??> </xsl:template>

Answer1:

The solution is:

<strong>INPUT:</strong>

<abc> <?abc ?abc:Dest id="e47529cb-4d17-461b-8438-e3b6d9ec1a68"??> </abc>

<strong>XSLT:</strong>

<?xml version='1.0' ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="processing-instruction('abc')"> <P-I><xsl:value-of select="substring-before(substring-after(.,'id=&quot;'),'&quot;')"/></P-I> </xsl:template> </xsl:stylesheet>

<strong>OUTPUT:</strong>

<P-I>e47529cb-4d17-461b-8438-e3b6d9ec1a68</P-I>

Recommend

  • Android - Native crash at /system/lib/libRScpp.so
  • Displaying FILTER Value In Single Cell Based On Existing Cell Value
  • Excel VBA - Checking array from adjacent cell
  • Add vcard to Contacts with Mail rules and Applescript
  • Copy folder content with Ansible
  • Thrust filter by key value
  • Android - VerifyError
  • Using extern @class in order to add a category?
  • Replace and retrieve placeholder value
  • Phonegap GA plugin not working
  • Getting error java.io.FileNotFoundException (log4j log file) at the time of publish project on cloud
  • how to ignore xml namespaces?
  • Activity overlaying. WindowManager.LayoutParams
  • iOS Cordova first plugin - plugin.xml to inject a feature
  • Splash Screen will not display
  • Doctrine/Symfony entity generator and generating entity from one table
  • Xamarin Android | Layout style
  • Setting the run time properties on SpringApplicationBuilder()
  • Enabling DTD support in Sql Server
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • How to get current document uri in XSLT?
  • Django invalid literal for int() with base 10
  • xtable package: Skipping some rows in the output
  • Xcode 4 NSLog Macro link in Xcode 3
  • preg_replace Double Spaces to tab (\\t) at the beginning of a line
  • Play WS (2.2.1): post/put large request
  • Extracting HTML between tags
  • C++ Partial template specialization - design simplification
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Check if a string to interpolate provides expected placeholders
  • Modifying destination and filename of gulp-svg-sprite
  • Deserializing XML into class C#
  • RestKit - RKRequestDelegate does not exist
  • Is there a mandatory requirement to switch app.yaml?
  • Traverse Array and Display in markup
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?