|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Implementing XPointer Resolution With saxon:evalua
Hi Eliot:
It'd be eminently helpful to have your XML here, but I see some issues
already with some of the things you've done:
<xsl:text>ID of ultimate target: </xsl:text>
<xsl:variable name="members">
<xsl:call-template name="resolve-xpointer"/>
</xsl:variable>
<xsl:for-each select="$members">
In this case, your variable "members" is calling a specific template.
In this case, the result is an RTF, and therefore you cannot do a
for-each. You will need to use your favorite RTF->Nodeset function to
be able to iterate through this.
For your other question:
<xsl:for-each select="$direct-result">
<xsl:choose>
<xsl:when test="xindr:indirector">
<!-- Never gets here -->
The reason for this one is that the _context_ node as you indicate at
the when element is xindr:indirector. Keep in mind that your test here
translates to:
<xsl:when test="child::xindr:indirector">
Therefore it is looking to see if your xindr:indirector element has a
child which is also xindr:indirector. Probably what you want is:
<xsl:when test="self::xindr:indirector">
Otherwise, please pass a few more details. Looks like you're doing
interesting things!
Dion
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








