Thanks Mohamed. Fortunately Ken was able to put me on the right track here,
so we have this working now.
Martin
----- Original Message -----
From: "Innovimax SARL" <innovimax@gmail.com>
To: <dsdl-discuss@dsdl.org>
Sent: Saturday, October 14, 2006 9:49 AM
Subject: [dsdl-discuss] Re: Namespace transformation
Martin,
The answer, if any, seems to be something around the "namespace" axis,
which is now deprecated in XPath 2.0.
Or anything around "fn:in-scope-prefixes" in XPath 2.0
Sorry, for so much fuzziness, but I'm not sure to fully understand your
needs !
Mohamed
On 9/14/06, Martin Bryan <martin@is-thought.co.uk> wrote:
> Dear DSDLers
>
> After a long summer break due to family problems (my 80 year old mother
> has decided to move from a 10 gallon house to a pint-sized flat!!!) I
> have finally got around to looking at the two remaining problems with
> DiSRuLe.
>
> The one I am working on at present is:
> "Do we need to add a mechanism that would allow namespace URI's (as
> opposed to namespace prefixes) to be
> mapped when doing renaming? Could this be done by allowing an
> xmlns:prefix attribute on dsrl:to?"
>
> Given that I have annotated my element-map to include the following:
> <dsrl:element-map>
> <dsrl:from xmlns:a="http://mynamespace.fix/a">a:numero</dsrl:from>
> <dsrl:to
> xmlns:b="http://mynamespace.fix/b">b:building-identifier</dsrl:to>
> </dsrl:element-map>
>
> my problem is how to capture both the prefix and the url in a variable
> that I can then use to annotate the template definitions I am building
> within the stylesheet, where I need something along the lines of:
>
> <xs:template match="{$target}">
> <xsl:attribute select="$source-namespace"/>
> <!--The above incorrect option presumes source-namespace
> contains a copy-of the element's attributes-->
> <xs:element name="{$new-name}">
> <xsl:attribute name="{$target-namespace-name}"/>
> <!--The above option presumes target-namespace-name contains
> the prefix assigned in the namespace declaration-->
>
> The problem seems to be that attributes in the xmlns namespace can't be
> picked up using @*. How can I get them to transfer indirectly?
>
> Martin
>
>
>
> --
> DSDL members discussion list
>
> To unsubscribe, please send a message with the
> command "unsubscribe" to dsdl-discuss-request@dsdl.org
> (mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
>
>
-- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 8 72 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr RCS Paris 488.018.631 SARL au capital de 10.000 € -- DSDL members discussion list To unsubscribe, please send a message with the command "unsubscribe" to dsdl-discuss-request@dsdl.org (mailto:dsdl-discuss-request@dsdl.org?Subject=subscribe) -- DSDL members discussion list To unsubscribe, please send a message with the command "unsubscribe" to dsdl-discuss-request@dsdl.org (mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)Received on Sat Oct 14 16:59:42 2006
This archive was generated by hypermail 2.1.8 : Mon Oct 30 2006 - 19:53:02 UTC