-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I tried to transform a document with a default namespace. In the result
I wanted to include the contents of another document that is in no
namespace. The xslt-snippet below didn't work, only when I deleted the
xpath-default-namespace and added to all elements processed the
namespace it worked. Are there any other solutions that include the
xpath-default-namespace?
XSLT extract:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="tei">
[...some templates here...]
<xsl:for-each
select="document('http://diglib.hab.de/mss/10-aug-4f/facsimile.xml')//facsimile">
<xsl:copy-of select="."/>
</xsl:for-each>
Neither does this work, nor any <xsl:apply-templates> nor the immediate
<xsl:copy-of select="document('...')//facsimile"/>
Can I "reset" an xpath to no use of a namespace?
Best, Torsten
- --
Torsten Schassan
Herzog August Bibliothek, Postfach 1364, D-38299 Wolfenbuettel
Tel.: +49-5331-808-130, schassan {at} hab.de
http://www.hab.de; http://www.hab.de/forschung/projekte/weiss64.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJtRVAq4nZEP2KS4QRAjh1AJ9jCJYn3DzSD4Nb+36kOnr7IW+E8QCbBveR
vnTvcx9XKgdVZ8S4zxmEOCU=
=rwuj
-----END PGP SIGNATURE-----
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--