I've stripped out the content and replaced with <xsl:if gt;
etc.
The values for this content are taken from XML files which have the corresponding XML element hierachy, e.g
<xsl:value-of select="TopoixHelpDocument/Meta/title"/>xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Microsoft.Help.ContentType" content="Reference" >meta>
<meta name="Microsoft.Help.Locale" content="en-us" >meta>
<meta name="Microsoft.Help.TopicLocale" content="en-us" >meta>
<meta name="Microsoft.Help.Category" content="TopoixApiHelp3" >meta>
<meta name="SelfBranded" content="false" >meta>
<link href="stylesheets/CSharp.css" type="text/css" rel="Stylesheet" />
<title>
<xsl:value-of select="TopoixHelpDocument/Meta/title"/>
title>
<xsl:variable name="metaTitleVar">
<xsl:value-of select="TopoixHelpDocument/Meta/metaTitle"/>
xsl:variable>
<meta name="Title" content="{$metaTitleVar}" >meta>
<xsl:variable name="metaIDVar">
<xsl:value-of select="TopoixHelpDocument/Meta/metaID"/>
xsl:variable>
<meta name="Microsoft.Help.Id" content="{$metaIDVar}">meta>
<xsl:variable name="metaParentVar">
<xsl:value-of select="TopoixHelpDocument/Meta/metaParent"/>
xsl:variable>
<meta name="Microsoft.Help.TocParent" content="{$metaParentVar}">meta>
<xsl:variable name="metaKeyword1Var">
<xsl:value-of select="TopoixHelpDocument/Meta/metaKeyword1"/>
xsl:variable>
<meta name="Microsoft.Help.Keywords" content="{$metaKeyword1Var}" >meta>
<xsl:variable name="metaKeyword2Var">
<xsl:value-of select="TopoixHelpDocument/Meta/metaKeyword2"/>
xsl:variable>
<meta name="Microsoft.Help.Keywords" content="{$metaKeyword1Var}" >meta>
<xsl:variable name="metaF1Var">
<xsl:value-of select="TopoixHelpDocument/Meta/metaF1"/>
xsl:variable>
<meta name="Microsoft.Help.F1" content="{$metaF1Var}" >meta>
<xsl:variable name="metaTocOrderVar">
<xsl:value-of select="TopoixHelpDocument/Meta/metaTocOrder"/>
xsl:variable>
<meta name="Microsoft.Help.TocOrder" content="{$metaTocOrderVar}" >meta>
head>
<body class="primary-mtps-offline-document">
<div class="topic">
<div class="majorTitle">
<xsl:value-of select="TopoixHelpDocument/HelpBody/majorTitle"/>
div>
<div class="title">
<xsl:value-of select="TopoixHelpDocument/HelpBody/title"/>
div>
<xsl:variable name="feedbackLinkVar">
<xsl:value-of select="TopoixHelpDocument/HelpBody/feedbackLink"/>
xsl:variable>
<div class="OH_feedbacklink">
<a href="mailto:support@avaeon.com?subject=Documentation Feedback:{$feedbackLinkVar}">Send commentsa>
div>
<div id="mainSection">
<div id="mainBody">
<p>
p>
<div>
<div class="summary">
<p>
<xsl:copy-of select="TopoixHelpDocument/HelpBody/summary/summaryText"/>
p>
div>
div>
<p>
p>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax">
<CollapsibleArea runat="server" Expanded="1" Title="Syntax" xmlns="http://msdn2.microsoft.com/mtps">
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/codeSnippet">
<a id="syntaxToggle" xmlns="http://www.w3.org/1999/xhtml">
a>
<CodeSnippet runat="server" Language="Gravity" DisplayLanguage="Gravity" ContainsMarkup="false" EnableCopyCode="false">
<xsl:copy-of select="TopoixHelpDocument/HelpBody/syntax/codeSnippet"/>
CodeSnippet>
xsl:if>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/properties">
<CollapsibleArea runat="server" Expanded="1" Title="Properties" xmlns="http://msdn2.microsoft.com/mtps">
<a id="propertyTableToggle" xmlns="http://www.w3.org/1999/xhtml">
a>
<table id="memberList1" class="members" xmlns="http://www.w3.org/1999/xhtml">
<tr>
<th class="iconColumn">
th>
<th class="nameColumn">Nameth>
<th class="descriptionColumn">Descriptionth>
tr>
<xsl:for-each select="TopoixHelpDocument/HelpBody/syntax/properties/property">
<xsl:variable name="hierachyVar">
<xsl:value-of select="hierachy"/>
xsl:variable>
<xsl:variable name="hierachyImageVar">
<xsl:if test="$hierachyVar='public;declared;'">
<xsl:value-of select="'images/IC74937'"/>
xsl:if>
<xsl:if test="$hierachyVar='public;inherited;'">
<xsl:value-of select="'images/IC100399'"/>
xsl:if>
xsl:variable>
<xsl:variable name="hierachyImageAltVar">
<xsl:if test="$hierachyVar='public;declared;'">
<xsl:value-of select="'Public Property'"/>
xsl:if>
<xsl:if test="$hierachyVar='public;inherited;'">
<xsl:value-of select="'Public Inherited Property'"/>
xsl:if>
xsl:variable>
<tr data="{$hierachyVar}">
<td>
<img class="mtps-img-src" alt="{$hierachyImageAltVar}" src="{$hierachyImageVar}" />
td>
<td>
<xsl:variable name="linkUrlVar">
<xsl:value-of select="linkUrl"/>
xsl:variable>
<a class="mtps-internal-link" href="{$linkUrlVar}">
<xsl:value-of select="linkUrlName"/>
a>
td>
<td>
<span>
<xsl:copy-of select="linkUrlDescription"/>
span>
td>
tr>
xsl:for-each>
table>
<a href="#mainBody" xmlns="http://www.w3.org/1999/xhtml">Topa>
CollapsibleArea>
xsl:if>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/settings">
<CollapsibleArea runat="server" Expanded="1" Title="Settings" xmlns="http://msdn2.microsoft.com/mtps">
<a id="propertyTableToggle" xmlns="http://www.w3.org/1999/xhtml">
a>
<table id="memberList1" class="members" xmlns="http://www.w3.org/1999/xhtml">
<tr>
<th class="iconColumn">
th>
<th class="nameColumn">Nameth>
<th class="descriptionColumn">Descriptionth>
tr>
<xsl:for-each select="TopoixHelpDocument/HelpBody/syntax/settings/setting">
<xsl:variable name="hierachyVar">
<xsl:value-of select="hierachy"/>
xsl:variable>
<xsl:variable name="hierachyImageVar">
<xsl:if test="$hierachyVar='public;declared;'">
<xsl:value-of select="'images/IC74937'"/>
xsl:if>
<xsl:if test="$hierachyVar='public;inherited;'">
<xsl:value-of select="'images/IC100399'"/>
xsl:if>
xsl:variable>
<xsl:variable name="hierachyImageAltVar">
<xsl:if test="$hierachyVar='public;declared;'">
<xsl:value-of select="'Public Setting'"/>
xsl:if>
<xsl:if test="$hierachyVar='public;inherited;'">
<xsl:value-of select="'Public Inherited Setting'"/>
xsl:if>
xsl:variable>
<tr data="{$hierachyVar}">
<td>
<img class="mtps-img-src" alt="{$hierachyImageAltVar}" src="{$hierachyImageVar}" />
td>
<td>
<xsl:variable name="linkUrlVar">
<xsl:value-of select="linkUrl"/>
xsl:variable>
<a class="mtps-internal-link" href="{$linkUrlVar}">
<xsl:value-of select="linkUrlName"/>
a>
td>
<td>
<span>
<xsl:copy-of select="linkUrlDescription"/>
span>
td>
tr>
xsl:for-each>
table>
<a href="#mainBody" xmlns="http://www.w3.org/1999/xhtml">Topa>
CollapsibleArea>
xsl:if>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/events">
<CollapsibleArea runat="server" Expanded="1" Title="Events" xmlns="http://msdn2.microsoft.com/mtps">
<a id="eventTableToggle" xmlns="http://www.w3.org/1999/xhtml">
a>
<table id="memberList3" class="members" xmlns="http://www.w3.org/1999/xhtml">
<tr>
<th class="iconColumn">
th>
<th class="nameColumn">Nameth>
<th class="descriptionColumn">Descriptionth>
tr>
<xsl:for-each select="TopoixHelpDocument/HelpBody/syntax/events/event">
<xsl:variable name="hierachyVar">
<xsl:value-of select="hierachy"/>
xsl:variable>
<tr data="{$hierachyVar}">
<td>
<img class="mtps-img-src" alt="Public event" src="images/IC90369" />
td>
<td>
<xsl:variable name="linkUrlVar">
<xsl:value-of select="linkUrl"/>
xsl:variable>
<a class="mtps-internal-link" href="{$linkUrlVar}">
<xsl:value-of select="linkUrlName"/>
a>
td>
<td>
<span>
<xsl:copy-of select="linkUrlDescription"/>
span>
td>
tr>
xsl:for-each>
table>
<a href="#mainBody" xmlns="http://www.w3.org/1999/xhtml">Topa>
CollapsibleArea>
xsl:if>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/parameters">
<div id="parameters" xmlns="http://www.w3.org/1999/xhtml">
<h4 class="subHeading">Parametersh4>
<xsl:for-each select="TopoixHelpDocument/HelpBody/syntax/parameters/parameter">
<dl>
<dt>
<span class="parameter">
<xsl:value-of select="name"/>
span>
dt>
<dd>
Type:
<xsl:variable name="typeLinkVar">
<xsl:value-of select="typeLink"/>
xsl:variable>
<a class="mtps-internal-link" href="{$typeLinkVar}" >
<xsl:value-of select="typeLinkNameSpace"/>
<LanguageSpecificText runat="server" devLangcs="." devLangvb="." devLangcpp="::" devLangnu="." xmlns="http://msdn2.microsoft.com/mtps">.LanguageSpecificText>
<xsl:value-of select="typeName"/>
a>
<br/>
<span>
<xsl:value-of select="typeText"/>
<br />
span>
dd>
dl>
xsl:for-each>
div>
xsl:if>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/return">
<div id="returns" xmlns="http://www.w3.org/1999/xhtml">
<h4 class="subHeading">Return Valueh4>Type:
<xsl:variable name="returnTypeLinkVar">
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/return/typeLink"/>
xsl:variable>
<a class="mtps-internal-link" href="{$returnTypeLinkVar}" >
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/return/typeNameSpace"/>
<LanguageSpecificText runat="server" devLangcs="." devLangvb="." devLangcpp="::" devLangnu="." xmlns="http://msdn2.microsoft.com/mtps">.LanguageSpecificText>
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/return/typeName"/>
a>
<br/>
<span>
<span>
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/return/typeDescription"/>
<span class="parameter">
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/return/typeVar"/>
span>.
span>
<br/>
<div class="caption">
div>
<div class="tableSection">
<table>
<tr>
<th>
<p>Return Value p>
th>
<th>
<p>Description p>
th>
tr>
<tr>
<td>
<p>
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/return/value"/>
p>
td>
<td>
<p>
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/return/description"/>
<span class="parameter">
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/return/name"/>
span>.
p>
td>
tr>
table>
div>
span>
div>
xsl:if>
<br xmlns="http://www.w3.org/1999/xhtml"/>
CollapsibleArea>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/exceptions">
<CollapsibleArea runat="server" Expanded="1" Title="Exceptions" xmlns="http://msdn2.microsoft.com/mtps">
<a id="ddueExceptionsToggle" xmlns="http://www.w3.org/1999/xhtml">
a>
<div class="tableSection" xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr>
<th class="exceptionNameColumn">Exceptionth>
<th class="exceptionConditionColumn">Conditionth>
<th class="exceptionConditionColumn">Descriptionth>
tr>
<xsl:for-each select="TopoixHelpDocument/HelpBody/syntax/exceptions/exception">
<tr>
<td>
<span>
<xsl:variable name="typeLinkVar">
<xsl:value-of select="typeLink"/>
xsl:variable>
<a class="mtps-internal-link" href="{$typeLinkVar}" >
<xsl:value-of select="name"/>
a>
span>
td>
<td>
<p>
<span class="parameter">
<xsl:value-of select="parameter/value"/>
span> <xsl:value-of select="parameter/text"/>
<span>
<xsl:variable name="typeLinkVar">
<xsl:value-of select="parameter/typeLink"/>
xsl:variable>
<a class="mtps-internal-link" href="{$typeLinkVar}" >
<xsl:value-of select="parameter/typeName"/>
a>
span>
p>
td>
<td>
<p>
<xsl:value-of select="description"/>
p>
td>
tr>
xsl:for-each>
table>
div>
CollapsibleArea>
xsl:if>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/remarks">
<CollapsibleArea runat="server" Expanded="1" Title="Remarks" xmlns="http://msdn2.microsoft.com/mtps">
<a id="remarksToggle" xmlns="http://www.w3.org/1999/xhtml">
a>
<p xmlns="http://www.w3.org/1999/xhtml">
<xsl:copy-of select="TopoixHelpDocument/HelpBody/syntax/remarks/text"/>
p>
CollapsibleArea>
xsl:if>
<xsl:if test="TopoixHelpDocument/HelpBody/syntax/example">
<CollapsibleArea runat="server" Expanded="1" Title="Examples" xmlns="http://msdn2.microsoft.com/mtps">
<a id="exampleToggle" xmlns="http://www.w3.org/1999/xhtml">
a>
<p xmlns="http://www.w3.org/1999/xhtml">
The following code example demonstrates the
<span>
<xsl:variable name="exampleLinkVar">
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/example/link"/>
xsl:variable>
<a class="mtps-internal-link" href="{$exampleLinkVar}" >
<xsl:value-of select="TopoixHelpDocument/HelpBody/syntax/example/linkText"/>
a>
span> method.
p>
<div id="snippetGroup" xmlns="http://www.w3.org/1999/xhtml">
<CodeSnippet EnableCopyCode="true" runat="server" Language="Gravity" ContainsMarkup="false" DisplayLanguage="Gravity" xmlns="http://msdn2.microsoft.com/mtps">
<xsl:copy-of select="TopoixHelpDocument/HelpBody/syntax/example/codeSnippetFull"/>
CodeSnippet>
div>
CollapsibleArea>
xsl:if>
xsl:if>
<xsl:if test="TopoixHelpDocument/HelpBody/seeAlsos">
<CollapsibleArea runat="server" Expanded="1" Title="See Also" xmlns="http://msdn2.microsoft.com/mtps">
<a id="seeAlsoToggle" xmlns="http://www.w3.org/1999/xhtml">
a>
<h4 class="subHeading" xmlns="http://www.w3.org/1999/xhtml">Referenceh4>
<xsl:for-each select="TopoixHelpDocument/HelpBody/seeAlsos/seeAlso">
<div class="seeAlsoStyle" xmlns="http://www.w3.org/1999/xhtml">
<span>
<xsl:variable name="seeAlsoLinkVar">
<xsl:value-of select="link"/>
xsl:variable>
<a class="mtps-internal-link" href="{$seeAlsoLinkVar}" >
<xsl:value-of select="text"/>
a>
span>
div>
xsl:for-each>
CollapsibleArea>
xsl:if>
div>
div>
div>
body>
html>
xsl:template>
xsl:stylesheet>
12 comments:
Very informative and impressive article. unique information.
I am feeling very fresh and comfortable after reading you article. Nice work and keep doing well.
Wow, it is really fantastic. I have used it. It is looking so cute. Love your blog.Best wishes for you future blogging career. Thanks
It is a very interesting topic that you’ve written here.
The truth is that I’m really related to this, and I think this is a good opportunity to learn more about it.
Nice information, many thanks to the author. It is incomprehensible to me now, but in general,
The usefulness and significance is overwhelming.
Thanks again and good luck
Nice post love your blog.This blog is awesome full of use full information that i was in dire need of. Thanks for this post. Keep it up.
Very informative and impressive article. unique information
Nice information, many thanks to the author. It is incomprehensible to me now, but in general,
The usefulness and significance is overwhelming.
Thanks again and good luck!
Wow, it is really fantastic. I have used it. It is looking so cute. Love your blog.Best wishes for you future blogging career. Thanks
Hello,
Very nice post. I like your blogging techniques and have bookmarked this blog as found it very informative. Keep it up.
I want to thank you for the great post. I am happy to have found this site and will read more when I get a chance.
Best Hotel in Ranchi Budget hotels in Ranchi Cheap Hotel Rooms in Ranchi Economy hotels in Ranchi Luxury Hotels in Ranchi Restaurant in Ranchi Bar in Ranchi Best Banquet in Ranchi
Nice one! Never thought of it. I used to add on delicious, but your idea is more better.
Web design company ranchi Mobile Application Development Ecommerce Website Development Custom Software Development Software Development Company Ranchi
Post a Comment