@@ -42,8 +42,6 @@ exclude-result-prefixes="#all">
4242 <xsl : import href =" ../layout.xsl" />
4343 <xsl : include href =" signup.xsl" />
4444 <xsl : include href =" acl/layout.xsl" />
45-
46- <xsl : param name =" default-classes" select =" (xs:anyURI('&owl; Ontology'), xs:anyURI('&sh; NodeShape'), xs:anyURI('&sh; PropertyShape'), xs:anyURI('&acl; Authorization'), xs:anyURI('&foaf; Person'), xs:anyURI('&cert; PublicKey'), xs:anyURI('&sioc; UserAccount'), xs:anyURI('&foaf; Group'))" as =" xs:anyURI*" />
4745
4846 <xsl : template match =" rdf:RDF[$foaf:Agent]" mode =" bs2:Create" priority =" 1" >
4947 <xsl : param name =" classes" as =" element()*" />
@@ -101,15 +99,16 @@ exclude-result-prefixes="#all">
10199 <!-- ROW FORM - we need the overriding templates as well -->
102100
103101 <!-- add "Create" button to the creatable class list below the form. Needs to pass parameters from signup.xsl!!! -->
104- <xsl : template match =" rdf:RDF[$ac:method = 'GET']" mode =" bs2:RowForm " use-when = " system-property('xsl:product-name') = 'SAXON' " >
102+ <xsl : template match =" rdf:RDF[$ac:method = 'GET']" mode =" bs2:Row " >
105103 <xsl : param name =" id" select =" concat('form-', generate-id())" as =" xs:string?" />
106104 <xsl : param name =" class" select =" 'row-fluid'" as =" xs:string?" />
107105 <xsl : param name =" method" select =" 'patch'" as =" xs:string" />
108106 <xsl : param name =" action" select =" ldh:href($ldt:base, ac:absolute-path(ldh:base-uri(.)), map{}, ac:build-uri(ac:absolute-path(ldh:base-uri(.)), map{ '_method': 'PUT', 'mode': for $mode in $ac:mode return string($mode) }))" as =" xs:anyURI" />
109107 <xsl : param name =" enctype" select =" 'multipart/form-data'" as =" xs:string?" />
110108 <xsl : param name =" create-resource" select =" true()" as =" xs:boolean" />
111109 <!-- TO-DO: generate ontology classes from the OWL vocabulary -->
112- <xsl : param name =" classes" select =" for $class-uri in ('&ldh; Constructor', '&owl; Class', '&owl; DatatypeProperty', '&owl; ObjectProperty', '&owl; Restriction') return key('resources', $class-uri, document(ac:document-uri($class-uri)))" as =" element()*" />
110+ <xsl : param name =" class-uris" select =" (xs:anyURI('&owl; Ontology'), xs:anyURI('&owl; Class'), xs:anyURI('&owl; DatatypeProperty'), xs:anyURI('&owl; ObjectProperty'), xs:anyURI('&owl; Restriction'), xs:anyURI('&ldh; Constructor'), xs:anyURI('&sh; NodeShape'), xs:anyURI('&sh; PropertyShape'), xs:anyURI('&acl; Authorization'), xs:anyURI('&foaf; Person'), xs:anyURI('&cert; PublicKey'), xs:anyURI('&sioc; UserAccount'), xs:anyURI('&foaf; Group'))" as =" xs:anyURI*" />
111+ <xsl : param name =" classes" select =" for $class-uri in $class-uris return key('resources', $class-uri, document(ac:document-uri($class-uri)))" as =" element()*" />
113112
114113 <xsl : next-match >
115114 <xsl : with-param name =" id" select =" $id" />
0 commit comments