View Full Version : annotation/documentation
angiras
02-03-2003, 05:48 AM
is it possible to edit as an html file the schema documentation ?
<xs:annotation>
<xs:documentation>
Alex Vincent
02-04-2003, 03:09 PM
That would be implemented by the browser as an enhancement, I believe, and no browser I'm aware of supports that functionality.
I could be wrong.
brothercake
02-04-2003, 03:22 PM
XMLSpy pro-edition comes with an IE-plugin which might do that.
angiras
02-04-2003, 04:47 PM
I have the last xml spy enterprise edition, then I must look ...
I think it will be praticle to edit a help file directly from xml <annotation>
a propos ! Brothercake you were in time :-)) I had a look at your code sunday evening, to see your menu together with xml file, but I was surprised that you need a server langage to use it :-((
I have a javascript (ticker something which works with xml witkout any server langage)
angiras
02-04-2003, 05:02 PM
I just found it now into XML SPY it works very well ! thank you
brothercake
02-04-2003, 05:32 PM
Originally posted by angiras
I had a look at your code sunday evening, to see your menu together with xml file, but I was surprised that you need a server langage to use it :-((
I have a javascript (ticker something which works with xml witkout any server langage)
That's true ... it uses javsacript to import an XML "data island" - this is a propietary technique (IE only) and therefore (IMO) worthless. Server-side transformation is much better.
The only client-side alternative would be something like
<script src="custom.xml" ...
where custom.xml has a stylesheet reference inside it and generates javascript; I tried that and it doesn't work; although I can't really explain why it doesn't work, I wasn't really expecting it to either.
[sorry .. this is somewhat off topic - what I'm referring to is this (http://www.brothercake.com/dropdown/dynamic.html#xml_import_xsl)]
angiras
02-04-2003, 05:38 PM
it works with IE6 Mozilla and Netscape and opera did a jump between the version 6 and 7 , we can hope the will include xml in the next one
I have not really found on your documentatio what to download for exclusive xml , (I don't care for myself of opera)
maybe you will be interrested for a component (DLL) with your menu, for asp net ? :-)) if yes ... I can manage it ....
brothercake
02-04-2003, 05:46 PM
Originally posted by angiras
it works with IE6 Mozilla and Netscape
I stand corrected :o
But even so - what your ticker is doing is extracting node information through the DOM and using it to create javascript variables; that would not be a suitable approach for my menu script - it has hundreds of variables - with the XML and DOM code together, you'd be looking at +50K of data, just to generate 10K of javascript.
So IMO it would be pointless to do it client-side, even if it were possible x-browser. Nonetheless - you're welcome to try!
angiras
02-04-2003, 06:41 PM
yes I shall try it , I like your menu and was never good enough in javascript to do my own
I think generating the javascript from the xml with asp net is quite easy, and shall keep this solutions, for asp net programmers they need more a component which write the javascript at the first call of the page
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.