From: Stephen Caffo [mailto:firstname.lastname@example.org]
Sent: 02 December 2008 19:59
To: Mailing list for the SAXON XSLT and XQuery processor
Subject: [saxon] Line numbering for XdmNode
How can I use line numbering for an XDMNode?
I have something like the following:
Saxon.Api.XdmDestination results = new Saxon.Api.XdmDestination();
saxonNode = _SaxonDoc.Build(XMLFile);
transformer2.InitialContextNode = results.XdmNode;
Except I need line numbering on for the second transformation. Do I have to pass my results.XDMNode back to the DocumentBuilder and if so what’s the best way to do that?
A little context: I’m using the saxon line number function to generate “unique” ids for elements. I need unique integers (unique only for that element type for that file) and figured that was the best way to do it.