[stringtemplate-interest] ST variable substitution issue, pls advise.
Michael Bedward
michael.bedward at gmail.com
Tue Jun 14 21:34:40 PDT 2011
Hi Kiran,
Try changing this...
concept | <concept.cname:apply()>
to this...
concept | <apply(concept.cname)>
Michael
On 15 June 2011 13:01, Kandru, Kiran <kiran.kandru at citi.com> wrote:
> 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
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
>
More information about the stringtemplate-interest
mailing list