This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: use of ID and IDREF pb


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]