xsl-list
[Top] [All Lists]

Re: xslt 2.0, use case wanted.

2004-04-06 02:06:07

  I'm concerned about processing a source document, from, say,
  /part/book/chapter/sect1[3]/sect2[4]

I can't see any need to have any new syntax to specify such a starting
node (The facility that it is set outside the stylesheet was already in
XSLT1) IF you need this set in the stylesheet just go

<xsl:template match="/">
 <xsl:apply-templates select="/part/book/chapter/sect1[3]/sect2[4]"/>


which has the same effect in a much more obvious way.

However I _could_ see some use in being able to specify the named
starting template from within teh stylesheet. If you have something like
the "knights tour" stylesheet that computes teh same outut given any
input it is an advantage in xslt2 not to have to give any input at all,
but it would be even better if you could specify in a portable way that
no input was needed and that it should start at teh main named template.

David


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


<Prev in Thread] Current Thread [Next in Thread>