[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

another xpath question

Subject: another xpath question
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 7 Jan 2002 15:52:44 -0000
xpath xref
I have another xpath question for you :)

If I have the following simplified XML snippet:

<xref xrefid="AA140110301W10AA" xidtype="TEXT"/>
  Renew LP Piston Seal (Fig 5.5.1
  <xref xrefid="F5.5.1" xidtype="FIGURE">) </xref>

and the following xsl templates:

<xsl:template match="xref">

<xsl:template match="title">
  <xsl:value-of select="."/>

I get the following output:

Renew LP Piston Seal (Fig 5.5.1)

It matches the first xref correctly, but not the second xref that is within
the <title> tags.  If I modify the title template to:

<xsl:template match="title">
  <xsl:value-of select="."/>

I get the output:

Renew LP Piston Seal (Fig 5.5.1)

Whereas the output I want is

Renew LP Piston Seal (Fig 5.5.1(xref))   //the (xref) will be a graphic...

Why is it moving the (xref) outside of the (fig) brackets??  And, why will
it not match the inner <xref> without calling apply-templates?  I thought it
would look for a template match whenever it encountered a tag.

thanks in advance


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.