Sean Fulton wrote:
Can you tell me how this works:
    <xsl:if test="$rendertype = 'edit'">
      <a name="anchor"> </a>
    </xsl:if>

Is this what suppresses the output of the anchors in the editing view?
Actually I made a typo, it should be $rendertype != 'edit' (page is not being edited).

This template just copys the h2 element (and attributes if any) to the result document, if the doc is not being edited, an anchor is written to the result doc, and then any children nodes are passed to other templates (most likely matched by the identity template).

<h2>hello world</h2>

should become

<h2><a name="anchor"> </a> hello world</h2>

when the document is not being edited.
--Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to