<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Including a Static XSD in a Web Form</title>
	<atom:link href="http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/</link>
	<description>Alfresco from the trenches</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:33:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Peter Monks</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-1054</link>
		<dc:creator>Peter Monks</dc:creator>
		<pubDate>Tue, 08 Mar 2011 23:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-1054</guid>
		<description>Nice!  Yeah loading of dynamic XSDs via &lt;xs:include&gt; / &lt;xs:import&gt; is also possible, although a little more involved than the simple static case described above.  Thanks for sharing your solution Eric!</description>
		<content:encoded><![CDATA[<p>Nice!  Yeah loading of dynamic XSDs via &lt;xs:include&gt; / &lt;xs:import&gt; is also possible, although a little more involved than the simple static case described above.  Thanks for sharing your solution Eric!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Tice</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-1053</link>
		<dc:creator>Eric Tice</dc:creator>
		<pubDate>Tue, 08 Mar 2011 20:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-1053</guid>
		<description>I was able to accomplish the dynamic loading of an xsds elements by creating an external web service that builds the included xml.  The scenario is as follows:

Have one form as a exampleTemplate.  It would have a drop down that needs to contain dynamicly loaded values from a database external to alfresco, as well as some other static entry fields.

I created a restful service deployed on my ESB, can be anywhere, that when called queries the database and then builds an xsd as a string to be returned.

I then use the 

&lt;xsd:include to call the service as a dynamically built included xsd into my main xsd.  

This is working great.</description>
		<content:encoded><![CDATA[<p>I was able to accomplish the dynamic loading of an xsds elements by creating an external web service that builds the included xml.  The scenario is as follows:</p>
<p>Have one form as a exampleTemplate.  It would have a drop down that needs to contain dynamicly loaded values from a database external to alfresco, as well as some other static entry fields.</p>
<p>I created a restful service deployed on my ESB, can be anywhere, that when called queries the database and then builds an xsd as a string to be returned.</p>
<p>I then use the </p>
<p>&lt;xsd:include to call the service as a dynamically built included xsd into my main xsd.  </p>
<p>This is working great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aargie</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-1044</link>
		<dc:creator>aargie</dc:creator>
		<pubDate>Tue, 01 Feb 2011 00:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-1044</guid>
		<description>@rajesh

I am also trying to accomplish something similar. The content becomes too long for content editors to edit. I would prefer to split the xsd into content xsd and metadata xsd. 

Were you able to find a solution? 

thanks</description>
		<content:encoded><![CDATA[<p>@rajesh</p>
<p>I am also trying to accomplish something similar. The content becomes too long for content editors to edit. I would prefer to split the xsd into content xsd and metadata xsd. </p>
<p>Were you able to find a solution? </p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Monks</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-860</link>
		<dc:creator>Peter Monks</dc:creator>
		<pubDate>Thu, 16 Dec 2010 18:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-860</guid>
		<description>Rajesh, progressive loading of forms is not currently supported by Web Forms, but would be a good enhancement request (which can be raised in the &lt;a&gt;Alfresco JIRA&lt;/a&gt;).</description>
		<content:encoded><![CDATA[<p>Rajesh, progressive loading of forms is not currently supported by Web Forms, but would be a good enhancement request (which can be raised in the <a>Alfresco JIRA</a>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh Avatani</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-836</link>
		<dc:creator>Rajesh Avatani</dc:creator>
		<pubDate>Fri, 10 Dec 2010 11:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-836</guid>
		<description>First of all I want to thank you for this great post. This works fine.
I have created dynamic xsd which calls webscript. I have so many fields in my form and for around 60% of the fields the webscript is called.
Because of this the peformance is not good.
I want to divide this xsd in to two in a manner when I click on create content the first xsd should be loaded and when I click on Next the second one. 
How can I achieve this?</description>
		<content:encoded><![CDATA[<p>First of all I want to thank you for this great post. This works fine.<br />
I have created dynamic xsd which calls webscript. I have so many fields in my form and for around 60% of the fields the webscript is called.<br />
Because of this the peformance is not good.<br />
I want to divide this xsd in to two in a manner when I click on create content the first xsd should be loaded and when I click on Next the second one.<br />
How can I achieve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Monks</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-822</link>
		<dc:creator>Peter Monks</dc:creator>
		<pubDate>Wed, 06 Oct 2010 18:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-822</guid>
		<description>Thanks Nikola - here&#039;s a direct link to &lt;a href=&quot;https://issues.alfresco.com/jira/browse/ALF-4877&quot; rel=&quot;nofollow&quot;&gt;ALF-4877&lt;/a&gt; in case anyone else is affected by this and wants to vote and/or comment on it.</description>
		<content:encoded><![CDATA[<p>Thanks Nikola &#8211; here&#8217;s a direct link to <a href="https://issues.alfresco.com/jira/browse/ALF-4877" rel="nofollow">ALF-4877</a> in case anyone else is affected by this and wants to vote and/or comment on it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikola Goran Čutura</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-815</link>
		<dc:creator>Nikola Goran Čutura</dc:creator>
		<pubDate>Tue, 21 Sep 2010 10:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-815</guid>
		<description>Thanks for your reply, I reported the issue, ALF-4877.

Indeed, it is not the cleanest approach but I gues the only possible in web forms. I have a form where a customer can manage some item. Item may have categories which are managed in another web form. The only and obvious (to me) solution is to add a transformation to the latter web form that will take user supplied categories and create a schema with enumeration type. This category schema will then be included into item schema.

There is no danger in exporting this schema to the deployment target - it will not be used as no component there is aware of it. However, the fact that a user may inadvertantly delete it from web project may require a new web script that will take a default within web form space if target is not found. I think I am going to make that script now ;-)</description>
		<content:encoded><![CDATA[<p>Thanks for your reply, I reported the issue, ALF-4877.</p>
<p>Indeed, it is not the cleanest approach but I gues the only possible in web forms. I have a form where a customer can manage some item. Item may have categories which are managed in another web form. The only and obvious (to me) solution is to add a transformation to the latter web form that will take user supplied categories and create a schema with enumeration type. This category schema will then be included into item schema.</p>
<p>There is no danger in exporting this schema to the deployment target &#8211; it will not be used as no component there is aware of it. However, the fact that a user may inadvertantly delete it from web project may require a new web script that will take a default within web form space if target is not found. I think I am going to make that script now <img src='http://blogs.alfresco.com/wp/pmonks/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Monks</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-814</link>
		<dc:creator>Peter Monks</dc:creator>
		<pubDate>Mon, 20 Sep 2010 22:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-814</guid>
		<description>hmmm..........the insertion of &quot;Company Home&quot; into the NodeRef does look highly suspicious.  I&#039;d suggest creating a bug report in the &lt;a href=&quot;http://issues.alfresco.com/&quot; rel=&quot;nofollow&quot;&gt;Alfresco JIRA&lt;/a&gt;, and include reproduction steps, expected result and actual result.  If you post the JIRA ticket # back here I can also take a look at it.

That said, normally it&#039;s not a good idea to place a Web Form XSD in the Web Project itself, since then it becomes part of the content of that Web Project (meaning it gets deployed out to the delivery tier etc.).  This confuses what should be a clear separation between assets that modify the behaviour of the authoring tool (e.g. Web Form XSDs) and the assets that are actually under management.  In fact this is a large part of the reason Alfresco WCM moved away from including XSD files via the virtualisation server in 2.2 - that was not a very well thought out approach.</description>
		<content:encoded><![CDATA[<p>hmmm&#8230;&#8230;&#8230;.the insertion of &#8220;Company Home&#8221; into the NodeRef does look highly suspicious.  I&#8217;d suggest creating a bug report in the <a href="http://issues.alfresco.com/" rel="nofollow">Alfresco JIRA</a>, and include reproduction steps, expected result and actual result.  If you post the JIRA ticket # back here I can also take a look at it.</p>
<p>That said, normally it&#8217;s not a good idea to place a Web Form XSD in the Web Project itself, since then it becomes part of the content of that Web Project (meaning it gets deployed out to the delivery tier etc.).  This confuses what should be a clear separation between assets that modify the behaviour of the authoring tool (e.g. Web Form XSDs) and the assets that are actually under management.  In fact this is a large part of the reason Alfresco WCM moved away from including XSD files via the virtualisation server in 2.2 &#8211; that was not a very well thought out approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikola Goran Čutura</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-813</link>
		<dc:creator>Nikola Goran Čutura</dc:creator>
		<pubDate>Mon, 20 Sep 2010 09:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-813</guid>
		<description>Hi,

Your example works fine but now I want to include a schema from my project sandbox. When I construct the link I believe is appropriate, I get the error. Here is output from the webscript:
*****
The Web Script /alfresco/service/api/path/content/avm/myproject--admin/www/avm_webapps/ROOT/b.xsd has responded with a status of 404 - Not Found.
404 Description:	Requested resource is not available.
 Message:	08200048 Unable to find ObjectPathReference[storeRef=avm://myproject--admin,path=/Company Home/www/avm_webapps/ROOT/b.xsd]
*****
Somehow, web script assumes &#039;Company Home&#039; as the root of the store... or am I doing something wrong?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Your example works fine but now I want to include a schema from my project sandbox. When I construct the link I believe is appropriate, I get the error. Here is output from the webscript:<br />
*****<br />
The Web Script /alfresco/service/api/path/content/avm/myproject&#8211;admin/www/avm_webapps/ROOT/b.xsd has responded with a status of 404 &#8211; Not Found.<br />
404 Description:	Requested resource is not available.<br />
 Message:	08200048 Unable to find ObjectPathReference[storeRef=avm://myproject--admin,path=/Company Home/www/avm_webapps/ROOT/b.xsd]<br />
*****<br />
Somehow, web script assumes &#8216;Company Home&#8217; as the root of the store&#8230; or am I doing something wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Monks</title>
		<link>http://blogs.alfresco.com/wp/pmonks/2009/07/07/including-a-static-xsd-in-a-web-form/#comment-588</link>
		<dc:creator>Peter Monks</dc:creator>
		<pubDate>Thu, 17 Jun 2010 22:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.alfresco.com/wp/pmonks/?p=52#comment-588</guid>
		<description>Jose, Alfresco does not expand nested webscript:// includes.</description>
		<content:encoded><![CDATA[<p>Jose, Alfresco does not expand nested webscript:// includes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

