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

RE: Applied attribute error

Subject: RE: Applied attribute error
From: "JS rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Mon, 24 Jan 2011 09:50:35 +0530
RE:  Applied attribute error
Thanks Imsieke, what a solution!!! 

-----Original Message-----
From: Imsieke, Gerrit, le-tex [mailto:gerrit.imsieke@xxxxxxxxx] 
Sent: Saturday, January 22, 2011 6:58 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Applied attribute error



On 22.01.2011 07:03, JS rawat wrote:
> Hi Team,
> Can anyone help me to find out the error(s) I am doing in the below 
> XSL. I want to do it by variable methodology by which i am getting<xref
ref=""/>.
>

This is because when processing @rid, the document being processed is the
variable $incidence whose root element is sc2. Since there is no fig with,
e.g., @id='FileName_fig1' below sc2, key() returns the empty sequence (in
XSLT2 terms).

If you are using XSLT2, you may introduce a global variable
   <xsl:variable name="root" select="/" as="document-node(element(doc))" />
and replace
   key('ids',.)
with
   key('ids',., $root)

My general impression is that your stylesheet looks more verbose than
necessary, but I didn't look into this very thoroughly.

-Gerrit

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.