This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

On the XPath to my editor....


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]