Subject: Re: Finding namespace definitions (Was: Re: check if nodes match xpath expression)
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Mon, 4 Dec 2000 15:00:35 +0000
|
Dimitre,
> Your template will not produce the namespace definition for the
> 'node21' element. Therefore, the source code of the original xml
> document will lack some of the namespace definitions.
Fair enough: you can work out the logical location of the namespace
definition but not the physical location, just as you can't work out
whether an attribute has been assigned a default value or actually
declared, or whether a '>' has been represented as a '>' or '>' or
'>', whether " or ' were used as quotes around attribute values
and so on.
I guess it depends on how far you're prepared to go to recreate
exactly the source XML that you're displaying, regardless of logical
equivalence.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|