Subject: Re: [xsl] Identity of Documents Puzzle From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 06 Dec 2002 20:53:58 -0500 |
My question: is there any way, other than passing in the filename of the top-level file as a parameter to the style sheet, to ensure that the node for the document as created by the initial style sheet processing is the same as one for a call to document() for the same file (it may or may not be the same filename depending on the relative locations of the files involved)? I can't think of one, but there are many subtleties of XSLT that I have yet to master.
X:\samp>type genid2.xsl <?xml version="1.0"?><!--genid2.xsl--> <!--XSLT 1.0 - http://www.CraneSoftwrights.com/training --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/"> Source: <xsl:value-of select="generate-id(.)"/> SSheet: <xsl:value-of select="generate-id(document(''))"/> genid2: <xsl:value-of select="generate-id(document('genid2.xsl'))"/> </xsl:template>
X:\samp>xt genid2.xsl genid2.xsl <?xml version="1.0" encoding="utf-8"?>
Source: N0 SSheet: N1_0 genid2: N1_0 X:\samp>saxon genid2.xsl genid2.xsl <?xml version="1.0" encoding="utf-8"?> Source: d0 SSheet: d1 genid2: d1 X:\samp>
-- Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO: - North America: Feb 3 - Feb 7,2003
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-10-1 Practical Formatting Using XSL-FO Next conference training: 2002-12-08,03-03,06
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Identity of Documents Puzzle, W. Eliot Kimber | Thread | Re: [xsl] Identity of Documents Puz, W. Eliot Kimber |
Re: [xsl] sequential navigation pro, Joerg Heinicke | Date | Re: [xsl] Identity of Documents Puz, W. Eliot Kimber |
Month |