09-06-2018 9:51 AM
Hi,
I'm triying to make a transformation to display XML as HTML.
I have that tag:
<Group>
<Element Id="1">
<name Property="P1" >Name1</name>
<line style="text-align:center" />
</Element>
<Element Id="2">
<name Property="P2" >Name2</name>
<line style="text-align:center" />
</Element>
<Element Id="3">
<name Property="P3" >Name3</name>
<line style="text-align:center" />
</Element>
<Property Id="P1" Type="static" />
<Property Id="P2" Type="static" />
<Property Id="P3" Type="static" />
</Group>
In that XSLT, in "Group" tag, i want to call an external method for each "Element" tag to transform it, sending all content of the tag:
<xsl:for-each select="Element">
<xsl:value-of select="ns0:tab_to_html( string(.) )"/>
</xsl:for-each>
But method "tab_to_html" doesn't receive any data, it should receive:
<name Property="P1" >Name1</name>
<line style="text-align:center" />