|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Help moving away from named templates
Steve wrote:
I second David's remarks, but perhaps you are searching a way to uniquely identify the node from your sample, which is currently not unique enough from a larger perspective? Depending on what info is present in your real data, you could take any amount of data that you can use to uniquely identify the user or the 'record'. Most notably: use the ID that you probably have from your database, and do the apply-templates such: <xsl:apply-templates select="Record[@id ='123']" /> ..... <xsl:template match="Record"> ... your action here ... </xsl:template> -- Abel PS: you mention a call-template that you want to replace with apply-templates (which is often a good thing). Can we see (part of) your original code that you want to update? Surely you have something that currently does select certain 'records' correctly?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







