[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] __LINE__ equivalent in XSTL
Subject: Re: [xsl] __LINE__ equivalent in XSTL From: Bartolomeo Nicolotti <bnicolotti@xxxxxxxxx> Date: Fri, 02 Dec 2011 13:44:17 +0100 |
PS, I mean the line in the xslt, not the line of the xml to be transformed. Il giorno ven, 02/12/2011 alle 13.43 +0100, Bartolomeo Nicolotti ha scritto: > Hello, > > I needo to put a comment like this > > (line 1234) <xsl:comment>line 1234 X=<xsl:value-of select="X" /> > > then I write the translated xml to a log and when i'll go to check it > in case of need I know > > 1) the line has been executed > 2) the value of X at that line > > Does this sound good? > > now I'm wrinting 1234 by hand, but it would be great to have current > line automatically, like __LINE__ in C > > Many thanks > > Bye > > Il giorno ven, 02/12/2011 alle 07.22 -0500, G. Ken Holman ha scritto: > > At 2011-12-02 13:14 +0100, Bartolomeo Nicolotti wrote: > > >in C there's a pre-processor directive > > > > > >__LINE__ > > > > > >that gives you the line of source where the directive is. > > > > > >Is there an equivalent in XSLT? > > > > No ... how were you planning to exploit this information in your > > transformation? Perhaps there is something else to help you. > > > > Remember that the input lines of all documents fed into the XSLT > > processor are not accessible to an XSLT transformation because the > > transformation works on XPath node trees interpreted from those sources. > > > > The XSLT processor, itself, may keep track of input source lines, but > > this is an aspect of the processor and not of the W3C specification. > > > > I hope this helps. > > > > . . . . . . . . . Ken > > > > > > -- > > Contact us for world-wide XML consulting and instructor-led training > > Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/t37DVX > > Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ > > G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx > > Google+ profile: https://plus.google.com/116832879756988317389/about > > Legal business disclaimers: http://www.CraneSoftwrights.com/legal > -- ____________________________________________________________ Bartolomeo Nicolotti - Reparto Sviluppo - SIAP s.r.l. Via Sant'Albano, 13 - 12049 TrinitC (CN) Italy Tel. (+39) 0172 652511 - Fax (+39) 0172 652519 E-mail: bnicolotti@xxxxxxxxx - URL: www.siapcn.it Codice Fiscale, Partita IVA, Iscr. Reg. Imprese di Cuneo: 01871320048 Capitale Sociale: b, 99.000,00 i.v. - R.E.A. CN 141311 ____________________________________________________________ Le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alla SocietC sopraindicati. La comunicazione, diffusione, distribuzione e/o copiatura del documento trasmesso nonchC) qualsiasi forma di trattamento dei dati ivi contenuti da parte di qualsiasi soggetto diverso dal destinatario C( proibita, sia ai sensi dell'art. 616 c.p., che ai sensi del D. Lgs. n. 196/2003, ed in ogni caso espressamente inibita. Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di informarci immediatamente per telefono allo 0172/652511 o inviando un messaggio all'indirizzo: info@xxxxxxxxx ____________________________________________________________ This electronic mail transmission, including any accompanying documents or attachments, may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure and it's intended solely for the addressee(s). Access to this Internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you have received this electronic mail erroneously, we ask you to to destroy it and let us know immediately by phone at 0172/652511 or by sending an e-mail at info@xxxxxxxxx ____________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] __LINE__ equivalent in XS, Bartolomeo Nicolotti | Thread | Re: [xsl] __LINE__ equivalent in XS, Andrew Welch |
Re: [xsl] __LINE__ equivalent in XS, Bartolomeo Nicolotti | Date | Re: [xsl] __LINE__ equivalent in XS, Hermann Stamm-Wilbra |
Month |