Posted: Fri Mar 29, 2013 1:23 pm Post subject: XML transforming using XSL
Acolyte
Joined: 14 Nov 2007 Posts: 58
Hi everybody, i'm using XSLT node. My question is about XSL. I have searched on Internet, but I've only found info about XML processing for show it on a web page. Info I'm searching is how "reuse" some code in this escenario:
You see that some created elements are "repeated" (same code) but they have differents parents ("ConsultarSC" and "NotificarPago"). So my question is how can I reuse that "repeated code". I didn't find if exists some "tag" that can I use how a "reference" (like ESQL). I don't know if you understand me.
Posted: Sat Mar 30, 2013 12:27 am Post subject: Re: XML transforming using XSL
Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
You can select (or match one parent (or a few)) and then operate on that "node set". As I can see your "parent"-nodes are in a fixed order (first all "STDR2_DATOS_CONTROL", then all "STDR2_DATOS_EMPRESA", then all "STDR2_DATOS_TRANSACCION" and then all "STDR2_DATOS_OPERACION").
So you just "select-match" these (individually) and then select the "STDR2_*" to get the value. _________________ Just use REFERENCEs
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum