Subject: Re: [xsl] xslt 2.0, use case wanted. From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 6 Apr 2004 10:06:07 +0100 |
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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xslt 2.0, use case wanted, Michael Kay | Thread | Re: [xsl] xslt 2.0, use case wanted, Elliotte Rusty Harol |
RE: [xsl] xerces2 Element type "xsl, Andrew Welch | Date | RE: [xsl] xslt 2.0, use case wanted, Willink, Ed |
Month |