B
bprimuslevy
I have an XML Document that looks like this...
<UserPermission>
<Permission Desc="DoSomething" Assigned="1" />
<Permission Desc="CanAlsoDo" Assigned="1"/>
</UserPermission>
I would like to transform the document to look like this...
<User Permission>
<Permission DoSomething="1" CanAlsoDo="1"/>
</UserPermission>
This is my xslt snippet...
<xsl:element name="Permission">
<xsl:for-each select="UserPermission/Permission">
<xsl:attribute name="@Desc"> <------This is the part that will not
validate
<blah blah blah>
Is what I want to do possible? Does anyone have any sample code?
Regards,
BBL
<UserPermission>
<Permission Desc="DoSomething" Assigned="1" />
<Permission Desc="CanAlsoDo" Assigned="1"/>
</UserPermission>
I would like to transform the document to look like this...
<User Permission>
<Permission DoSomething="1" CanAlsoDo="1"/>
</UserPermission>
This is my xslt snippet...
<xsl:element name="Permission">
<xsl:for-each select="UserPermission/Permission">
<xsl:attribute name="@Desc"> <------This is the part that will not
validate
<blah blah blah>
Is what I want to do possible? Does anyone have any sample code?
Regards,
BBL