attach file in XSD
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 09:29 AM
I do not understand much English
I want to create schema to be able to raise files.
When creating the content, I want to introduce the route of a local file and to raise the file website.
How can I do it?
I want to create schema to be able to raise files.
When creating the content, I want to introduce the route of a local file and to raise the file website.
How can I do it?
Labels:
- Labels:
-
Archive
8 REPLIES 8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 02:07 PM
use xs:anyURI as the type in your schema. that will present a file picker with an add content link.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 07:27 AM
i've created this XSD schema but i can't it.
<?xml version="1.0"?>
<xs:schema targetNamespace="http://www.alfresco.org/alfresco" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:alfresco="http://www.alfresco.org/alfresco" elementFormDefault="qualified">
<xs:element name="prueba">
<xs:complexType>
<xs:sequence>
<xs:element name="uno" type="xs:string"/>
<xs:element name="dos" type="xs:anyURI"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
i've created a new context using this schema and XML file make is:
<alfresco
rueba>
<alfresco:uno>tit</alfresco:uno>
<alfresco:dos>c:\checkrun.txt</alfresco:dos>
</alfresco
rueba>
What can i do?
<?xml version="1.0"?>
<xs:schema targetNamespace="http://www.alfresco.org/alfresco" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:alfresco="http://www.alfresco.org/alfresco" elementFormDefault="qualified">
<xs:element name="prueba">
<xs:complexType>
<xs:sequence>
<xs:element name="uno" type="xs:string"/>
<xs:element name="dos" type="xs:anyURI"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
i've created a new context using this schema and XML file make is:
<alfresco

<alfresco:uno>tit</alfresco:uno>
<alfresco:dos>c:\checkrun.txt</alfresco:dos>
</alfresco

What can i do?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2007 02:12 PM
what version of the product are you using? when you fill out that form you should be seeing a file picker component. are you seeing that?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2007 03:23 AM
no, i don't see it.
i'm using WCM 2.0 version
i'm using WCM 2.0 version
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2007 03:17 PM
please install a form for this testcase. this is my testcase for file picker elements:
<?xml version="1.0"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="upload-simple"> <xs:complexType> <xs:sequence> <xs:element name="string_with_default" type="xs:normalizedString" default="default value"/> <xs:element name="file_from_element" type="xs:anyURI" minOccurs="1" maxOccurs="1"/> <xs:element name="file_from_element_with_default" type="xs:anyURI" default="/index.jsp"/> </xs:sequence> <xs:attribute name="file_from_attribute" type="xs:anyURI" use="required"/> <xs:attribute name="file_from_attribute_fixed" type="xs:anyURI" use="required" fixed="/index.jsp"/> </xs:complexType> </xs:element></xs:schema>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 03:48 AM
Hello,
i've created a form but i don't see a file picker element.
xml file generated is:
<upload-simple file_from_attribute="D:\dibujos\es_bear_cs1.gif" file_from_attribute_fixed="D:\dibujos\es_bear_cs1.gif">
<string_with_default>D:\dibujos\es_bear_cs1.gif</string_with_default>
<file_from_element>D:\dibujos\es_bear_cs1.gif</file_from_element>
<file_from_element_with_default>D:\dibujos\es_bear_cs1.gif</file_from_element_with_default>
</upload-simple>
I am new working with Alfresco and I do not have experience working with content managers.
is necessary to change the configuration of Alfresco?
is necessary some additional file in addition to the XSD?
the control for the fields type dates if it works to me and a calendar unfolds, but for the fields type file (anyURI) it does not do anything, behaves as if outside text
i've created a form but i don't see a file picker element.
xml file generated is:
<upload-simple file_from_attribute="D:\dibujos\es_bear_cs1.gif" file_from_attribute_fixed="D:\dibujos\es_bear_cs1.gif">
<string_with_default>D:\dibujos\es_bear_cs1.gif</string_with_default>
<file_from_element>D:\dibujos\es_bear_cs1.gif</file_from_element>
<file_from_element_with_default>D:\dibujos\es_bear_cs1.gif</file_from_element_with_default>
</upload-simple>
I am new working with Alfresco and I do not have experience working with content managers.
is necessary to change the configuration of Alfresco?
is necessary some additional file in addition to the XSD?
the control for the fields type dates if it works to me and a calendar unfolds, but for the fields type file (anyURI) it does not do anything, behaves as if outside text
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 05:18 PM
please confirm that you are on version 2.0 of the product. you should absolutely be seeing a file picker element for xs:anyURI types. you can verify your version by looking at the system information screen in the web client.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2007 03:55 AM
We are using AlfrescoWCM Preview version.
We are constructing to a manager of contents Web.
we needed to have option WebSite
We are constructing to a manager of contents Web.
we needed to have option WebSite
