Hello.
I am trying to use a parameter to filter on an attribute in a select, but it does not work. I can't figure out why... This one does NOT work:
However, when I take out the parameter, then it seems to work..like this:
I don't know if this helps, but I can use a parameter for a xml node name, but not an attribute. That code looks like this:
Do you have any ideas??? It is greatly appreciated!
Steve
I am trying to use a parameter to filter on an attribute in a select, but it does not work. I can't figure out why... This one does NOT work:
Code:
select="Search/TypesOfSearches/TypeOfSearch[@Name=$SearchName]/Category[@Id=$Category]/*/FieldDefinition"
However, when I take out the parameter, then it seems to work..like this:
Code:
select="Search/TypesOfSearches/TypeOfSearch[@Name='MySearchName']/Category[@Id='1']/*/FieldDefinition"
I don't know if this helps, but I can use a parameter for a xml node name, but not an attribute. That code looks like this:
Code:
select="/Search/FieldDefinitions/*[name() = $xmlNodeName]/FromTo/@ViewType"
Do you have any ideas??? It is greatly appreciated!
Steve