[xsl] Embedding the XPath of an input Text Fragment in output

Subject: [xsl] Embedding the XPath of an input Text Fragment in output
From: Tommy Nordgren <tommy.nordgren@xxxxxxxxx>
Date: Thu, 12 Jun 2008 01:40:53 +0200
I want to generate the following type of document.
<gcdocument filename="...">
<textfragment>
<xpath>The xpath of the first text fragment goes here</xpath>
<Text>This is some natural language text that I want to grammar check.</text>
</textfragment>
<!-- as many textfragment tags as necessary to represent an input xml document -->
</gcdocument>


Is it possible to embed the xpath of text fragments this way. [The xpath from file filenmame]
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
tommy.nordgren@xxxxxxxxx


Current Thread