Re: Modifying XHTML document content

2005-05-11 Thread Doug Chestnut
Sean Fulton wrote: Can you tell me how this works: 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 t

Re: Modifying XHTML document content

2005-05-11 Thread Sean Fulton
Thanks, Doug. That got me in the right track. I'm using: Can you tell me how this works: Is this what suppresses the output of the anchors in the editing view? Sean On 2005-05-11 11:39:51 -0400, Doug Chestnut <[EMAIL PROTECTED]> sai

Re: Modifying XHTML document content

2005-05-11 Thread Doug Chestnut
Opps, I meant test="$rendertype != 'edit'" so that in an editor, the anchor would show up. --Doug Doug Chestnut wrote: Couldn't you just try something like this in xhtml2xhtml.xsl (or other doctype xsl): You wouldn't want the anchor to show up in the editor, si

Re: Modifying XHTML document content

2005-05-11 Thread Doug Chestnut
Couldn't you just try something like this in xhtml2xhtml.xsl (or other doctype xsl): You wouldn't want the anchor to show up in the editor, since you wouldn't want the anchor to be saved as part of your doc content. --Doug Sean Fulton wrote: I'd like to autom

Modifying XHTML document content

2005-05-11 Thread Sean Fulton
I'd like to automatically add an anchor to each h2 tag on a page. Has anyone tried something like this? Where is the best place to do that? Doing it in the editor won't work because different people may use different editors. Thanks, Sean ---