Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does <xsl:value-of select = "."/> mean in an xsl file

Tags:

xslt

I have an XSLT file and in this file there are statements <xsl:value-of select = "."/>

Can anyone tell me what does select = "." mean?

like image 755
Aziz Qureshi Avatar asked Aug 14 '13 16:08

Aziz Qureshi


People also ask

What is value of select in xsl?

Definition and Usage. The <xsl:value-of> element extracts the value of a selected node. The <xsl:value-of> element can be used to select the value of an XML element and add it to the output.

What is xsl select?

The XSLT <xsl:value-of> element is used to extract the value of selected node. It puts the value of selected node as per XPath expression, as text. <xsl:value-of. select = Expression. disable-output-escaping = "yes" | "no">

What is the purpose of xsl value of?

The <xsl:value-of> element is used to extract the value of a selected node.


1 Answers

If I remember correctly select="xpath/selector" hence <xsl:value-of /> will yield the value at the described xPath.

As described here . selects the current node much the same way as . selects the current folder in a file system path.

like image 50
Mihai Stancu Avatar answered Oct 22 '22 01:10

Mihai Stancu