[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

Subject: 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
xpath howto
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.