xslt template match on child element value with specific attribute?

kzrasv2wer

New Member
Lets say a have this basic xml document:\[code\]<result name="response" numFound="73" start="0"> <doc> <str name="contentType">Content1</str> <str name="content">Some content here</str></doc> <doc> <str name="contentType">Content2</str> <str name="content">Some other content</str></doc></result>\[/code\]I plan to use a different template for each content type. What are the template match arguments? I haven't been able to figure out how to match for the other children of doc when only the contentType field is a specific value.
 
Back
Top