An empty sequence is not allowed as the third argument of gn-fn-metadata:getLabel() [SEC=UNCLASSIFIED]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

An empty sequence is not allowed as the third argument of gn-fn-metadata:getLabel() [SEC=UNCLASSIFIED]

Bleys, Evert-3
Hi Guys
I've been trying to modify geonetwork/WEB-INF/data/config/schema_plugins/<schemaName>/layout/config-editor.xml file for ISO19115-3
In the process I've had to merge the ../loc/eng/strings.xml & labels.xml file from my 3.2 instance with the one provided in the new ISO19115-3 schema
                Needed as:
2) there are elements not covered in the new labels.xml file; and
1) there are some interesting codespace issues in new lables.xml
                I'll submit my concerns separately.
Unfortunately I now get a 'An empty sequence is not allowed as the third argument of gn-fn-metadata:getLabel()' error
                There are 8 occurrences of gn-fn-metadata:getLabel in the ../layout/layout.xsl file for ISO19115-3
Can someone suggest how I can work out where:
       the instance that is broken is; and
       the missing variable is missing from?

Cheers
e
BLEYS Evert Mr
Data Manager
Australian Bureau of Agricultural and Resource Economics and Sciences
Department of Agriculture and Water Resources
GPO Box 858 Canberra City   ACT   Australia   2601
44 Mort St   Braddon   ACT   2612
Ph: +61 (0)2 6272 5627
Email: [hidden email]


------
IMPORTANT - This email and any attachments have been issued by the Australian Government Department of Agriculture and Water Resources. The material transmitted is for the use of the intended recipient only and may contain confidential, legally privileged, copyright or personal information. You should not copy, use or disclose it without authorisation from the Department. It is your responsibility to check any attachments for viruses and defects before opening or forwarding them.

If you are not an intended recipient, please contact the sender of this email at once by return email and then delete both messages. Unintended recipients must not copy, use, disclose, rely on or publish this email or attachments. The Department of Agriculture and Water Resources is not liable for any loss or damage resulting from unauthorised use or dissemination of, or any reliance on, this email or attachments.

If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one, advise the sender by return e-mail accordingly. This notice should not be deleted or altered
------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: An empty sequence is not allowed as the third argument of gn-fn-metadata:getLabel() [SEC=UNCLASSIFIED]

Jose Garcia
Hi Evert

I've seen that error with some other schemas that use in the xslt
*gn-fn-metadata:getLabel()* to send it as parameter for *render-template* using
this format, that was fine for 3.2.x:

 <xsl:call-template name="render-element">
   <xsl:with-param name="label" select="gn-fn-metadata:getLabel($schema,
name(), $iso19139.labels)/label"/>

But for 3.4.x seem should be like this (removing the /label):

 <xsl:call-template name="render-element">
   <xsl:with-param name="label" select="gn-fn-metadata:getLabel($schema,
name(), $iso19139.labels)"/>

I haven't check the ISO19115-3 schema, but most probably the problem is in
some template in
https://github.com/metadata101/iso19115-3/tree/3.4.x/src/main/plugin/iso19115-3/layout
that use the 3.2.x format.

Regards,
Jose García

On Mon, May 14, 2018 at 8:36 AM, Bleys, Evert <[hidden email].
au> wrote:

> Hi Guys
> I've been trying to modify geonetwork/WEB-INF/data/config
> /schema_plugins/<schemaName>/layout/config-editor.xml file for ISO19115-3
> In the process I've had to merge the ../loc/eng/strings.xml & labels.xml
> file from my 3.2 instance with the one provided in the new ISO19115-3 schema
>                 Needed as:
> 2) there are elements not covered in the new labels.xml file; and
> 1) there are some interesting codespace issues in new lables.xml
>                 I'll submit my concerns separately.
> Unfortunately I now get a 'An empty sequence is not allowed as the third
> argument of gn-fn-metadata:getLabel()' error
>                 There are 8 occurrences of gn-fn-metadata:getLabel in the
> ../layout/layout.xsl file for ISO19115-3
> Can someone suggest how I can work out where:
>        the instance that is broken is; and
>        the missing variable is missing from?
>
> Cheers
> e
> BLEYS Evert Mr
> Data Manager
> Australian Bureau of Agricultural and Resource Economics and Sciences
> Department of Agriculture and Water Resources
> GPO Box 858 Canberra City   ACT   Australia   2601
> 44 Mort St   Braddon   ACT   2612
> Ph: +61 (0)2 6272 5627
> Email: [hidden email]
>
>
> ------
> IMPORTANT - This email and any attachments have been issued by the
> Australian Government Department of Agriculture and Water Resources. The
> material transmitted is for the use of the intended recipient only and may
> contain confidential, legally privileged, copyright or personal
> information. You should not copy, use or disclose it without authorisation
> from the Department. It is your responsibility to check any attachments for
> viruses and defects before opening or forwarding them.
>
> If you are not an intended recipient, please contact the sender of this
> email at once by return email and then delete both messages. Unintended
> recipients must not copy, use, disclose, rely on or publish this email or
> attachments. The Department of Agriculture and Water Resources is not
> liable for any loss or damage resulting from unauthorised use or
> dissemination of, or any reliance on, this email or attachments.
>
> If you have received this e-mail as part of a valid mailing list and no
> longer want to receive a message such as this one, advise the sender by
> return e-mail accordingly. This notice should not be deleted or altered
> ------
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/project
> s/geonetwork
>



--













*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork