[stringtemplate-interest] ST variable substitution issue, pls advise.
Kandru, Kiran
kiran.kandru at citi.com
Thu Jun 16 12:09:27 PDT 2011
Hello members,
The issue may be very small, could you please advise.
Thx,
Kiran
_____________________________________________
From: Kandru, Kiran [ICG-IT]
Sent: Tuesday, June 14, 2011 11:02 PM
To: 'stringtemplate-interest at antlr.org'
Subject: ST variable substitution issue, pls advise.
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/20110616/9eabf8d1/attachment.html
More information about the stringtemplate-interest
mailing list