Re: [xml] xsl:copy and line breaks between attributes



On Wed, Jun 02, 2004 at 05:28:39PM +0200, Igor Zlatkovic wrote:
On 02.06.2004 11:27, Oliver Kiddle wrote:
sed wouldn't be powerful enough to make the edits and most of the logic
is already there in XSLT. My best hope is perhaps to try to make the
XSLT output the changes in the form of a sed script. Is it possible to
get at line numbers within XSLT? I'd assume xsltproc has them somewhere
for producing error messages?

xsltproc doesn't have them, libxml does. You could discover the line 
number from within a C program, but XSLT offers no means known to me for 
achieving this.

xsltproc --dumpextensions shows

  {http://icl.com/saxon}line-number

might work...

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]