Subject: [xsl] Howto generate a list xpath queries that are used within a template? From: "Joren Crauwels" <joren.crauwels@xxxxxxxxxxxxxxx> Date: Sun, 22 Aug 2004 15:25:28 +0200 |
Hi, for a school project i have to generate a html file containing metadata about an xslt file. So i have a file xslt2html.xsl that has can do this. A thing that has to be possible is to generate a list of all the templates and for each template i have to generate more detailed information. t has to be possible to generate a list of used xpath queries within a template. For the moment, i use a template like this to do that: <xsl:template name="generateUsedXpathQueries"> <xsl:variable name="bla1" select="'joren'"/> <xsl:choose> <xsl:when test="@select"> <li><xsl:value-of select="@select"/></li> </xsl:when> <xsl:when test="@test"> <li><xsl:value-of select="@test"/></li> </xsl:when> </xsl:choose> </xsl:template> The problem with this solution is that i will miss xpath queries that arent used in a select or test attribute. Does anyone know how i can generate a list that doesnt leave any xpath queries out? is there a way to check if the value of an attribute is a xpath-query or not? This is my first post so i hope it does reach someone :) Greetz, Joren
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Fw: Converting to differe, Michael Kay | Thread | Re: [xsl] Howto generate a list xpa, cking |
Re: [xsl] Fw: Converting to differe, Mike Trotman | Date | RE: [xsl] limit number of row retur, Vasu Chakkera |
Month |