|
Subject: RE: [xsl] finding namespace-URI for a given prefix From: <Jarno.Elovirta@xxxxxxxxx> Date: Tue, 1 Jun 2004 10:51:27 +0300 |
Hi,
> - given a stylesheet in which namespaces with prefixes are
> defined (may also be any other xml format but thats the one i
> am interested in)
> <xsl:stylesheet xmlns:n1="n1uri" xmlns:n2="n2uri"
> xmlns:xsl=[...]
> <xsl:namespace-alias stylesheet-prefix="n1"
> result-prefix="n2"/>
> [...]
>
> - find for each namespaceprefix (e.g. for
> /xsl:stylesheet/namespace-alias/@stylesheet-prefix) the used URI...
<xsl:for-each select="document('')/*/xsl:namespace-alias/@stylesheet-prefix">
<xsl:text/>{<xsl:value-of select="../namespace::*[name() = current()]"/>}<xsl:value-of select="."/>
</xsl:for-each>
will give you
{n1uri}n1
Hope this helps,
Cheers,
Jarno - Z-Prochek: Avenge
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| finding namespace-URI for a given p, christof.hoeke | Thread | 1 XSL for 2 XML, Petr Mach3 |
| finding namespace-URI for a given p, christof.hoeke | Date | RE: [xsl] Text markup for web forum, Daniel Joshua |
| Month |