This was proposed long ago by Jeni. Here she explains how to use a
combination of "extension-element-prefixes" together with xsl:fallback in
order to avoid copying the doc:node as a literal result element:
http://sources.redhat.com/ml/xsl-list/2002-08/msg00644.html
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
"Prakash, Mayank" <Mayank(_dot_)Prakash(_at_)FMR(_dot_)COM> wrote in message
news:13619E2D7C7ED748ADD005E8D6C748F304D71B19(_at_)MSGBOS684NTS(_dot_)fmr(_dot_)com(_dot_)(_dot_)(_dot_)
Doesn't this break the stylesheet? If the annotations are outside of a
template, then it is incorrect XSLT syntax, and if inside, they will
get copied to the output? Or am I missing something?
Thanks.
Mayank.
-----Original Message-----
From: Michael Kay [mailto:mhk(_at_)mhk(_dot_)me(_dot_)uk]
Sent: Thursday, April 24, 2003 11:34 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] XSLDOC
I have tried to create a tool to document XSL.
All the xsl documents will have tag commands like this:
<!--(_at_)overview This xsl page is used to calculate the
factorial of a given number -->
Horrible! Why invent your own markup syntax instead of using XML?
Use something like:
<doc:overview>This xsl page is used to calculate the
factorial of a given number</doc:overview>
Then you can use XSLT to manipulate the documentation.
Other people have done work on stylesheet annotation, I'm sure there's
something you can re-use but I can't point you to it.
Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list