Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Get all tag content

Former Member
0 Kudos

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" />
0 REPLIES 0