Changeset 4206


Ignore:
Timestamp:
12/18/13 14:18:32 (10 years ago)
Author:
andmor
Message:

Handle the case when license node does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.access.data/access/schemaMetadata.dpml

    r4205 r4206  
    108108                            <query xmlns:sc="http://www.isocat.org/ns/schemacat">
    109109                                copy $schema := /sc:schema[@xml:id=$args//id]
    110                                 modify (if (exists($schema/sc:license)) then replace node $schema/sc:license with /sc:licenses/sc:license[@xml:id eq $schema/sc:license/@ref] else ())
     110                                modify ( if(exists($schema/sc:license)) then replace node $schema/sc:license with /sc:licenses/sc:license[@xml:id eq $schema/sc:license/@ref] else () )
    111111                                return $schema
    112112                            </query>
Note: See TracChangeset for help on using the changeset viewer.