At 2006-05-12 16:45 -0400, Rick Quatro wrote:
I have this in a document called filename.xml.
<xref href = "usa" outputclass = "Text and Page"/>
This is the output I want.
<xref href = "filename.xml#usa" outputclass = "Text and Page"/>
Is there way to pick up the base name of the XML document that I am
transforming so I can change the href attribute?
Not in XSLT 1.0 ... the typical approach is to duplicate the input
filename at invocation time in a passed parameter and then use the
passed parameter in your stylesheet logic.
I hope this helps.
. . . . . . . . Ken
--
Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16
Also for XSLT/XSL-FO training: Minneapolis, MN 2006-07-31/08-04
Also for XML/XSLT/XSL-FO training:Birmingham,England 2006-05-22/25
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--