XSLT and attributes

webmasterbeta

New Member
I am using an xslt to transform an xml document into another format xml doc.

Transform this:

<Place_Name>
<Name>THE PLACE</Name>
<Name_Type_ID>1</Name_Type_ID>
- <Name_Type>
<Name_Type_ID>1</Name_Type_ID>
<Type>Legal</Type>
</Name_Type>
</Place_Name>

Into this:

<Names>
<Name Language="English" Type ="Legal">THE PLACE</Name>
</Names>


I run into problems when trying to define attributes in the Name element. Does anyone know how to produce the result I want using an xslt document?

Regards, S.
 
Back
Top