This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How is this part of the XSLT specification to be interpreted?



> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]