Hi,
I am aware that the stylesheets for metadata presentation are a combination of the metadata*.xsl files in the xsl directory as well as the stylesheets in a schema’s presentation directory. But how are the stylesheets in the schema’s presentation imported/included?
Also does the same thing apply for the printing?
Jesse
Hi Jesse,
Using a process that has to step around certain limitations in the XSLT model - no doubt it could be improved upon if I knew of an alternative - but it works.
- xsl/metadata-utils.xsl has a set of 'blank' includes eg. <xsl:include href="blanks/metadata-schema01.xsl"/>
When a schema is added:
1. An entry is added to an oasis catalog file (by default data/config/schemaplugin-uri-catalog.xml) to map the uri of the next available 'blank' to the main schema presentation XSLT (eg. present/metadata-iso19135.xsl).
2. The XSLT cache is emptied, so that XSLTs are recompiled and thus pick up the oasis catalog uri remap installed at 1.
3. Presentation XSLTs use standardized names eg. to return brief presentation etc. These are called using a saxon extension that allows a call to a constructed template name since by default XSLT does not allow dynamic names for templates.
Cheers,
Simon
________________________________________
From: Jesse Eichar [jesse.eichar@anonymised.com]
Sent: Tuesday, 1 May 2012 9:41 PM
To: Devel geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] schema plugins metadata display
Hi,
I am aware that the stylesheets for metadata presentation are a combination of the metadata*.xsl files in the xsl directory as well as the stylesheets in a schema's presentation directory. But how are the stylesheets in the schema's presentation imported/included?
Also does the same thing apply for the printing?
Jesse
Then I guess the default stylesheets are imported somewhere (ie iso19139)? They are not included in the metadata-utils.xsl file (that I saw).
Jesse
On Tue, May 1, 2012 at 3:09 PM, <Simon.Pigot@anonymised.com> wrote:
Hi Jesse,
Using a process that has to step around certain limitations in the XSLT model - no doubt it could be improved upon if I knew of an alternative - but it works.
- xsl/metadata-utils.xsl has a set of ‘blank’ includes eg. <xsl:include href=“blanks/metadata-schema01.xsl”/>
When a schema is added:
- An entry is added to an oasis catalog file (by default data/config/schemaplugin-uri-catalog.xml) to map the uri of the next available ‘blank’ to the main schema presentation XSLT (eg. present/metadata-iso19135.xsl).
- The XSLT cache is emptied, so that XSLTs are recompiled and thus pick up the oasis catalog uri remap installed at 1.
- Presentation XSLTs use standardized names eg. to return brief presentation etc. These are called using a saxon extension that allows a call to a constructed template name since by default XSLT does not allow dynamic names for templates.
Cheers,
Simon
From: Jesse Eichar [jesse.eichar@…189…]
Sent: Tuesday, 1 May 2012 9:41 PM
To: Devel geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] schema plugins metadata display
Hi,
I am aware that the stylesheets for metadata presentation are a combination of the metadata*.xsl files in the xsl directory as well as the stylesheets in a schema’s presentation directory. But how are the stylesheets in the schema’s presentation imported/included?
Also does the same thing apply for the printing?
Jesse
? iso19139 is just a schema that goes through the process I described when it is found by the SchemaManager in WEB-INF/data/config/schema_plugins during the webapp start up.
________________________________________
From: Jesse Eichar [jesse.eichar@anonymised.com]
Sent: Tuesday, 1 May 2012 11:43 PM
To: Pigot, Simon (CMAR, Hobart)
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] schema plugins metadata display
Then I guess the default stylesheets are imported somewhere (ie iso19139)? They are not included in the metadata-utils.xsl file (that I saw).
Jesse
On Tue, May 1, 2012 at 3:09 PM, <Simon.Pigot@anonymised.com<mailto:Simon.Pigot@anonymised.com…192…>> wrote:
Hi Jesse,
Using a process that has to step around certain limitations in the XSLT model - no doubt it could be improved upon if I knew of an alternative - but it works.
- xsl/metadata-utils.xsl has a set of 'blank' includes eg. <xsl:include href="blanks/metadata-schema01.xsl"/>
When a schema is added:
1. An entry is added to an oasis catalog file (by default data/config/schemaplugin-uri-catalog.xml) to map the uri of the next available 'blank' to the main schema presentation XSLT (eg. present/metadata-iso19135.xsl).
2. The XSLT cache is emptied, so that XSLTs are recompiled and thus pick up the oasis catalog uri remap installed at 1.
3. Presentation XSLTs use standardized names eg. to return brief presentation etc. These are called using a saxon extension that allows a call to a constructed template name since by default XSLT does not allow dynamic names for templates.
Cheers,
Simon
________________________________________
From: Jesse Eichar [jesse.eichar@anonymised.com<mailto:jesse.eichar@anonymised.com>]
Sent: Tuesday, 1 May 2012 9:41 PM
To: Devel geonetwork-devel@lists.sourceforge.net<mailto:geonetwork-devel@anonymised.comsts.sourceforge.net>
Subject: [GeoNetwork-devel] schema plugins metadata display
Hi,
I am aware that the stylesheets for metadata presentation are a combination of the metadata*.xsl files in the xsl directory as well as the stylesheets in a schema's presentation directory. But how are the stylesheets in the schema's presentation imported/included?
Also does the same thing apply for the printing?
Jesse
Ok,
It looked to me that there was something special about the default metadata, but maybe no longer. I know where to look now at least.
Thanks for the information,
Jesse
On Tue, May 1, 2012 at 4:03 PM, <Simon.Pigot@anonymised.com> wrote:
? iso19139 is just a schema that goes through the process I described when it is found by the SchemaManager in WEB-INF/data/config/schema_plugins during the webapp start up.
From: Jesse Eichar [jesse.eichar@…189…]
Sent: Tuesday, 1 May 2012 11:43 PM
To: Pigot, Simon (CMAR, Hobart)
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] schema plugins metadata display
Then I guess the default stylesheets are imported somewhere (ie iso19139)? They are not included in the metadata-utils.xsl file (that I saw).
Jesse
On Tue, May 1, 2012 at 3:09 PM, <Simon.Pigot@anonymised.com192…mailto:[Simon.Pigot@anonymised.com2...](mailto:Simon.Pigot@anonymised.com)> wrote:
Hi Jesse,
Using a process that has to step around certain limitations in the XSLT model - no doubt it could be improved upon if I knew of an alternative - but it works.
- xsl/metadata-utils.xsl has a set of ‘blank’ includes eg. <xsl:include href=“blanks/metadata-schema01.xsl”/>
When a schema is added:
- An entry is added to an oasis catalog file (by default data/config/schemaplugin-uri-catalog.xml) to map the uri of the next available ‘blank’ to the main schema presentation XSLT (eg. present/metadata-iso19135.xsl).
- The XSLT cache is emptied, so that XSLTs are recompiled and thus pick up the oasis catalog uri remap installed at 1.
- Presentation XSLTs use standardized names eg. to return brief presentation etc. These are called using a saxon extension that allows a call to a constructed template name since by default XSLT does not allow dynamic names for templates.
Cheers,
Simon
From: Jesse Eichar [jesse.eichar@anonymised.commailto:[jesse.eichar@anonymised.com](mailto:jesse.eichar@anonymised.com)]
Sent: Tuesday, 1 May 2012 9:41 PM
To: Devel geonetwork-devel@lists.sourceforge.netmailto:[geonetwork-devel@lists.sourceforge.net](mailto:geonetwork-devel@lists.sourceforge.net)
Subject: [GeoNetwork-devel] schema plugins metadata display
Hi,
I am aware that the stylesheets for metadata presentation are a combination of the metadata*.xsl files in the xsl directory as well as the stylesheets in a schema’s presentation directory. But how are the stylesheets in the schema’s presentation imported/included?
Also does the same thing apply for the printing?
Jesse