[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Indirection
> Can't really say what you should do as I don't understand the problem. > In particular, given that you are "generating manually" the > associations, why can't you supply more stable and memorable > id's at the > same time? > > If you do have to generate the ids from xsl then clearly you should be > getting xsl to generate the references in your assocrl elements > presumably by specifying in your source, not th eid itself > but an xpath > to select the node. The data looks like this. I've actually used the same id values this time. Sorry David. <topic id="N12345" types="wife mother"> <topname><basename>Cara</basename></topname> </topic> I have about 450 of these, generated manually This is the association <assoc type="is-married-to"> <assocrl anchrole="husband">george</assocrl> <assocrl anchrole="wife">N12345</assocrl> </assoc> I have about 60 and growing, which is generated manually. My intention is (was) to keep the associations stable, since they are manually generated, I'd simply add to them. The generation of 'topics' will be, say, weekly, hence needs to be automatic. Eventually, the two lists of <topic> <assoc> will be joined within the same file (entity inclusion) under a <topicmap> wrapper. My problem is that, as you say, the id value in topic is extremely fragile. When I manually write a reference to cara (via id N12345), I'd like some form of indirection, to make the link more robust. Is that clearer? Regards DaveP 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
|