зеркало из https://github.com/mozilla/gecko-dev.git
updated examples to show generate-id that takes an argument
This commit is contained in:
Родитель
5fce93fa36
Коммит
6a6de818c6
|
@ -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><xsl:value-of select="generate-id(..)"/><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>
|
||||
<xsl:value-of select="generate-id(..)"/><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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче