<<<Private reply from the XMLmind XML Editor Support team (that is, 
hussein at pixware.fr)>>>

Tongue, Steve wrote:
> Thanks for your guidance. I am really struggling to come to terms with all
> these different terms etc.
> 
> I have managed to get my buttons to work but am now really having problems
> trying to produce a pdf document from these files.
> 
> I have tried to modify the example of the docubook
>  pdf command but all I get is root element must be root, not
> http://....assessment:assessments
> 
> I really don't understand the problem. I have tried converting this with fop
> from the terminal window and it still has a couple of errors but it does
> produce a pdf file.
> 
> Any help would appreciated.
> 
> Thanks
> Steve
> 
> 
>>From: Hussein Shafie <hussein at pixware.fr>
>>Organization: Pixware
>>Reply-To: "xmleditor-support at xmlmind.com" <xmleditor-support at 
>>xmlmind.com>
>>Date: Tue, 01 Jun 2004 10:38:12 +0200
>>To: "Tongue, Steve" <Steve.Tongue at openpolytechnic.ac.nz>
>>Cc: "xmleditor-support at xmlmind.com" <xmleditor-support at xmlmind.com>
>>Subject: Re: [XXE] Toolbar commands
>>
>>Tongue, Steve wrote:
>>
>>>I'm trying to add a couple of buttons to my document with this configuration
>>>below that I copied from the XHTML configuration.
>>>
>>>The buttons are added but they don't work and are greyed out in the
>>>document.
>>>
>>>Can someone give me a simple list of steps I need to take to add a button
>>>like this?
>>>
>>><?xml version="1.0" encoding="UTF-8"?>
>>><configuration name="Assessment"
>>>  xsi:schemaLocation="http://www.xmlmind.com/xmleditor/schema/configuration
>>>                      ../configuration/xsd/configuration.xsd"
>>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>  xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
>>>  xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>
>>>
>>>  <load location="xhtml.jar" />
>>>
>>>  <detect>      
>>><rootElementNamespace>http://www.xmlmind.com/xmleditor/schema/assessment</ro
>>>otElementNamespace>
>>>  </detect>
>>>
>>>  <schema>
>>>    <location>http://www.xmlmind.com/xmleditor/schema/assessment
>>>assessment.xsd</location>
>>>  </schema>
>>>
>>>  <css location="assessment.css" name="Assessment Style"/>
>>>
>>>  <template location="assessment.xml" name="Assessment template"/>
>>>
>>>
>>>  <toolBar>
>>>    <button toolTip="Convert to italic" icon="../common/icons2/i.gif">
>>>      <command name="convert" parameter="[implicitElement] italic" />
>>>    </button>
>>>
>>>    <button toolTip="Convert to bold" icon="../common/icons2/b.gif">
>>>      <command name="convert" parameter="[implicitElement] bold" />
>>>    </button>
>>>
>>>  
>>>  </toolBar>
>>></configuration>
>>
>>Your <italic> and <bold> elements probably belong the
>>"http://www.xmlmind.com/xmleditor/schema/assessment"; namespace, if this
>>is the case, you need to specify:
>>
>>---
>><command name="convert" parameter="[implicitElement]
>>{http://www.xmlmind.com/xmleditor/schema/assessment}bold"; />
>>---
>>
>>(a single space between "[implicitElement]" and
>>"{http://www.xmlmind.com/xmleditor/schema/assessment}bold";)
>>
>>
>>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration name="Assessment"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
>   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>
> 
>   <load location="xhtml.jar" />
> 
>   <detect>
>     
> <rootElementNamespace>http://www.xmlmind.com/xmleditor/schema/assessment</rootElementNamespace>
>   </detect>
> 
>   <schema>
>     <location>http://www.xmlmind.com/xmleditor/schema/assessment 
> assessment.xsd</location>
>   </schema>
> 
>   <css location="assessment.css" name="Assessment Style"/>
> 
>   <template location="assessment.xml" name="Assessment template"/>
>   
>   <documentResources>
>       <resource path="//img/@src"/>
>       <resource path="object/@data"/>
>   </documentResources>
>   
>   
>   
>   
>   <elementTemplate xmlns="http://www.xmlmind.com/xmleditor/schema/assessment"; 
> name="ul" selectable="override">
>   <bulletedlist>
>       <line></line>
>   </bulletedlist>
>   </elementTemplate>
>   
>   <elementTemplate xmlns="http://www.xmlmind.com/xmleditor/schema/assessment"; 
> name="ol" selectable="override">
>   <numberedlist>
>       <line></line>
>   </numberedlist>
>   </elementTemplate>
>   
>   <elementTemplate xmlns="http://www.xmlmind.com/xmleditor/schema/assessment"; 
> name="table" selectable="override">
>   <table>
>       <tablerow>
>               <tablecolumn></tablecolumn>
>       </tablerow>
>   </table>
>   </elementTemplate>
>       
> 
>   <toolBar>
>     <button toolTip="Convert to italic" icon="../common/icons2/i.gif">
>       <command name="convert" parameter="[implicitElement] 
> {http://www.xmlmind.com/xmleditor/schema/assessment}italic"; />
>     </button>
> 
>     <button toolTip="Convert to bold" icon="../common/icons2/b.gif">
>       <command name="convert" parameter="[implicitElement] 
> {http://www.xmlmind.com/xmleditor/schema/assessment}bold"; />
>     </button>
> 
>     <button toolTip="Convert to plain text" 
> icon="../common/icons2/plain2.gif">
>       <command name="convert" parameter="[implicitElement] #text" />
>     </button>
> 
>     <button toolTip="Add numbered list" 
> icon="../common/icons2/itemizedlist.gif">
>       <command name="add" parameter="after[implicitElement] 
> #template({http://www.xmlmind.com/xmleditor/schema/assessment}bulletedlist,ul)"
>  />
>     </button>
> 
>     <button toolTip="Add bulleted list" 
> icon="../common/icons2/orderedlist.gif">
>       <command name="add" parameter="after[implicitElement] 
> #template({http://www.xmlmind.com/xmleditor/schema/assessment}numberedlist,ol)"
>  />
>     </button>
> 
>     <button toolTip="Add table" icon="../common/icons2/table.gif">
>       <command name="add" parameter="after[implicitElement] 
> #template({http://www.xmlmind.com/xmleditor/schema/assessment}table,table)" />
>     </button>
> 
>     <button toolTip="Add figure" icon="../common/icons2/figure.gif">
>       <command name="insert" parameter="into 
> {http://www.xmlmind.com/xmleditor/schema/assessment}image"; />
>     </button>
>   </toolBar>
>   
>   
>   <menu label="Assessments">
>         <item label="Convert to PDF..." mnemonic="P"
>             command="docb.convertToPS" 
>             parameter='pdf "/book toc /article toc" 1' />
> 
>    
>   </menu>
>   
>    
>   
>     <command name="docb.toPS">
>     <process>
>       <mkdir dir="resources" />
>       <copyDocument to="__doc.xml">
>         <resources match="(https|http|ftp)://.*" />
>         <resources match=".*/([^/]+)" copyTo="resources" 
>                    referenceAs="%w/resources/$1" />
>         <resources match="(.+)" copyTo="resources" 
>                    referenceAs="%w/resources/$1" />
>       </copyDocument>
> 
>       <mkdir dir="callouts" />
>       <copyProcessResources 
> resources="@xsl/images/callouts/gif_callouts.list" 
>                             to="callouts" />
> 
> <!--
>       <transform stylesheet="assessment.xsl"
>                  file="__doc.xml" to="__doc.fo" >
>         <parameter name="paper.type">A4</parameter>
>         <parameter name="generate.toc">%1</parameter>
>         <parameter name="toc.section.depth">3</parameter>
>         <parameter name="section.autolabel">%2</parameter>
> 
>         <parameter name="callout.graphics">1</parameter>
>         <parameter name="callout.graphics.path">callouts/</parameter>
>         <parameter name="callout.graphics.extension">.gif</parameter>
> 
>         <parameter name="shade.verbatim">1</parameter>
> 
>         <parameter name="ulink.show">1</parameter>
>         <parameter name="ulink.footnotes">1</parameter>
> 
> 
>               <parameterGroup name="docb.toPS.transformParameters" />
>       </transform>
>  -->          
> 
> <processFO processor="FOP" file="__doc.xml" to="__doc.pdf">
>       <parameter name="renderer">pdf</parameter>
>       <parameter name="xml">__doc.xsl</parameter>
>       <parameter name="xsl">assessment.xsl</parameter>
>       <parameter name="pdf">__doc.xsl</parameter>
> </processFO>
> 
>       <upload base="%3">
>         <copyFile file="__doc.%0" to="%3" />
>       </upload>
>     </process>
>   </command>
> 
>   <command name="docb.convertToPS">
>     <macro>
>       <sequence>
>       <command name="selectFile" parameter="saveFileURL" />
>       <command name="docb.toPS" parameter='"%0" "%1" "%2" "%_"' />
>       </sequence>
>     </macro>
>   </command>
>   
>   
> 
> </configuration>
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- $id: assessment.xsl,v 1.0 2004/05/01  Steve Tongue -->
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> xmlns:fo="http://www.w3.org/1999/XSL/Format";
> xmlns:as= "http://www.xmlmind.com/xmleditor/schema/assessment";
> exclude-result-prefixes="as">
> 
> <!-- Need to instruct the XSLT processor to use XML output rules.
>      See http://www.w3.org/TR/xslt#output for more details
> -->
>       <xsl:output method="pdf" indent="yes" encoding="UTF-8" />
>       <xsl:param name="version" />
> 
>       <!-- This template matches the root element of the readme document and 
> emits the page
>          master definitions -->
> 
> 
> <xsl:variable name="bodywidth" select="210-60"/>
> <xsl:variable name="stdline" select="5"/>
> 
>       <xsl:template match='as:assessments'>
> 
>               <fo:root  font-family="Palatino,Times New Roman,serif" 
> font-size="12pt"
>                       white-space-collapse="true">
> 
> 
>   <fo:layout-master-set>
>                               <fo:simple-page-master master-name="cover" 
> page-height="297mm" page-width="210mm"
>                                       margin-top="25mm" margin-right="30mm" 
> margin-bottom="10mm" margin-left="30mm">                                  
> <fo:region-body margin-bottom="20mm" />
>                                       <fo:region-after 
> region-name="oddpagefooter" extent="10mm"/>
>                               </fo:simple-page-master>
> 
>                               <fo:simple-page-master master-name="leftPage" 
> page-height="297mm" page-width="210mm"
>                                       margin-top="25mm" margin-right="30mm" 
> margin-bottom="10mm" margin-left="30mm" >                                 
> <fo:region-body margin-bottom="20mm"/>
>                                       <fo:region-after 
> region-name="oddpagefooter" extent="10mm"/>
>                               </fo:simple-page-master>
> 
>                               <fo:simple-page-master master-name="rightPage" 
> page-height="297mm" page-width="210mm"
>                                       margin-top="25mm" margin-right="30mm" 
> margin-bottom="10mm" margin-left="30mm" >                                 
> <fo:region-body margin-bottom="20mm"/>
>                                       <fo:region-after 
> region-name="evenpagefooter" extent="10mm"/>
>                               </fo:simple-page-master>
> 
> 
> 
>     <fo:page-sequence-master master-name="booklet-sequence">
>       <fo:repeatable-page-master-alternatives>
>         <fo:conditional-page-master-reference page-position="first" 
> master-reference="cover"/>
>         <fo:conditional-page-master-reference odd-or-even="odd" 
> master-reference="leftPage"/>
>         <fo:conditional-page-master-reference odd-or-even="even" 
> master-reference="rightPage"/>
>       </fo:repeatable-page-master-alternatives>
>     </fo:page-sequence-master>
>   </fo:layout-master-set>
> 
>   <fo:page-sequence master-reference="booklet-sequence">
> 
>       <fo:static-content flow-name="oddpagefooter">
>               <fo:block   padding="1mm"  font-size="9pt" 
>                       text-align-last="justify">Copyright &#169; The Open 
> Polytechnic of New Zealand<fo:leader/>
> 
> ?             <fo:retrieve-marker retrieve-class-name="mrk" 
>                       retrieve-boundary="page" 
>                       retrieve-position="first-including-carryover"/>
>       
> 
>                       <fo:page-number  font-size="12pt"/>
>               </fo:block>
>       </fo:static-content>
> 
>       <fo:static-content flow-name="evenpagefooter">
>               <fo:block margin-top="10mm"   padding="1mm"  font-size="9pt" 
>                                       text-align-last="justify">
> 
> 
> ?             <fo:retrieve-marker retrieve-class-name="mrk" 
>                       retrieve-boundary="page" 
>                       retrieve-position="first-including-carryover"/>
> 
> 
>                       <fo:page-number  font-size="12pt"/>
>                       <fo:leader/>Copyright &#169; The Open Polytechnic of 
> New Zealand
>               </fo:block>
>       </fo:static-content>
> 
>       <fo:flow flow-name="xsl-region-body">                           
> <xsl:apply-templates/>
>                       <fo:block ></fo:block>
>       </fo:flow>
>   </fo:page-sequence>
> 
>               </fo:root>
> 
>       </xsl:template>
> 
> <xsl:template match='as:guide/as:programme'>
> <fo:block font-size="16pt" space-after="20mm">The Open Polytechnic of New 
> Zealand
> </fo:block>
> <fo:block font-size="18pt" space-after="10mm">
>               <xsl:apply-templates/>
> </fo:block>
> <fo:block font-size="16pt" space-after="10mm">Marking Schedule
> </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:programme'>
> <fo:block font-size="16pt" space-after="20mm">The Open Polytechnic of New 
> Zealand
> </fo:block>
> <fo:block font-size="18pt" space-after="10mm">
>               <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
>               
> <xsl:template match='as:course'>
> <fo:block font-size="20pt" space-after="0mm" text-align='start'>
>               <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
>               
> <xsl:template match='as:number'>
> <fo:block font-size="20pt" space-after="0mm" text-align='end'>
>               <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
>               
> <xsl:template match='as:semester'>
> <fo:block font-size="20pt" space-after="0mm" text-align='end'>
>               <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:weighting'>
>       <fo:block space-after="10mm" space-before="14mm">
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:due'>
>       <fo:block  space-after="10mm">
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:assessment'>
>       <fo:block>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:instructions'>
>       <fo:block>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:allocation'>
>       <fo:block>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:preparation'>
>       <fo:block break-before='page'>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:questions'>
>       <fo:block break-before ='page'>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:guide'>
>       <fo:block break-before="page">
>               <fo:marker marker-class-name="mrk">MS</fo:marker>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:answer'>
>       <fo:block>
> 
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> 
> 
> 
> <xsl:template match='as:task'>
>       <fo:block>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> 
> 
> <xsl:template match='as:subtitle'>
> <fo:block font-size="14pt"  space-after="1cm" font-style="italic">    
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:heading1'>
> <fo:block font-size="18pt" space-after="1cm" >
>               <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:heading2'>
> <fo:block font-size="18pt" space-after="1cm">
>               <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:heading3'>
> <fo:block font-size="14pt"  space-after="1cm" font-style="italic">    
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:heading4'>
> <fo:block  space-before="5mm" font-weight="bold">     <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:heading5'>
> <fo:block  space-after="5mm" font-style="italic">     <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:para'>
>       <fo:block  space-after="5mm"  text-align="justify"  widows="3">         
> <xsl:call-template name="set-alignment"/>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:note/as:para'>
>       <fo:block space-after="-1cm" text-align="justify"  widows="3">          
> <xsl:call-template name="set-alignment"/>
>       <xsl:apply-templates/>
>       </fo:block>
> </xsl:template>
> 
> <xsl:template match='as:note'>
> <fo:block  space-after="5mm" start-indent="1em" end-indent="1em"  widows="3"> 
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
> 
> 
> <xsl:template match='as:italic'>
> <fo:inline font-style="italic">
>       <xsl:apply-templates/>
> </fo:inline >
> </xsl:template>
> 
> <xsl:template match='as:bold'>
> <fo:inline font-weight="bold">
>       <xsl:apply-templates/>
> </fo:inline >
> </xsl:template>
> 
> <xsl:template match="as:hr">
> <fo:block space-before="-4mm">
> <fo:leader
>       leader-pattern="rule" leader-length.optimum="100%"
>       rule-style="single" rule-thickness="0.5pt"/>
> </fo:block>
> </xsl:template>
> 
> <xsl:template match="as:caption">
>       <fo:caption><fo:block>
>               <xsl:apply-templates />
>       </fo:block></fo:caption>
> </xsl:template>
> 
> <xsl:template match="as:table">
> <fo:table>
>       <xsl:for-each select="as:tablerow[1]/th|as:tablerow[1]/as:tablecolumn">
>               <fo:table-column>
>               <xsl:attribute name="column-width">
>               <xsl:choose>
>                       <xsl:when test="contains(@width, '%')"><xsl:value-of
>                               select="floor(number(translate(@width,'%','')) 
> div 100
>                                       * $bodywidth)"/>mm</xsl:when>
>                       <xsl:otherwise><xsl:value-of
>                               select="floor(@width div 
> 72)"/>in</xsl:otherwise>
>               </xsl:choose>
>               </xsl:attribute>
>               </fo:table-column>
>       </xsl:for-each>
> <fo:table-body>
>       <xsl:apply-templates />
> </fo:table-body>
> </fo:table>
> </xsl:template>
> 
> <xsl:template match="as:tablerow">
> <fo:table-row> <xsl:apply-templates/> </fo:table-row>
> </xsl:template>
> 
> <xsl:template match="as:th">
> <fo:table-cell font-weight="bold" text-align="center">
>       <xsl:if test="ancestor::table/@border &gt; 0">
>               <xsl:attribute name="border-style">solid</xsl:attribute>
>               <xsl:attribute name="border-width">1pt</xsl:attribute>
>       </xsl:if>
> <fo:block>
> <xsl:apply-templates/>
> </fo:block></fo:table-cell>
> </xsl:template>
> 
> <xsl:template match="as:tablecolumn">
> <fo:table-cell>
>       <xsl:if test="ancestor::table/@border &gt; 0">
>               <xsl:attribute name="border-style">solid</xsl:attribute>
>               <xsl:attribute name="border-width">1pt</xsl:attribute>
>       </xsl:if>
>       <fo:block>
>               <xsl:call-template name="set-alignment"/>
>               <xsl:apply-templates/>
>       </fo:block>
> </fo:table-cell>
> </xsl:template>
> 
> <xsl:template match="as:tt">
>       <fo:inline font-family="monospace"><xsl:apply-templates/></fo:inline>
> </xsl:template>
> 
> <xsl:template match="as:img">
>       <fo:external-graphic>
>       <xsl:attribute name="src">file:<xsl:value-of
>               select="@src"/></xsl:attribute>
>       <xsl:attribute name="width"><xsl:value-of
>               select="@width"/>px</xsl:attribute>
>       <xsl:attribute name="height"><xsl:value-of
>               select="@height"/>px</xsl:attribute>
>       </fo:external-graphic>
> </xsl:template>
> 
> <xsl:template name="set-alignment">   
>       <xsl:choose>
>       <xsl:when test="@align='left'">
>               <xsl:attribute name="text-align">start</xsl:attribute>
>       </xsl:when>
>       <xsl:when test="@align='center'">
>               <xsl:attribute name="text-align">center</xsl:attribute>
>       </xsl:when>
>       <xsl:when test="@align='right'">
>               <xsl:attribute name="text-align">end</xsl:attribute>
>       </xsl:when>
>       </xsl:choose>
> </xsl:template>
> 
> <xsl:template match="as:numberedlist">
>       <fo:list-block provisional-distance-between-starts="6mm"
>         provisional-label-separation="1mm"  widows="3">
>               <xsl:apply-templates/>
>       </fo:list-block>
> </xsl:template>
> 
> <xsl:template match="//as:numberedlist/as:line">
>       <fo:list-item space-after="1mm">
>               <fo:list-item-label>
>                       <fo:block>
>                       <xsl:choose>
>                       <xsl:when test="../@type != ''">
>                               <xsl:number format="{../@type}"/>.
>                       </xsl:when>
>                       <xsl:otherwise>
>                               <xsl:number format="1"/>.
>                       </xsl:otherwise>
>                       </xsl:choose>
>                       </fo:block>
>               </fo:list-item-label>
>               <fo:list-item-body>
>                       <fo:block start-indent="2em" space-after="5mm" 
> keep-together.within-page="3000" text-align="justify"  widows="3">
>                               <xsl:apply-templates/>
>                       </fo:block>
>               </fo:list-item-body>
>       </fo:list-item>
> </xsl:template>
> 
> 
> 
> 
> <xsl:template match="as:bulletedlist/as:line">
>       <fo:list-item space-after="1mm">
>               <fo:list-item-label start-indent="0em">
>                       <xsl:choose>
>                       <xsl:when test="../@type ='disc'">
>                               <fo:block>&#x2022;</fo:block>
>                       </xsl:when>
>                       <xsl:when test="../@type='square'">
>                               <fo:block 
> font-family="ZapfDingbats">&#110;</fo:block>
>                       </xsl:when>
>                       <xsl:when test="../@type='circle'">
>                               <fo:block 
> font-family="ZapfDingbats">&#109;</fo:block>
>                       </xsl:when>
>                       <xsl:otherwise>
>                               <xsl:choose>
>                               <xsl:when 
> test="count(ancestor::as:bulletedlist) = 1">
>                                       <fo:block>&#x2022;</fo:block>
>                               </xsl:when>
>                               <xsl:when 
> test="count(ancestor::as:bulletedlist) = 2">
>                                       <fo:block 
> font-family="ZapfDingbats">&#109;</fo:block>
>                               </xsl:when>
>                               <xsl:otherwise>
>                                       <fo:block 
> font-family="ZapfDingbats">&#110;</fo:block>
>                               </xsl:otherwise>
>                               </xsl:choose>
>                       </xsl:otherwise>
>                       </xsl:choose>
>               </fo:list-item-label>
>               <fo:list-item-body>
>                       <fo:block start-indent="2em" space-after="5mm"  
> text-align="justify">
>                               <xsl:apply-templates/>
>                       </fo:block>
>               </fo:list-item-body>
>       </fo:list-item>
> </xsl:template>
> 
> <xsl:template match="as:bulletedlist">
>       <fo:list-block provisional-distance-between-starts="6mm"
>         provisional-label-separation="1mm" space-after="6pt">
>               <xsl:apply-templates/>
>       </fo:list-block>
> </xsl:template>
> 
> 
> <xsl:template match="as:bulletedlist|as:numberedlist/as:para|as:note">
>       <fo:list-item space-after="1mm">
>               <fo:list-item-label>
>                       <fo:block>
>                       </fo:block>
>               </fo:list-item-label>
>               <fo:list-item-body>
>                       <fo:block start-indent="2em" space-after="5mm"  
> text-align="justify">
>                               <xsl:apply-templates/>
>                       </fo:block>
>               </fo:list-item-body>
>       </fo:list-item>
> </xsl:template>
> 
> 
> 
> <xsl:template match="as:underline">
> <fo:inline text-decoration="underline">
>       <xsl:apply-templates/>
> </fo:inline>
> </xsl:template>
> 
> <xsl:template match="as:metadata">
> </xsl:template>
> 
> <xsl:template match="as:comment">
> </xsl:template>
> 
> <xsl:template match="as:answerline">
> <fo:block space-before="4mm">
> <fo:leader
>       leader-pattern="rule" leader-length.optimum="100%"
>       rule-style="single" rule-thickness="0.5pt"/>
> </fo:block>
> </xsl:template>
> 
> 
> 
> 
> <xsl:template match='*'>
>               <fo:block border-style="solid" border-color="red" 
> border-width="0.5pt" margin-top="10mm" font-size="10pt" 
> font-family="Helvetica" line-height="12pt">
>               <xsl:apply-templates/>
>               </fo:block>
>       </xsl:template>
> 
> </xsl:stylesheet>
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <assessments xmlns="http://www.xmlmind.com/xmleditor/schema/assessment";>
>   <metadata>
>   <comment>This information will not show up in the printed document</comment>
>       <author>
>       <name>Steve</name>
>       <version>1.0</version>  
>       <date>
>               <day>28</day>
>               <month>5</month>
>               <year>2004</year>
>       </date>
>       </author>       
>       <technicaleditor>None</technicaleditor>
>       <instructionaldesigner>None</instructionaldesigner>
>       <macoperator>None</macoperator>
>   
>   </metadata>
>   
>   <assessment> 
>     <programme>New Zealand Diploma in</programme>
> 
>     <table>
>       <tablerow>
>         <tablecolumn width="50%"><course>Course title</course></tablecolumn>
> 
>         <tablecolumn width="50%"><number>Assessment
>         2</number><semester>Semester One 2004</semester></tablecolumn>
>       </tablerow>
>     </table>
> 
>     <hr />
> 
>     <weighting><italic>Weighting:</italic> This assessment carries % of your
>     final mark.</weighting>
> 
>     <due><italic>Due date:</italic> Your answer must reach The Open
>     Polytechnic <bold>by 5 p.m. Thursday, 20 May 2004</bold>.</due>
> 
>     <instructions>
>       <heading5>Instructions</heading5>
> 
>       <numberedlist>
>         <line>Complete all tasks for both Part A and B of this
>         assessment.</line>
> 
>         <line>Ensure your name is on each page</line>
> 
>         <line>All work submitted must be neatly presented and either
>         word-processed or typed.</line>
> 
>         <line>All work must be your own (plagiarism is not acceptable and
>         carries severe academic penalties).</line>
> 
>         <line>Please <bold>retain</bold> a copy of your work.</line>
> 
>         <line>Please sign and attach an Honesty Declaration with this
>         assessment before submission. Assessments received without an Honesty
>         Declaration may be returned unmarked.</line>
> 
>         <para>If you use the Online Campus to submit your assessment, the
>         declaration should state:</para>
> 
>         <para>???The accompanying/attached assessment answers are entirely my 
> own
>         work and have been completed in accordance with the instructions on
>         the assessment paper???.</para>
> 
>         <para>If you choose to submit your assessment in hard-copy you can use
>         the attached Honesty Declaration form.</para>
> 
>         <line>Remember to attach a barcode label to the return envelope before
>         returning your completed assessment to The Open Polytechnic of New
>         Zealand in the envelope provided.</line>
>       </numberedlist>
> 
>       <note><bold>Note:</bold> The Open Polytechnic will not accept
>       assessments emailed directly to tutors as there is no tracking system
>       covering this route. Any assessment emailed directly to your tutor will
>       be returned unopened with the instruction <bold>either</bold> to resend
>       through the Send Assessment component of the Online Campus that you can
>       locate on your course webpage, <bold>or</bold> to print out a hard copy
>       and mail it in the envelope supplied in your enrolment box.</note>
>     </instructions>
> 
>     <allocation>
>       <heading5>Mark allocation</heading5>
> 
>       <table>
>         <tablerow>
>           <tablecolumn align="left"
>           width="40%"><italic>Question</italic></tablecolumn>
> 
>           <tablecolumn align="left"
>           width="40%"><italic>Topic</italic></tablecolumn>
> 
>           <tablecolumn align="right"><italic>Marks</italic></tablecolumn>
>         </tablerow>
> 
>         <tablerow>
>           <tablecolumn><heading4>Part A</heading4></tablecolumn>
>         </tablerow>
> 
>         <tablerow>
>           <tablecolumn width="40%">heading</tablecolumn>
> 
>           <tablecolumn width="40%">(Tasks to )</tablecolumn>
> 
>           <tablecolumn align="right">25</tablecolumn>
>         </tablerow>
> 
>         <tablerow>
>           <tablecolumn width="40%">heading</tablecolumn>
> 
>           <tablecolumn width="40%">(Tasks to )</tablecolumn>
> 
>           <tablecolumn align="right">20</tablecolumn>
>         </tablerow>
> 
>         <tablerow>
>           <tablecolumn width="40%">heading</tablecolumn>
> 
>           <tablecolumn width="40%">(Tasks to )</tablecolumn>
> 
>           <tablecolumn align="right">40</tablecolumn>
>         </tablerow>
>       </table>
>     </allocation>
> 
>     <preparation>
>       <heading3>Preparation for the presentation</heading3>
> 
>       <para>You will need to <bold>choose an organisation</bold> and
>       <bold>one</bold> of its major products or services for which you will
>       prepare a marketing plan. Criteria for choosing a product or service for
>       the project include the following:</para>
> 
>       <bulletedlist>
>         <line>The product or service must be marketed in New Zealand or the
>         country in which you reside.</line>
> 
>         <line>Information concerning the company's product or service must be
>         available to you from published data and/or the chosen organisation
>         itself.</line>
> 
>         <line>You should be familiar with, and have an interest in, the
>         selected product/service.</line>
> 
>         <line>You must be able to obtain adequate information to prepare a
>         marketing plan.</line>
> 
>         <line>The product or service can be an existing product or service, or
>         a new product or service that your chosen organisation plans to
>         launch.</line>
>       </bulletedlist>
> 
>       <para><italic>The ultimate objective of this project is that you present
>       a marketing plan for an organisation selected by you, involving one
>       product or service marketed by that organisation.</italic></para>
> 
>       <para><italic>If you have difficulty in choosing an organisation and a
>       product to complete this assessment then please get in touch with your
>       tutor.</italic></para>
> 
>       <para>The final presentation of the marketing plan must be in accordance
>       with the format given in your course material. The plan must summarise
>       your findings under each of the appropriate headings. (Refer to the
>       learning guide, work unit 1, page 10, or work unit 4, pages
>       15-17).</para>
> 
>       <para>In order to prepare material for the marketing plan (which will be
>       the outcome of Part B), you will need to complete a number of tasks as
>       found in Part A (commencing on page 4). Hence, Part A is basically a
>       detailed version of the marketing plan you prepare in Part B, and it
>       will include in-depth commentary regarding the analysis, fuller
>       explanation and justification of recommendations made, and so on.</para>
> 
>       <para>You may present each of the Part A task 1 to 8 outputs as
>       attachments (appendices) to the main marketing plan you produce in Part
>       B. Extract the summarised information needed for the marketing plan
>       section (Part B) from your completed tasks.</para>
>     </preparation>
> 
>     <questions>
>       <heading1><underline>Part A</underline></heading1>
> 
>       <para>You will need to complete the following tasks. Part A task outputs
>       will provide you with information for your marketing plan presentation
>       in Part B.</para>
> 
>       <task>
>         <heading3>Task 1:</heading3>
> 
>         <bulletedlist>
>           <line>aaa</line>
> 
>           <line>bbb</line>
> 
>           <line>ccc</line>
> 
>           <note><bold>Note:</bold> If you are unable to collect all the data
>           required to complete the assessment, you should make realistic
>           assumptions based on other data available. State all assumptions
>           made.</note>
>         </bulletedlist>
>           <answerline/>
>           <answerline/>
>           <answerline/>
> 
>         <para align="right">( marks)</para>
>       </task>
> 
>       <task>
>         <heading3>Task 2:</heading3>
> 
>         <bulletedlist>
>           <line>d</line>
> 
>           <line>e</line>
> 
>           <line>f</line>
>         </bulletedlist>
> 
>         <para align="right">( marks)</para>
>       </task>
> 
>       <para align="right">[Total for Tasks 1, 2 and 3: 25 marks]</para>
>     </questions>
> 
>     <note><para>**Note - Please include relevant appendices for more clarity
>     about the organisation and its product. However, there are no marks for
>     appendices as it is expected that all relevant information provided here
>     would have been used for tasks 1 to 8. Marks for tasks 1-8 have already
>     been assigned separately.</para></note>
>   </assessment>
> 
>   <guide>
>     <comment>The section below is for the marking guide</comment>
> 
>     <programme>New Zealand Diploma in</programme>
> 
>     <table>
>       <tablerow>
>         <tablecolumn width="50%"><course>Course title</course></tablecolumn>
> 
>         <tablecolumn width="50%"><number>Assessment
>         2</number><semester>Semester One 2004</semester></tablecolumn>
>       </tablerow>
>     </table>
> 
>     <hr />
> 
>     <heading2>Part A</heading2>
> 
>     <answer>
>       <para>Task 1:</para>
> 
>       <table>
>         <tablerow>
>           <tablecolumn width="5%">???</tablecolumn>
> 
>           <tablecolumn width="85%">A reasonable amount of preliminary
>           prepearation and research....</tablecolumn>
> 
>           <tablecolumn align="right"
>           width="10%"><underline>1.0</underline></tablecolumn>
>         </tablerow>
>       </table>
>       <para align="right">[Total for Tasks 1, 2 and 3: 25 marks]</para>
>     </answer>
>   </guide>
> </assessments>
> 
> 


Reply via email to