Help w/ XSLT
Ok, what I'm trying to do is so simple that some 8th grader will probably answer this in 5 seconds and make me look like a big dummy. I have XML from a Dataset that's being piped into an XML Control on an ASP.NET Page. The document structure looks like this:
- <dsShoppingCartItem xmlns="http://tempuri.org/dsShoppingCartItem.xsd">
<LocationId>1</LocationId>
<LocationTypeSId>GENERAL</LocationTypeSId>
<DBAName>Bill is as dumb as a Rock</DBAName>
<TotalAmount>160</TotalAmount>
</Location>
<LocationId>2</LocationId>
<LocationTypeSId>LOCATION</LocationTypeSId>
<DBAName>Some Company, LTD.</DBAName>
<TotalAmount>245.12</TotalAmount>
</Location>
<LocationId>1</LocationId>
<ShoppingCartItemId>1</ShoppingCartItemId>
<WorkflowSId>Whatever</WorkflowSId>
<WorkflowName>Start New Business</WorkflowName>
<WizardStateId>1</WizardStateId>
<CreateDate>2004-08-03T00:00:00.0000000-04:00</CreateDate>
<TotalAmount>160</TotalAmount>
<PaymentRejected>False</PaymentRejected>
<CheckPay>false</CheckPay>
</ShoppingCartItem>
<LocationId>2</LocationId>
<ShoppingCartItemId>2</ShoppingCartItemId>
<WorkflowSId>Strip Club License</WorkflowSId>
<WorkflowName>Club License</WorkflowName>
<WizardStateId>1</WizardStateId>
<CreateDate>2004-08-03T00:00:00.0000000-04:00</CreateDate>
<TotalAmount>245.12</TotalAmount>
<PaymentRejected>True</PaymentRejected>
<CheckPay>false</CheckPay>
</ShoppingCartItem>
</dsShoppingCartItem>
I've tried every possible permutation that I can think of on the XSLT sheet I posted a few minutes ago - all I want to do is match all of the locations and put the DBAName in a Table. Actually I want to do a hell of a lot more but that's the starting point and I'm getting NOWHERE. Is there something about the XML control I'm missing? Nothing like spending 2 hours on a Sunday trying to get one stinking match to work and coming up with Zilch.