Ahh, excellent, thank you.

/marv

--- On Wed, 5/26/10, Markus Pilman <[email protected]> wrote:

From: Markus Pilman <[email protected]>
Subject: Re: [MarkLogic Dev General] Get string value of declared namespace
To: "General Mark Logic Developer Discussion" <[email protected]>
Date: Wednesday, May 26, 2010, 1:51 PM

Hi,
The following should work:
declare namespace foo = "http://www.foo.com";;

<namespace>{fn:namespace-uri(<foo:bar/>)}</namespace>
Best Markus
Am 26.05.2010 um 22:48 schrieb cOre dUmPeR:
Probably an easy question but, is there a way to get the string value of a 
declared namespace? 

For example:

    declare namespace foo = "http://www.foo.com";
    <namespace_str>{ foo }</namespace_str>

I suppose I could always declare a variable with its value set as 
"http://www.foo.com"; ...but I'd rather not since then there would be 2 places 
where to keep track of the same value

thanks,
/marv



      _______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general


-----Inline Attachment Follows-----

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general



      
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to