[stringtemplate-interest] ST variable substitution issue, pls advise.
Kandru, Kiran
kiran.kandru at citi.com
Tue Jun 14 20:01:46 PDT 2011
Hi,
I need advise on using variable substitution into String Template file using XPATH Query.When I try parsing XML file , for some syntax error, conceptName highlighted in RED not being substituted by parameter passed to apply method. Right now I'm clueless, could you please advise?
main(root,fldNames) ::= <<
Concepts: <root.("/ChangedProductNotification/product/concepts/concept"): { concept |
<concept.cname:apply()>
}>
>>
apply(conceptName) ::= <<
Narrowing to Product Concept: <root.("/ChangedProductNotification/product/concepts/concept[@cname=<conceptName>]/recs/rec/attributes/attribute[@name='XrefValue']"): { attribute |
<attribute.name>,<attribute>
}>
>>
Thx,
Kiran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110614/b20f278b/attachment.html
More information about the stringtemplate-interest
mailing list