09-29-2008 12:29 PM
16:27:55,613 DEBUG [content.metadata.AbstractMappingMetadataExtracter] Added mapping from atoz to [{http://www.centrom.com/alfresco/localgov/model}atoz]
16:27:55,629 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from atoz to /art:article/art:header/art:atoz/text()
16:29:18,083 DEBUG [content.metadata.MetadataExtracterRegistry] Finding extractors for text/xml
16:29:18,130 DEBUG [metadata.xml.XPathMetadataExtracter]
No working metadata extractor could be found:
Document: ContentAccessor[ contentUrl=store://2008/9/29/16/29/cf7eb2e7-e0e5-4cca-972f-655a78f91e98.bin, mimetype=text/xml, size=760, encoding=UTF-8, locale=en_US]
16:29:18,130 DEBUG [metadata.xml.XPathMetadataExtracter]
XML metadata extractor redirected:
Reader: ContentAccessor[ contentUrl=store://2008/9/29/16/29/cf7eb2e7-e0e5-4cca-972f-655a78f91e98.bin, mimetype=text/xml, size=760, encoding=UTF-8, locale=en_US]
Extracter: null
Metadata: {{http://www.alfresco.org/model/content/1.0}name=metatest.xml, {http://www.alfresco.org
/model/system/1.0}node-dbid=19105, {http://www.alfresco.org/model/system/1.0}store-identifier=hertsm
ere–admin–preview, {http://www.alfresco.org/model/wcmappmodel/1.0}orginalparentpath=hertsmere--adm
in–preview:/www/avm_webapps/ROOT, {http://www.alfresco.org/model/content/1.0}content=contentUrl=sto
re://2008/9/29/16/29/cf7eb2e7-e0e5-4cca-972f-655a78f91e98.bin|mimetype=text/xml|size=760|encoding=UT
F-8|locale=en_US_, {http://www.alfresco.org/model/content/1.0}owner=admin, {http://www.alfresco.org/
model/content/1.0}title={en_US=metatest.xml}, {http://www.alfresco.org/model/content/1.0}modified=Mo
n Sep 29 16:29:17 BST 2008, {http://www.alfresco.org/model/system/1.0}node-uuid=UNKNOWN, {http://www
.alfresco.org/model/wcmappmodel/1.0}parentformname=web-article, {http://www.alfresco.org/model/conte
nt/1.0}created=Mon Sep 29 16:29:17 BST 2008, {http://www.alfresco.org/model/system/1.0}store-protoco
l=avm, {http://www.alfresco.org/model/content/1.0}creator=admin, {http://www.alfresco.org/model/cont
ent/1.0}modifier=admin, {http://www.alfresco.org/model/wcmappmodel/1.0}renditions=[/www/avm_webapps/
ROOT/metatest.jsp]}
<bean id="extracter.xml.centrom.ArticleModelMetadataExtracter"
class="org.alfresco.repo.content.metadata.xml.XPathMetadataExtracter"
parent="baseMetadataExtracter"
init-method="init" >
<property name="mappingProperties">
<bean class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<prop key="namespace.prefix.lg">http://www.centrom.com/alfresco/localgov/model</prop>
<prop key="atoz">lg:atoz</prop>
</props>
</property>
</bean>
</property>
<property name="xpathMappingProperties">
<bean class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<prop key="namespace.prefix.art">http://www.centrom.com/localgov/wcm/article</prop>
<prop key="atoz">/art:article/art:header/art:atoz/text()</prop>
</props>
</property>
</bean>
</property>
</bean>
<!–
This selector examines the XML documents, executing the given XPath statements until a
match is made.
–>
<bean id="extracter.xml.centrom.selector.XPathSelector"
class="org.alfresco.repo.content.selector.XPathContentWorkerSelector"
init-method="init">
<property name="workers">
<map>
<entry key="/art:article">
<ref bean="extracter.xml.centrom.ArticleModelMetadataExtracter" />
</entry>
</map>
</property>
</bean>
<bean id="extracter.xml.centrom.XMLMetadataExtracter"
class="org.alfresco.repo.content.metadata.xml.XmlMetadataExtracter"
parent="baseMetadataExtracter">
<property name="registry">
<ref bean="avmMetadataExtracterRegistry" />
</property>
<property name="overwritePolicy">
<value>EAGER</value>
</property>
<property name="selectors">
<list>
<ref bean="extracter.xml.centrom.selector.XPathSelector" />
</list>
</property>
</bean>
<namespaces>
<namespace uri="http://www.centrom.com/alfresco/localgov/model" prefix="lg"/>
</namespaces>
<aspects>
<aspect name="lg:article">
<title>Article Aspect</title>
<properties>
<property name="lg:atoz">
<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
10-20-2008 05:50 PM
10-20-2008 06:04 PM
What specifically doesn't work about datetimes? Are you using the "xs:datetime" data type in your XML Schema?
<xs:element name="expire" type="xs:datetime"/>
org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 27 column 59: src-resolve.4.2: Error resolving component 'xs:datetime'. It was detected that 'xs:datetime' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'null'. If this is the incorrect namespace, perhaps the prefix of 'xs:datetime' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'null'.
10-20-2008 06:58 PM
10-20-2008 10:39 PM
10-21-2008 03:33 AM
hmm…….strange! I just noticed that xs:datetime is listed as supported in the top table, and not supported in the bottom one.
Could I ask a big favour and have you raise a ticket for the lack of xs:datetime support in JIRA (http://issues.alfresco.com/), including the full exception stack trace from alfresco.log, then post the number back here?
10-21-2008 02:42 PM
10-22-2008 04:03 AM
Ah, so it's a typo in the wiki - I'll fix that now.
Are you seeing the issue described in https://issues.alfresco.com/jira/browse/ALFCOM-1798 on 2.2SP1?
<property name="supportedDateFormats">
<list>
<value>yyyy-MM-dd'T'HH:mm:ss</value>
<value>yyyy-MM-dd</value>
</list>
</property>
11-06-2008 06:54 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.