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

Re: use of ID and IDREF pb

Subject: Re: use of ID and IDREF pb
From: Philippe Delrieu <phdelrie@xxxxxxxxx>
Date: Thu, 10 Feb 2000 09:12:55 +0100
idref parsers
I made some test an the problem occure when the element with ID attribut has
other atttribut.
exemple :
<IDELEMENT titre="toto" id="l1">data</IDELEMENT>
<IDREFELEMENT attrib="titi" idref="l1"/>
does not work (id() return toto) but
<IDELEMENT id="l1">data</IDELEMENT>
<IDREFELEMENT attrib="titi" idref="l1"/>
works (id() return data).
I don't if it's a bug of my parser (xalan) or in the spec of XML, XSL.
Has anybody an idear ?

Thanks

Philippe Delrieu

Kay Michael wrote:

> > In my output HTML page I want to replace the ResourceRef element with
> > the content of the Resource element. I use the id(@refid) function to
> > apply the Resource template, but it didn't work correctly.
> > The Resource template is not call.
>
> The most likely explanation is that the attribute named "id" is not of type
> ID. Check that it is declared as an ID attribute in the DTD, and then try it
> with a different parser, just in case (some older parsers, e.g. early
> versions of xp, don't report the attribute type).
>
> Mike Kay
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


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.