cancel
Showing results for 
Search instead for 
Did you mean: 

Can anyone give me simple working webform

yalexandr
Champ in-the-making
Champ in-the-making
Please
i need simple working example of *.xsd file of webform.
(and .xsl or .ftl rendering engine files if they are needed to create this webform via "Create Web Form Wizard")
it will be enough one edit field at this form

i tried to create one (following to example from http://wiki.alfresco.com/wiki/Forms_Developer_Guide)
but got error:
unable to parse test.xsd: The prefix "alf" for element "alf:label" is not bound

Thanks
1 REPLY 1

timlterry
Champ in-the-making
Champ in-the-making
news XSD

<?xml version="1.0" encoding="utf-16"?>
<!– Created with Liquid XML Studio 0.9.10.0 (http://www.liquid-technologies.com) –>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="news">
    <xs:complexType>
      <xs:sequence>
        <xs:element fixed="News" name="heading" type="xs:normalizedString" />
        <xs:element minOccurs="0" maxOccurs="unbounded" name="news-item" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

News XSL

<?xml version="1.0" encoding="iso-8859-1"?><!– DWXMLSource="news.xml" –>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslSmiley Surprisedutput method="html" encoding="iso-8859-1" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>news</title>
</head>

<body>
<h2><xsl:value-of select="news/heading"/></h2>
  <ul> 
    
    <xsl:for-each select="news/news-item">
<li> <xsl:value-of select="." disable-output-escaping="yes"/></li>
</xsl:for-each>
    </ul>


</body>
</html>
</xsl:template>
</xsl:stylesheet>