Advertisement
Guest User

Untitled

a guest
May 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /*
  4. * Copyright 2004-2005 The Apache Software Foundation or its licensors,
  5. * as applicable.
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. */
  19. -->
  20. <!--
  21. <!DOCTYPE nodeTypes [
  22. <!ELEMENT nodeTypes (nodeType)*>
  23. <!ELEMENT nodeType (supertypes?|propertyDefinition*|childNodeDefinition*)>
  24.  
  25. <!ATTLIST nodeType
  26. name CDATA #REQUIRED
  27. isMixin (true|false) #REQUIRED
  28. hasOrderableChildNodes (true|false) #REQUIRED
  29. primaryItemName CDATA #REQUIRED
  30. >
  31. <!ELEMENT supertypes (supertype+)>
  32. <!ELEMENT supertype (CDATA)>
  33.  
  34. <!ELEMENT propertyDefinition (valueConstraints?|defaultValues?)>
  35. <!ATTLIST propertyDefinition
  36. name CDATA #REQUIRED
  37. requiredType (String|Date|Path|Name|Reference|Binary|Double|Long|Boolean|undefined) #REQUIRED
  38. autoCreated (true|false) #REQUIRED
  39. mandatory (true|false) #REQUIRED
  40. onParentVersion (COPY|VERSION|INITIALIZE|COMPUTE|IGNORE|ABORT) #REQUIRED
  41. protected (true|false) #REQUIRED
  42. multiple (true|false) #REQUIRED
  43. >
  44. <!ELEMENT valueConstraints (valueConstraint+)>
  45. <!ELEMENT valueConstraint (CDATA)>
  46. <!ELEMENT defaultValues (defaultValue+)>
  47. <!ELEMENT defaultValue (CDATA)>
  48.  
  49. <!ELEMENT childNodeDefinition (requiredPrimaryTypes)>
  50. <!ATTLIST childNodeDefinition
  51. name CDATA #REQUIRED
  52. defaultPrimaryType CDATA #REQUIRED
  53. autoCreated (true|false) #REQUIRED
  54. mandatory (true|false) #REQUIRED
  55. onParentVersion (COPY|VERSION|INITIALIZE|COMPUTE|IGNORE|ABORT) #REQUIRED
  56. protected (true|false) #REQUIRED
  57. sameNameSiblings (true|false) #REQUIRED
  58. >
  59. <!ELEMENT requiredPrimaryTypes (requiredPrimaryType+)>
  60. <!ELEMENT requiredPrimaryType (CDATA)>
  61. ]>
  62. -->
  63. <nodeTypes
  64. xmlns:rep="internal"
  65. xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
  66. xmlns:mix="http://www.jcp.org/jcr/mix/1.0"
  67. xmlns:mgnl="http://www.magnolia.info/jcr/mgnl"
  68. xmlns:jcr="http://www.jcp.org/jcr/1.0">
  69. <!-- custom node types -->
  70. <nodeType name="mgnl:films" isMixin="false" hasOrderableChildNodes="true" primaryItemName="">
  71. <supertypes>
  72. <supertype>mgnl:content</supertype>
  73. </supertypes>
  74. </nodeType>
  75. </nodeTypes>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement