Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Extract a specific attribute from an element using XSLT
Using XSLT, how would you extract a specific attribute from an element in an XML document?
✍: FYICENTER.com
Successful candidates should recognize this as one of the most basic applications of XSLT. If they are not able to construct a reply similar to the example below, they should at least be able to identify the components necessary for this operation: xsl:template to match the appropriate XML element, xsl:value-of to select the attribute value, and the optional xsl:apply-templates to continue processing the document.
XSLT Exapmple of extract Attributes from XML Data:
<xsl:template match="element-name"> Attribute Value = <xsl:value-of select="@attribute"/> <xsl:apply-templates/> </xsl:template>
2007-04-11, 5368👍, 0💬
Popular Posts:
What will be printed as the result of the operation below: main() { int x=5; printf("%d,%d,%d\n",x,x. ..
How to set a cookie with the contents of a textbox ? Values stored in cookies may not have semicolon...
.NET INTERVIEW QUESTIONS - What are types of compatibility in VB6? There are three possible project ...
1. What is normalization. 2. Difference between procedure and functions. 3. Oracle 9i Vs 10g. 4. how...
What is Windows DNA architecture? Note :- If you have worked with classic ASP this question can come...