This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
On the XPath to my editor....
- From: "Mark R. Diggory" <mdiggory at latte dot harvard dot edu>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 16 May 2002 21:00:03 -0400
- Subject: [xsl] On the XPath to my editor....
- Reply-to: xsl-list at lists dot mulberrytech dot com
Well, I've made interesting progress on my JSP/XSL XML editor interface.
However, I'm at a point where I'm trying to reference an element that is
defined in an XPath string. My Schemas referenced in a xsl:param. Anyone
got some tips on how I might do this?
Example:
<xsl:param name="xsd-path">/xs:schema[1]/xs:element[5]</xsl:param>
<xsl:param name="schema" select="document('loc_of_schema')"/>
<xsl:apply-templates select="$schema/*[saxon:evaluate($xsd-path)]"/>
...
But what I end up getting is all the child elements of the xs:schema
element.
-Thanks for any advice,
Mark
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list