<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Nillable"]]></title>
		<link>http://forums.visual-paradigm.com/posts/50.html</link>
		<description><![CDATA[Latest messages posted in the topic "Nillable"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Nillable</title>
				<description><![CDATA[ Hi Jick,<br> <br> Sorry to be a pain but blame M&#36;...their dot net framework code is complaining that it wants to see the nillable attribute otherwise it goes nuts....something to do with how it serializes the objects...<br> <br> I have hacked the code for xsdElementAttribute to be as follows as a work around. Can you ask your engineers to let me know if there is a more elegant solution?<br> <br> &#36;attribute.t_prepare(&#36;args.get("property"))##<br> ## ===== Output =====<br> #if( &#36;attribute.isComposite() )<br> 	&#36;stacks.getStack("composite").push(&#36;class)##	<br> 	#set(&#36;class = &#36;attribute.getType())<br> 	&#36;stacks.getStack("referenceAttribute").push(&#36;referenceAttribute)##	<br> 	#set(&#36;referenceAttribute = &#36;attribute)<br> 	#parse("&#36;template-dir/XsdClassSelection.vm")<br> 	#set(&#36;referenceAttribute = &#36;stacks.getStack("referenceAttribute").pop())##	<br> 	#set(&#36;class = &#36;stacks.getStack("composite").pop())##	<br> #else<br> 	&#36;indenter.getIndentation()<xs:element ##<br> 	#if( &#36;attribute.getType().isElement() )<br> 		ref##<br> 	#else<br> 		name="&#36;attribute.getName()" type##	<br> 	#end<br> 	="&#36;attribute.t_getTypePrefix()&#36;attribute.t_getTypePrefixPostfix()&#36;attribute.t_getTypeName()" minOccurs="&#36;attribute.t_getMinOccurs()" maxOccurs="&#36;attribute.t_getMaxOccurs()"##<br> 	#if( &#36;attribute.hasDefaultValue() )<br> 		&#36;{space}default="&#36;attribute.getDefaultValue()"<br> 	#end<br> 	#if  (&#36;attribute.getType().isElement() !=true)<br> 	#if (&#36;attribute.t_getMinOccurs()=="0")<br> 		 &#36;space nillable="true"##<br> 	#else<br> 	 	&#36;space nillable="false"##		<br> 	#end<br> 	#end<br> 	>##<br> 	&#36;indenter.push(&#36;indentation)##<br> 	&#36;attribute.t_getDocumentation(&#36;indenter.getIndentation())<br> 	&#36;indenter.pop()##<br> 	&#36;indenter.getIndentation()</xs:element><br> #end]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18900.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18900.html</link>
				<pubDate><![CDATA[Thu, 16 Aug 2007 02:44:31]]></pubDate>
				<author><![CDATA[ TobyAnscombe]]></author>
			</item>
			<item>
				<title>Re:Nillable</title>
				<description><![CDATA[ Hi Toby,<br> <br> Please try this:<br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>#if &#40;&#36;attribute.getType&#40;&#41;.isElement&#40;&#41; !=true&#41;
    #if &#40;&#36;attribute.t_getMinOccurs&#40;&#41;=="0"&#41;
        &#36;{space}nillable="true"##
    #else
        &#36;{space}nillable="false"##
    #end
 #end</pre></td>
		</tr>
		</table><br> <br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18911.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18911.html</link>
				<pubDate><![CDATA[Thu, 16 Aug 2007 18:09:04]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Nillable</title>
				<description><![CDATA[ Thats what I wrote! :-)]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18912.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18912.html</link>
				<pubDate><![CDATA[Thu, 16 Aug 2007 19:06:07]]></pubDate>
				<author><![CDATA[ TobyAnscombe]]></author>
			</item>
			<item>
				<title>Re:Nillable</title>
				<description><![CDATA[ Oh, I didn't aware that. I am sorry that this is already the most elegant way.  :(  :( ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18925.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18925.html</link>
				<pubDate><![CDATA[Fri, 17 Aug 2007 17:01:07]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Nillable</title>
				<description><![CDATA[ Cool - I am finally elegant!<br> <br>  ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18926.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18926.html</link>
				<pubDate><![CDATA[Fri, 17 Aug 2007 17:12:20]]></pubDate>
				<author><![CDATA[ TobyAnscombe]]></author>
			</item>
			<item>
				<title>Re:Nillable</title>
				<description><![CDATA[ Hi Toby,<br> <br> Our engineers just spot a different:<br> <br> Yours : &#36;space nillable="true"##<br> Ours : &#36;{space}nillable="true"##<br> <br> Your approach will produce two spaces. Not a show stopper though  :D  :D<br> <br> Best regards,<br> Jick ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18927.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18927.html</link>
				<pubDate><![CDATA[Fri, 17 Aug 2007 17:54:36]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Nillable</title>
				<description><![CDATA[ Thats why they are engineers and I am a user...<br> <br> Any chance of an updated document set with all the calls and functions in? I cheat and look at some of the other InstantGenerator code samples and lift bits and bobs..even if it is an unsupported document set it would be handy.<br> <br> As I mentioned, I am off to a new project so I am not sure what the requirements will be but anything that you have which is useful is handy...<br> <br> Cheers Jick, have a good weekend]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18928.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18928.html</link>
				<pubDate><![CDATA[Fri, 17 Aug 2007 18:03:12]]></pubDate>
				<author><![CDATA[ TobyAnscombe]]></author>
			</item>
			<item>
				<title>Re:Nillable</title>
				<description><![CDATA[ Hi Toby,<br> <br> I have just requested for a more updated version of the API spec. Please find it attached.<br> <br> Hope you find it useful.<br> <br> Enjoy your weekend!<br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18929.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18929.html</link>
				<pubDate><![CDATA[Fri, 17 Aug 2007 19:09:00]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Nillable</title>
				<description><![CDATA[ Hi Jick, to save me from downloading Open Office can you export it as a HTML or PDF?]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18933.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18933.html</link>
				<pubDate><![CDATA[Fri, 17 Aug 2007 21:58:42]]></pubDate>
				<author><![CDATA[ TobyAnscombe]]></author>
			</item>
			<item>
				<title>Re:Nillable</title>
				<description><![CDATA[ Hi Toby,<br> <br> Certainly. Please find the HTML version attached (zipped).<br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2410#18934.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2410#18934.html</link>
				<pubDate><![CDATA[Sat, 18 Aug 2007 09:26:44]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
	</channel>
</rss>