| Line | |
|---|
| 1 | <?xml version="1.0"?> |
|---|
| 2 | |
|---|
| 3 | <!DOCTYPE xsl:stylesheet [ |
|---|
| 4 | <!ENTITY acute "'"> |
|---|
| 5 | ]> |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | <!-- used to create inter-dependencies between ARB helpfiles --> |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|---|
| 12 | version="1.0" |
|---|
| 13 | > |
|---|
| 14 | |
|---|
| 15 | <xsl:output method="text"/> |
|---|
| 16 | |
|---|
| 17 | <xsl:param name="xml"/> |
|---|
| 18 | <xsl:param name="xml_location"/> |
|---|
| 19 | |
|---|
| 20 | <xsl:template match="PAGE"> |
|---|
| 21 | <xsl:choose> |
|---|
| 22 | <xsl:when test="$xml='Xml/help_index.xml'"></xsl:when><!--skip index--> |
|---|
| 23 | <xsl:otherwise> |
|---|
| 24 | <xsl:value-of select="$xml"/> |
|---|
| 25 | <xsl:text>: </xsl:text> |
|---|
| 26 | <xsl:apply-templates/> |
|---|
| 27 | <xsl:text> |
|---|
| 28 | </xsl:text> |
|---|
| 29 | </xsl:otherwise> |
|---|
| 30 | </xsl:choose> |
|---|
| 31 | </xsl:template> |
|---|
| 32 | |
|---|
| 33 | <xsl:template match="PAGE" mode="getsource"> |
|---|
| 34 | <xsl:value-of select="@source"/> |
|---|
| 35 | </xsl:template> |
|---|
| 36 | <xsl:template match="text()|*" mode="getsource"> |
|---|
| 37 | </xsl:template> |
|---|
| 38 | |
|---|
| 39 | <xsl:template match="SUB|UP|LINK"> |
|---|
| 40 | <xsl:if test="@type='hlp'"> |
|---|
| 41 | <xsl:variable name="name"><xsl:value-of select="substring-before(@dest,'.hlp')"/></xsl:variable> |
|---|
| 42 | <xsl:variable name="destxml"><xsl:value-of select="concat($xml_location,'/',$name,'.xml')"/></xsl:variable> |
|---|
| 43 | <xsl:variable name="doc" select="document( $destxml )"/> |
|---|
| 44 | |
|---|
| 45 | <xsl:text> </xsl:text> |
|---|
| 46 | <xsl:apply-templates select="$doc/PAGE" mode="getsource"/> |
|---|
| 47 | </xsl:if> |
|---|
| 48 | </xsl:template> |
|---|
| 49 | |
|---|
| 50 | <xsl:template match="text()"> |
|---|
| 51 | </xsl:template> |
|---|
| 52 | <xsl:template match="*"> |
|---|
| 53 | <xsl:apply-templates /> |
|---|
| 54 | </xsl:template> |
|---|
| 55 | |
|---|
| 56 | </xsl:transform> |
|---|
| 57 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.