[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] stylesheets for links
Hi, I've got a working stylesheet, thanks to the help I received last week. I'm having a problem generating links, though. My XML document, a TEI-style transcription of a printed text, has anchor elements where footnotes are indicated in the original (i.e. where an asterisk appears) whose corresp= values point to note elements with corresponding id= values in another part of the doc. I wanted to do something like: <xsl:template match="anchor[@id='foo']"> <A href="TEI.2/text/hyperDiv/note[@id='foo']" target="blank">*</A> </xsl:template> Ideally, I don't want to wind up making separate docs out of each note, or changing the doc itself (to add A elements). But even if I did, I can't find a way to read the id value and insert it into the path, since <xsl:value-of> is an element and href= is an attribute. I also don't want to define a separate template for each note, but I haven't found an operator that will let me quote back a value. Am I missing something obvious here? Can anyone help me? For reference, the files can be found at: http://www.stg.brown.edu/~goodall/gottsched.01briefe.xml and [same directory]/trial-style.xsl Thanks! Cathy 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
|