XML Schema

Schema
<?xml version="1.0" encoding="UTF-8"?>
<shuie order="50" active="true">
  <title />
  <contexts />
  <javascript />
  <styles>
    <css />
  </styles>
  <json />
</shuie>

Title
<title><![CDATA[HelloWorld]]></title>

Context
<context active="true">
  <siteUri><![CDATA[http://localhost/pwa]]></siteUri>
  <webUri><![CDATA[http://localhost/pwa]]></webUri>
  <webTitle><![CDATA[Project Web Access]]></webTitle>
  <listTitle><![CDATA[list]]></listTitle>
  <baseTemplate><![CDATA[Document Library]]></baseTemplate>
  <userLogin><![CDATA[domain\user]]></userLogin>
  <userName><![CDATA[user]]></userName>
  <userIsSiteAdmin>false</userIsSiteAdmin>
  <userIsWebAdmin>false</userIsWebAdmin>
  <pageMode>
    <invalid>true</invalid>
    <new>false</new>
    <edit>false</edit>
    <display>false</display>
  </pageMode>
</context>

JavaScript
<javascript minify="true">
  <code>
    <![CDATA[
$(document).ready(function() {
	if (p3context.CurrentList) 
		$("h1 > a").text(testVar.textValue + " do you like collaborating using " + p3context.CurrentList.Title + " list?");
	else
		$("h1 > a").text(testVar.textValue + " do you like collaborating using " + p3context.Web.Name + " site?");
    
  $("h1 > a").attr("class", "testClass");
});
      ]]>
  </code>
</javascript>

CSS
<css minify="true" mediatype="screen">
  <code>
    <![CDATA[
.testClass{
  border:2px solid red;
  font-weight:bold;
  font-size:14pt;
  width:100%;
}]]>
  </code>
</css>

JSON
<json minify="true">
  <code>
    <![CDATA[var testVar = {textValue: "Hello"}]]>
  </code>
</json>

Last edited Jul 23, 2009 at 4:26 PM by diogoxluis, version 3

Comments

No comments yet.