Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Qualified variable names

From: "G. Ken Holman" <gkholman@-------------------->
To:
Date: 11/9/2008 3:02:00 PM
At 2008-11-09 15:34 +0100, Florent Georges wrote:
"G. Ken Holman" wrote:



> I often have two namespaces for each library:  a public one
> (declaring global constructs users of the black box are allowed
> to override) and a private one (declaring global constructs users
> of the black box are not allowed to override).

  I also use this technique.  I wonder what naming scheme people here
use for the private namespace URI.  Personally, over the time I use(d)
three different kinds of naming schemes:

    http://company.com/project/some-stylesheet.xsl
    some-stylesheet.xsl
    impl:some-stylesheet.xsl

where "some-stylesheet.xsl" can have more levels, reflecting the
project structure:

    http://company.com/project/some-module/some-style.xsl



  Sometimes, I just use the same URI within all the stylesheets in the
project (mostly for small projects.)

  Does someone use something else, or have any comments on those above?

When it is a namespace of a vocabulary I've made public, I use HTML 
documents at the URI of the URL:



  http://www.CraneSoftwrights.com/ns/xslstyle
  http://www.CraneSoftwrights.com/ns/xslstyle/vocabulary

... which eventually will be XHTML with RDDL but I never get the time 
to go back and fix these up.



When it is a private or temporary namespace, I use a URN:



  urn:X-Crane:project:subproject:module:etc.:etc.:etc.



Per the recommendation I do not use a URI construed as a relative URI 
as that practice is deprecated:



  http://www.w3.org/TR/2006/REC-xml-names-20060816/#iri-use



I hope this helps.



. . . . . . . . . . . Ken



--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent