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)Received on Thu Sep 14 20:52:53 2006
This archive was generated by hypermail 2.1.8 : Thu Sep 14 2006 - 23:03:06 UTC