Subject: Re: [xsl] Reusing XPath statements (defining once and only once) From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 17 Apr 2003 18:16:05 -0400 |
QUESTION: The stylesheet works, but the XPath expressions bother me. I would like to declare this XPath once:
@* | * | comment() | processing-instruction() | text()
and refer to it elsewhere. I tried to make it a variable, but it doesn't seem to work.
<xsl:choose> <xsl:when test="Context[@path='/axis']" /> <xsl:otherwise> <Context debug="0" docBase="c:\xml-axis-10\webapps\axis" path="/axis" reloadable="true" /> </xsl:otherwise> </xsl:choose>
<xsl:if test="not(Context[@path='/axis'])"> <Context debug="0" docBase="c:\xml-axis-10\webapps\axis" path="/axis" reloadable="true" /> </xsl:if>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Reusing XPath statements , Michael Kay | Thread | RE: [xsl] Reusing XPath statements , Michael Kay |
RE: [xsl] How to: Returning HTML El, Michael Kay | Date | [xsl] occurence of a word, Leena Kulkarni |
Month |