Was: [xsl] mode and moved to Namespaces
2011-04-15 09:05:08
Hi,
It must have been a while back or something is wrong (like a missing
0?), do you have the archive reference handy?
For the record, I do have more, but only listed 73 here. Note that
while the stylesheet requires a new namespace once in a while, typically
when it starts addressing a new knowledge domain (I am currently working
on a few), it is typically the "basics", Java class interfaces, external
libraries, and i18n types that tend to grow faster. This stylesheet,
once stripped of all comments and blanklines, and layed out with long
lines so that instructions do not exceed a single line, with no
redundency, excluding all Java and other libraries, of which there are a
few, is just under 20K lines of XSLT2. Of course, it is assembled and
preprocessed from a hierarchy of included stylesheets. It also works
very nicely, simple to maintain, and does quite few things, including
generating some XQuery, XSLT, SQL, and Javascript.
First, you have the "basics" like
xmlns:javascript="javascript:code"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xfn="http://www.w3.org/2005/xpath-functions"
xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
xmlns:xqlocal="http://www.w3.org/2005/xquery-local-functions"
xmlns:xqerr="http://www.w3.org/2005/xqt-errors"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:soap="http://schemas.xmlsoap.org/soap/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:dcam="http://purl.org/dc/dcam/"
xmlns:dbp="http://dbpedia.org/resource/"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:saxon="http://saxon.sf.net/"extension-element-prefixes="saxon"
xmlns:stratml="http://www.stratml.net/PerformancePlanOrReport"
and you also have Java class interfaces like
<saxon:script
language="java"implements-prefix="Date"src="java:java.util.Date"xmlns:Date="java:java.util.Date"/>
<saxon:script
language="java"implements-prefix="UUID"src="java:java.util.UUID"xmlns:UUID="java:java.util.UUID"/>
<saxon:script
language="java"implements-prefix="System"src="java:java.lang.System"xmlns:System="java:java.lang.System"/>
then I have external libraries that are used, including
xmlns:space="http://www.galasoft.net/2003/XML/javaspaces/1.0"
xmlns:gsp="http://www.galasoft.org/2004/XML/portal/1.0"
xmlns:mail="http://www.galasoft.org/2004/XML/mail/1.0"
xmlns:embed="http://www.galasoft.org/2004/XML/mail/1.0"
xmlns:gsjr="http://www.galasoft.org/2004/XML/report/jasperreports/1.0"
xmlns:gspl="xalan://com.dnaos.xe.gs.core.util.env.Pipeline"
xmlns:gsenv="xalan://com.dnaos.xe.gs.core.util.env.EnvironmentUtil"
xmlns:xdbutil="xalan://com.dnaos.xe.gs.common.util.db.XMLDatabaseUtil"
xmlns:xdbu="http://www.galasoft.org/2011/XML/xmldatabaseutil/1.0"
then I have some defined by the stylesheet itself like
xmlns:dna="http://www.hyperbase.com/ns/dna"
xmlns:hyper="http://www.hyperbase.com/ns/dna/hyper"
xmlns:regex="http://www.hyperbase.com/ns/dna/hyper/regex"
xmlns:io="http://www.hyperbase.com/ns/dna/hyper/io"
xmlns:sc="http://www.hyperbase.com/ns/dna/hyper/sc"
xmlns:pk="http://www.hyperbase.com/ns/dna/hyper/sc/pk"
xmlns:ru="http://www.hyperbase.com/ns/dna/hyper/sc/rule"
xmlns:busy="http://www.hyperbase.com/ns/dna/hyper/sc/rule/policy"
xmlns:cd="http://www.hyperbase.com/ns/dna/hyper/sc/rule/policy/cond"
xmlns:tr="http://www.hyperbase.com/ns/dna/hyper/sc/rule/policy/track"
xmlns:qy="http://www.hyperbase.com/ns/dna/hyper/sc/rule/query"
xmlns:xq="http://www.hyperbase.com/ns/dna/hyper/sc/rule/query/xquery"
xmlns:xp="http://www.hyperbase.com/ns/dna/hyper/sc/rule/query/xpath"
xmlns:sql="http://www.hyperbase.com/ns/dna/hyper/sc/rule/query/sql"
xmlns:time="http://www.hyperbase.com/ns/dna/hyper/time"
xmlns:adr="http://www.hyperbase.com/ns/dna/hyper/locator"
xmlns:air="http://www.hyperbase.com/ns/dna/hyper/locator/air"
xmlns:time="http://www.hyperbase.com/ns/dna/hyper/graph"
xmlns:mu="http://www.hyperbase.com/ns/dna/hyper/time/mu"
xmlns:muperf="http://www.hyperbase.com/ns/dna/hyper/time/mu/perf"
xmlns:mucalc="http://www.hyperbase.com/ns/dna/hyper/time/mu/calc"
xmlns:sched="http://www.hyperbase.com/ns/dna/hyper/time/sched"
xmlns:wrk="http://www.hyperbase.com/ns/dna/hyper/time/work"
xmlns:xcal="http://www.hyperbase.com/ns/dna/hyper/time/sched/xcal"
xmlns:bio="http://www.hyperbase.com/ns/dna/hyper/time/sched/bio"
xmlns:data="http://www.hyperbase.com/ns/dna/data"
xmlns:doc="http://www.hyperbase.com/ns/dna/data/doc"
xmlns:lay="http://www.hyperbase.com/ns/dna/data/lay"
xmlns:db="http://www.hyperbase.com/ns/dna/data/db"
xmlns:mx="http://www.hyperbase.com/ns/dna/data/db/mx"
xmlns:cnv="http://www.hyperbase.com/ns/dna/data/app/convert"
xmlns:fibo="http://www.hyperbase.com/ns/dna/data/app/math/fibo"
xmlns:prim="http://www.hyperbase.com/ns/dna/data/app/math/prim"
xmlns:vi="http://www.hyperbase.com/ns/media/virtual"
then there are the language and locale oriented ones, which are
especially used to build dictionaries and handle things like gender
(note that I only listed English and French here) like
xmlns:i18n="http://hyperbase.com/ns/dna/data/app/i18n"
xmlns:en="http://hyperbase.com/ns/dna/data/app/i18n/en"
xmlns:f-en="http://hyperbase.com/ns/dna/data/app/i18n/f-en"
xmlns:fr="http://hyperbase.com/ns/dna/data/app/i18n/fr"
xmlns:f-fr="http://hyperbase.com/ns/dna/data/app/i18n/f-fr"
Regards,
ac
On 15 April 2011 09:37, Michael Kay<mike(_at_)saxonica(_dot_)com> wrote:
On 15/04/2011 09:31, Andrew Welch wrote:
I have stylesheets that use in excess of 80
namepaces, for various purposes.
Ouch. Perhaps I need to start revising my assumption that the number of
in-scope namespaces will always be small enough to make a linear search
acceptable.
Just for the archives it was 'ac' that said that.... I don't think
I've ever had more than 8 namespaces in a single stylesheet.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [xsl] mode, (continued)
- Re: [xsl] mode, G. Ken Holman
- Re: [xsl] mode, Andrew Welch
- Re: [xsl] mode, G. Ken Holman
- Re: [xsl] mode, Imsieke, Gerrit, le-tex
- Re: [xsl] mode, G. Ken Holman
- Re: [xsl] mode, ac
- Re: [xsl] mode, Andrew Welch
- Re: [xsl] mode, Michael Kay
- Re: [xsl] mode, Andrew Welch
- Re: [xsl] mode, Imsieke, Gerrit, le-tex
- Was: [xsl] mode and moved to Namespaces,
ac <=
- Was: [xsl] mode and moved to Namespaces, ac
- Re: Was: [xsl] mode and moved to Namespaces, Brandon Ibach
- Re: Was: [xsl] mode and moved to Namespaces, ac
- Re: Was: [xsl] mode and moved to Namespaces, ac
- Re: Was: [xsl] mode and moved to Namespaces, Liam R E Quin
- Re: Was: [xsl] mode and moved to Namespaces, ac
- Re: Was: [xsl] mode and moved to Namespaces, Michael Müller-Hillebrand
- Re: Was: [xsl] mode and moved to Namespaces, ac
- Re: Was: [xsl] mode and moved to Namespaces, Michel Hendriksen
- Re: Was: [xsl] mode and moved to Namespaces, ac
|
|
|