|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Howto generate a list xpath queries that are used with
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








