mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 03:22:48 +08:00
Basic inter-document and external linking support.
This commit is contained in:
parent
ecf83ef955
commit
aab747108d
@ -55,6 +55,7 @@
|
|||||||
<!ATTLIST link
|
<!ATTLIST link
|
||||||
doc CDATA #IMPLIED
|
doc CDATA #IMPLIED
|
||||||
id CDATA #IMPLIED
|
id CDATA #IMPLIED
|
||||||
|
url CDATA #IMPLIED
|
||||||
>
|
>
|
||||||
|
|
||||||
<!ELEMENT list (listitem+ | (tag-name | tag-desc)+) >
|
<!ELEMENT list (listitem+ | (tag-name | tag-desc)+) >
|
||||||
|
@ -39,7 +39,14 @@ X:stylesheet {
|
|||||||
X:text{ (} !{@code} X:text{)}
|
X:text{ (} !{@code} X:text{)}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
X:template = "link[@url]" { <a href="{@url}"> !!; </a> }
|
||||||
X:template = "link[@id and not(@doc)]" { <a href="#{@id}"> !!; </a> }
|
X:template = "link[@id and not(@doc)]" { <a href="#{@id}"> !!; </a> }
|
||||||
|
X:template = "link[@doc and not(@id)]" {
|
||||||
|
<a href="{substring-before(@doc, '.xml')}.html"> !!; </a>
|
||||||
|
}
|
||||||
|
X:template = "link[@id and @doc]" {
|
||||||
|
<a href="{substring-before(@doc, '.xml')}.html#{@id}"> !!; </a>
|
||||||
|
}
|
||||||
X:template = "link" { <u> !!; </u> }
|
X:template = "link" { <u> !!; </u> }
|
||||||
|
|
||||||
X:template = "list[@type='bullet']" { <ul> !!; </ul> }
|
X:template = "list[@type='bullet']" { <ul> !!; </ul> }
|
||||||
|
Loading…
Reference in New Issue
Block a user