This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Finding namespace definitions (Was: Re: check if nodes match xpath expression)
- To: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Subject: Re: Finding namespace definitions (Was: Re: check if nodes match xpath expression)
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Mon, 4 Dec 2000 15:00:35 +0000
- CC: XSL-LIST <xsl-list at mulberrytech dot com>
- Organization: Jeni Tennison Consulting Ltd
- References: <20001204132315.26999.qmail@web6301.mail.yahoo.com>
- Reply-To: xsl-list at mulberrytech dot com
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