xsl:for-each question
-
Hi all, I hope someone can help. I'm new to XSL so this might be pretty straight forward. I have a section of XML that looks something like this:
<PhysicalAddr> <Line>Physical line 1</Line> <Line>Physical line 2</Line> <Line>Physical line 3</Line> </PhysicalAddr>
I'm trying to transform this with<xsl:for-each select="Line">
but seeing as the tags have no children tags, I'm not sure how to return the contents of each by using the<xsl:value-of select="???">
element. In other words, what do I replace the???
with? Am I making my question clear enough and could anyone help perhaps? -
Hi all, I hope someone can help. I'm new to XSL so this might be pretty straight forward. I have a section of XML that looks something like this:
<PhysicalAddr> <Line>Physical line 1</Line> <Line>Physical line 2</Line> <Line>Physical line 3</Line> </PhysicalAddr>
I'm trying to transform this with<xsl:for-each select="Line">
but seeing as the tags have no children tags, I'm not sure how to return the contents of each by using the<xsl:value-of select="???">
element. In other words, what do I replace the???
with? Am I making my question clear enough and could anyone help perhaps?You use a period:
<xsl:value-of select="."/>
"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
You use a period:
<xsl:value-of select="."/>
"We make a living by what we get, we make a life by what we give." --Winston Churchill