Displaying your source xml filename
Hi there,
is there a built-in function or a way that I could find out the filename of the source xml that i am translating in my XSLT?
To give a context of what I would hope to achieve is ..... I am translating a bunch of XML files, one after another. In my xslt, I perform various node test and if nodes are missing, I would like to create an error node that provides information about the parent node of the missing node. this information would be the position of the parent node and the filename that this error occured.
for eg.
input1.xml
<fruit>
<apple>
<type>royal</type>
<qty>2</qty>
</apple>
<orange>
<type>sour</type>
</orange>
</fruit>
in my result
errorlisting.xml
<errors>
<orange>
<desc>missing node</desc>
<file>input1</file>
<node>2</node>
</orange>
</errors>
so, is there a way i can find out the source xml filename?
thanks
|