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]

resolving IDREF in XSLT


Hi everybody,
is there any way to resolve an IDREF attribute by XSLT in different files? The problem is this: I have two Elements: abbrevation and longform, saved in a file called abbr_file.xml. This file is called per entity reference from
the master file, called main.xml. In this master file's dtd is the
element abbrevation defined as following:
<!ELEMENT abbrevation (%text;)*>
<!ATTLIST abbrevation 
  longform IDREF #REQUIRED
>

The file abbr_file.xml uses another dtd-subset - abbrevations.ent
(refered with an entity in the master dtd). The element longform is
defined:
<!ELEMENT longform (%text;)*>
<!ATTLIST longform
   id ID #REQUIRED
>

My goal is to perform a translation to HTML in which the abbrevation
element is transformed to <a title="CONTENT OF LONGFORM">CONTENT OF
ABBREVATION</a>, causing to popup a tooltip with the longform. The two
problems are: the element longform is just called per reference, and
if i try to transform the main.xml file saxon won't use the
abbr_file.xml. The second is: how do I link the two elements in
different files to get the information of element longform?
If anyone could help I would be very thankful.
Thanks a lot for answering.
Maik Stührenberg

______________________________________________________________________________
Ferienklick.de - Urlaub ist schoen!
Hier geht's zum Traumstrand: http://ferienklick.de/?PP=2-5-100-105-13


 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]