Subject: Re: How is this part of the XSLT specification to be interpreted? From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 21 Jun 2000 17:04:31 +0100 (BST) |
> Building on David Carlisles stylesheet, to make it a *bit* more > obvious what's going on :-) But youve made it more crypticly self referential, haven't you? <xsl:template match="main:xxx"> <doc:template> <xsl:fallback><doc> This template matches the "<xsl:value-of select="name()"/>" element.</doc> Here you are using embedded XSL to within the documentation of the XSL, furthermore since the XSL refers to the source document you can't get a readable vesrion of the documentation without actually running the stylesheet on the source???? Wouldn't it be clearer to have This template matches the xxx element from the namespace associated with main: That way the pretty printer only needs the _stylesheet_ as input, not the stylesheet and the source document. > I think I'd rather see some java class that processed stuff in the > doc namespace. Then at least it would look better. why Java? XSLT seems the most obvious implementation language. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: How is this part of the XSLT sp, Pawson, David | Thread | Re: How is this part of the XSLT sp, David Carlisle |
Re: How is this part of the XSLT sp, Mike Brown | Date | Re: How is this part of the XSLT sp, David Carlisle |
Month |