[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Generating numbering for cross-references (LONG)
At 18:06 17-10-2001, Peter Flynn wrote:
In a typical research document, an author needs to make many cross-references. XML provides ID and IDREF attributes for this purpose, and lots of DTDs are written to make use of them. I'm having a problem instatiating three classes of numeric cross-reference in XSLT, namely: Does this *need* to happen in a single XPath? The way I usually handle this is: <xsl:template match="ref"> <xsl:apply-templates select="id(@to)" mode="ref"/> </xsl:template> <xsl:template match="table" mode="ref"> <xsl:text>Table </xsl:text> <xsl:number/> </xsl:template> If you *have* to do it in XPath, well... you're headed in the right direction, but I'm not entirely sure it's possible. -Chris -- Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc. DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training <URL: http://www.hmmci.com/ > <URL: http://crism.maden.org/consulting/ > PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA 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
|