Differences between revisions 11 and 12
Revision 11 as of 2008-02-24 13:26:52
Size: 3347
Editor: OsamuAoki
Comment:
Revision 12 as of 2008-02-24 13:34:44
Size: 2513
Editor: OsamuAoki
Comment:
Deletions are marked like this. Additions are marked like this.
Line 79: Line 79:
All lower cases and no spaces. For longer reference name, it trim center parts. See HTML how they work.

The following is XSLT code used now.

{{{
<xsl:variable name="uletters">ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 !#$%()=-~^|\/+*,.?;:@`&quot;&apos;&amp;&gt;&lt;</xsl:variable>
<xsl:variable name="lletters">abcdefghijklmnopqrstuvwxyzabcdefghij</xsl:variable>
<!-- I will use max 32 characters for href references and id references -->

....

        <xsl:attribute name="url">
          <xsl:value-of select="'@@@amp@@@'"/>
          <xsl:choose>
            <xsl:when test="string-length(translate(.,$uletters,$lletters)) &lt;= 32">
              <xsl:value-of select="translate(.,$uletters,$lletters)"/>
            </xsl:when>
            <xsl:otherwise>
              <xsl:value-of select="concat(substring(translate(.,$uletters,$lletters),1,16),substring(translate(.,$uletters,$lletters), string-length(translate(.,$uletters,$lletters))-15,16))"/>
            </xsl:otherwise>
          </xsl:choose>
          <xsl:value-of select="';'"/>
        </xsl:attribute>


}}}
 * All characters converted to lower cases.
 * 0-9 converted to a-j
 * Drop all special characters and spaces.
 * For longer reference name, it trim center parts and make it first and last 16 characters each.
 * See HTML link name as qick check after generation.

Do not use Edit(GUI) button.

?TableOfContents(4)

Copyright 2007 Osamu Aoki GPL, (Please agree to GPL, GPL, and any GPL compatible with DSFG if you update any part of wiki page)

?Anchor(topOfPage)

Test page

Data for XSLT conversion check

Here is table

Always assumes the first line is <title>, the second line is <thead> and the rest lines are <tbody> <row>s. (hello)

Example of table 1

TITLE1

TITLE2

DATA 11

DATA 12

DATA 21

DATA 22

Here are examples of Wiki marking used.

/!\  /!\  for "Warning" (alert)

<!>  <!>  for "Caution" (attention)

{*}  {*}  for "Important" (star_on) "rslash-n": "\n"

'rslash-n': '\n'

{i}  {i}  for "Tip" (icon-info)

(!)  (!)  for "Note" (idea)

{OK}  {OK}  for "Note" (thumbs-up)

(./)  (./)  for "Note" (checkmark)

line1 starting line break examples line2 w/o space from previous line

line3 w 1 line space from previous line

line2 w 2 space from previous line

line2 w 3 space from previous line line with ampersand & &

Data for popcon data and package size

The following packages are refered in the main text.

List of additional packages for popcon and package size

1

2

3

package

popcon

package size

dummy

gksu

-

-

-

screen

-

-

-

rutebook

-

-

-

These entry let you access these values in main text of generated html.

Escape confusion

code

For using " \n ", you need to have space in source to work around bug in conversion.

srslash-n:  \n rslash-ns: \n  rslash-n: \n : this

can be reffered as @{@internallinks@}@ which will create correct reference in HTML.

  • All characters converted to lower cases.
  • 0-9 converted to a-j
  • Drop all special characters and spaces.
  • For longer reference name, it trim center parts and make it first and last 16 characters each.
  • See HTML link name as qick check after generation.

Do not use " [[Anchor(internalLinks)]] " for now. (It may be a good idea but you need to do it for entire document.)

This feature is not supported by the XML conversion tool now.