- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
2 Posted Topics
hello, there is a main xslt-script with a "do_this_and_that"-template. in an from the main included script ther is such "do_this_and_that"-template too. is it possible to call the "do_this_and_that"-template from the main by this included "do_this_and_that"-template? many thanks for your answer(s)
Please have a look to the code like this: <?xml version="1.0" encoding="UTF-8"?> <!-- Header:$Id: shpmnt05_prepare.xsl,v 1.1 2009-09-09 12:57:09 hs Exp $ --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:key name="uniq" match="/demo/*" use="name()"/> <xsl:template match="/"> <xsl:for-each select="/*"> <xsl:copy> <xsl:for-each select="/demo/*[generate-id(.) = generate-id(key('uniq', name()))]"> <xsl:copy> <count> <xsl:value-of select="count(../*[name()= current()/name()])"/> </count> </xsl:copy> </xsl:for-each> </xsl:copy> </xsl:for-each> </xsl:template> …
The End.
hschroeter