I’m slightly puzzled by the design of the xlink handling code in metadata.xsl at about line 785. For example:
<xsl:if test=“$edit and not($isXLinked)”>
<xsl:call-template name=“getButtons”>
<xsl:with-param name=“addLink” select=“$addLink”/>
<xsl:with-param name=“addXMLFragment” select=“$addXMLFragment”/>
<xsl:with-param name=“removeLink” select=“$removeLink”/>
<xsl:with-param name=“upLink” select=“$upLink”/>
<xsl:with-param name=“downLink” select=“$downLink”/>
<xsl:with-param name=“validationLink” select=“$validationLink”/>
<xsl:with-param name=“id” select=“$id”/>
</xsl:call-template>
</xsl:if>
I don’t see why anything which has an xlink attribute should not be allowed add/up/down etc buttons.
For the record, I have an element which should have both an xlink:href attribute and a uuidref attribute. I get the impression that the code expects an element to have either just an xlink attribute or zero or more attributes not including an xlink. I don’t think this is a valid approach.
Anybody care to comment please?
Cheers,
Justin.
This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.
Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice.
Thank you for your cooperation.
Ordnance Survey
Adanac Drive
Southampton SO16 0AS
Tel: 08456 050505
http://www.ordnancesurvey.co.uk
Hi Justin,
2011/6/21 Justin Rowles (C) <Justin.Rowles@anonymised.com>:
I’m slightly puzzled by the design of the xlink handling code in
metadata.xsl at about line 785. For example:
<xsl:if test="$edit and not($isXLinked)">
<xsl:call-template name="getButtons">
<xsl:with-param name="addLink"
select="$addLink"/>
<xsl:with-param name="addXMLFragment"
select="$addXMLFragment"/>
<xsl:with-param name="removeLink"
select="$removeLink"/>
<xsl:with-param name="upLink"
select="$upLink"/>
<xsl:with-param name="downLink"
select="$downLink"/>
<xsl:with-param name="validationLink"
select="$validationLink"/>
<xsl:with-param name="id" select="$id"/>
</xsl:call-template>
</xsl:if>
I don’t see why anything which has an xlink attribute should not be allowed
add/up/down etc buttons.
At least from my side using XLinks for the subtemplate [1] and
GéoSource sandbox, xlinked fragment should be in readonly mode. So the
current element should have buttons for control but not its children,
like :
<gmd:pointOfContact xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://localhost:8080/geonetwork/srv/en/subtemplate?uuid=5fec0927-535d-45ed-a525-1fc4c4585f75">
<gmd:CI_ResponsibleParty>
...
So the isXlinked variable is applied to children based on this :
<xsl:variable name="isXLinked"
select="count(ancestor::node()[@xlink:href]) > 0" />
but maybe there is some other use case to handle.
Cheers.
Francois
[1] http://trac.osgeo.org/geonetwork/wiki/proposals/SubTemplates
For the record, I have an element which should have both an xlink:href
attribute and a uuidref attribute. I get the impression that the code
expects an element to have either just an xlink attribute or zero or more
attributes not including an xlink. I don’t think this is a valid approach.
Anybody care to comment please?
Cheers,
Justin.
This email is only intended for the person to whom it is addressed and may
contain confidential information. If you have received this email in error,
please notify the sender and delete this email which must not be copied,
distributed or disclosed to any other person.
Unless stated otherwise, the contents of this email are personal to the
writer and do not represent the official view of Ordnance Survey. Nor can
any contract be formed on Ordnance Survey's behalf via email. We reserve the
right to monitor emails and attachments without prior notice.
Thank you for your cooperation.
Ordnance Survey
Adanac Drive
Southampton SO16 0AS
Tel: 08456 050505
http://www.ordnancesurvey.co.uk
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
Francois et al,
I’m using schema-suggestions.xml to configure a system to offer an xlink:href on a specific element, and I’m a little puzzled.
Can anyone give me a description of the difference between…
<field name=“srv:operatesOn” mode=“xlink”/>
…and…
…please?
Thanks in advance,
Justin.
This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.
Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice.
Thank you for your cooperation.
Ordnance Survey
Adanac Drive
Southampton SO16 0AS
Tel: 08456 050505
http://www.ordnancesurvey.co.uk