xsl-list
[Top] [All Lists]

Re: [xsl] Newbie cannot find syntax error in attribute select

2011-02-19 13:25:15

But why all this turgid code? the whole thing can be written as

<xsl:template match="Account_or_Subaccount">
  <Contract Sub_ID="{Subscriber_Info/@Sub_Id}"
            Org_ID="{Characteristic[@Display_Lable='Organization ID']}" />
</xsl:template>

[is "Lable" spelt correctly??]

Thanks for that improvement! The reason it was done with extreme turgidity is 
historical: that was the first formulation that (almost) worked. Now I, newbie, 
can look up the curly-braces. 

And yes, LABLE (and its sibling DISPLAY_LABLE) are spelt that way in the input 
file. 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--