Re: Question
Subject: Re: Question From: Bovone Stefano <Stefano.Bovone@xxxxxxxx> Date: Thu, 4 Feb 1999 09:53:23 +0100 |
Title: Re: Question
In IE 5.0 beta 2 you may try:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="">
<CLASS>
<METHOD name="foo">ste</METHOD>
<METHOD name="bar">...</METHOD>
<METHOD name="baz">...</METHOD>
<DESCRIPTION><METHODREF name="foo"/>is very fooey</DESCRIPTION>
</CLASS>
with the stylesheet:
?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns:html="http://www.w3.org/TR/REC-html40"
result-ns=""
language="JScript">
<xsl:template macth="/">
<xsl:apply-templates select="/CLASS/DESCRIPTION/METHODREF"/>
</xsl:template>
<xsl:template match="CLASS/DESCRIPTION/METHODREF">
<HTML>
<BODY>
<xsl:eval>search(this)</xsl:eval>
</BODY>
</HTML>
</xsl:template>
<xsl:script language="JScript">
function search(node) {
var tmp, tmp1, tmp2;
tmp = node.attributes.item(0).nodeValue;
tmp1 = node.ownerDocument.selectSingleNode('//METHOD[@name=\'foo\']');
return (tmp1.firstChild.nodeValue);
}
</xsl:script>
</xsl:stylesheet>
Bye. Stefano Bovone
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Question, Paul Prescod | Thread | RE: Question, Vun Kannon, David |
I need < - I get <, Oren Ben-Kiki | Date | RE: How do I pick the first three e, Nic Williams |
Month |