updated examples to show generate-id that takes an argument

This commit is contained in:
kvisco%ziplink.net 2000-04-19 11:07:04 +00:00
Родитель 5fce93fa36
Коммит 6a6de818c6
2 изменённых файлов: 60 добавлений и 1 удалений

Просмотреть файл

@ -1316,7 +1316,35 @@
<B>Result:</B>
</TD>
<TD>
<FONT COLOR="blue">id134934024.0.1</FONT>
<FONT COLOR="blue">id134934984.0.1</FONT>
</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<B>Test:</B>
</TD>
<TD>&lt;xsl:value-of select="generate-id(..)"/&gt;<BR>
<B>Note:</B>
<UL>
<FONT COLOR="red">This function will generate a unique id for the parent of the current node.I don't what this will be exactly, until run-time</FONT>
</UL>
</TD>
</TR>
<TR>
<TD>
<B>Desired Result:</B>
</TD>
<TD>
<FONT COLOR="blue">id{some-number}</FONT>
<BR>
</TD>
</TR>
<TR>
<TD>
<B>Result:</B>
</TD>
<TD>
<FONT COLOR="blue">id134934984</FONT>
</TD>
</TR>
</TABLE>

Просмотреть файл

@ -1153,6 +1153,37 @@
</FONT>
</TD>
</TR>
<!-- new test -->
<TR>
<TD VALIGN="TOP"><B>Test:</B></TD>
<TD>
&lt;xsl:value-of select="generate-id(..)"/&gt;<BR />
<B>Note:</B>
<UL>
<FONT COLOR="red">
This function will generate a unique id for the parent of the current node.
I don't what this will be exactly, until run-time
</FONT>
</UL>
</TD>
</TR>
<TR>
<TD><B>Desired Result:</B></TD>
<TD>
<FONT COLOR="blue">id{some-number}</FONT><BR/>
</TD>
</TR>
<TR>
<TD><B>Result:</B></TD>
<TD>
<FONT COLOR="blue">
<xsl:value-of select="generate-id(..)"/>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>