January 18, 2006
Installation Instructions for Subversion Plugin Subclipse in Eclipse 3.x
December 21, 2005
Strange things when you forget the namespace!
When your XSLT stylesheet seems to be doing strange things remember to
check the root element for a namespace. I banged my head against the
wall tonight for a good hour trying to figure out why I was getting
such strange results from simple template matches. If I did a match on
a wildcard like * it worked fine but if I did a specific match or xpath
expression nothing was coming back!
Example:
<myroot element xmlns="http://bogus.com/xmlbeans">
<some_elements/>
</myroot>
Once you remember to check the root for a namespace life is fairly
simple just declare the namespace:
Stylesheet:
<xsl:stylesheet
xmlns:bogus="http://bogus.com/xmlbeans"
xmlns="http://bogus.com/xmlbeans">
</xsl:stylsheet>
Note that I declare the namespace twice. Once so I can address
it in the input file as "bogus:<some_element>" and then as the
default namespace for the resulting file so I don't have namespaces
declared all over the place.
December 20, 2005
Toggle colors on html span element using Javascript
Javascript for changeing the color of span elements with a particular class attribute.
<script type="text/javascript">
function changecolor() {
for (i=0;i<document.getElementsByTagName("span").length; i++) {
if (document.getElementsByTagName("span").item(i).className == "myclass"){
document.getElementsByTagName("span").item(i).style.color = "green";
}
}
}
</script>
.......
<a href="#" onclick="changecolor();">Change Color</a>
.......
<span class="myclass">Hi There</span>
December 4, 2005
VMware 5.5 Worth the Upgrade for Linux Hosts
If you are running VMware on a Linux host it is worth the upgrade to
5.5 for the new bridged support for wireless networks. It used
to be the you had to use NAT when running your Virtual Machines under
Linux using a wireless card. This feature had been available for
windows hosts for awhile.
December 2, 2005
Using XSLT Stylesheets with Arbortext E3 for HTML Output
"convert" apparently expects to find an ATI processing instruction in
xsl stylesheets before it will execute HTML transformations. Otherwise
it only produces XML.
The PI should take the following form and be inserted as follows:
<?xml version="1.0"?><?APT StylesheetID Title="FOOBAR" CompositionTypes="htmlfile"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
November 25, 2005
Using XPath in a FOSI stylesheet with Arbortext
Example syntax:
<savetext conrule="!,#XPATHCONTENT(ancestor::Class/Title)#XPATH,!"
Additional Information:
In the installation tree of Arbortext you should see a directory called
tutorials. Inside of there is a sub-directory called 28001C. Inside of
that sub-directory is an SGML file called "28001C.sgm". This file is the
main definition of the FOSI standard which is sometimes also referred
to as the outspec. The file has notes indicating what parts of the
standard are supported, what parts are not supported, and Arbortext
extensions to the standard. Open this file and search for the string
XPath for more information.
TeX in a FOSI to rotate text for print/PDF
usetext source="%\hbox{\special{pub: rotate 45}%,12pt,\YOUR TEXT HERE\,%}%"
November 2, 2005
The Content Wrangler
Looking for information about Darwin Information Typing Architecture (DITA)?
If so, look no further! The Content Wrangler has rustled up the latest DITA news for you. DITA is a hot topic in technical communication circles and it's making headlines in the content management arena as well. Check out the interview with Puny Sen, Project Lead, Instructional Communications, Adobe Systems. Sen is candid, sharing the good, the bad, and the ugly about the software giant's foray into the world of the Darwin Information Typing Architecture (DITA).
If you're a DocBook user, you may want to read the analysis from Norm Walsh, who attempts to tweak DocBook to address the four strengths he sees in DITA. Peter Meyer and Andrew Squire also compare DITA to DocBook and other standards.
Content Management Professionals recently announced the formation of a DITA Community.
Bill Trippe briefly examined DITA in a recent issue of Intelligent Enterprise magazine and the Organization for the Advancement of Structured Information Standards (OASIS) has launched a new line of DITA-logo clothing and accessories.
Don't forget to sign up for the DITA 2006 Conference, sponsored by OASIS and brought to you by Bright Path Solutions, IBM and a host of content management and authoring tool vendors offering support for DITA.
Until next time... Jeff Deskins
[Text Provided by: Scott Abel, abelsp@netdirect.net - www.thecontentwrangler.com]
October 25, 2005
Arbortext XSL Support
A detailed description of the Arbortext 5.1 XSL FO support is
available at:
https://www.arbortext.com/support/html/arbortext51/ati_xsl.htm
October 23, 2005
Starting at Runlevel 3 instead of Runlevel 5
If you do not want to start X automatically edit the /etc/inittab
file like this:
id:3:initdefault:
What wireless networks are available
Wireless support in Linux is still an area that needs work. Currently
there is no reliable UI like in Windows that lists all of the networks
that are available, however there is a way to get the information from
the command line.
Use the following procedure to determine what wireless networks
are avilable:
- Open a terminal and switch to the root user
- Issue the command /sbin/iwlist scan
- The results should list all of the ESSID's available as well as
information on Channel and Encryption information.
October 18, 2005
Adding Additional RPM sites to yum search
To add additional sites that have RPMs for Linux:
1) Add the site to the yum config file under /etc/yum.conf
Example:
[atrpms]
name=ATrpms for Fedora Core $releasever
baseurl=http://apt.atrpms.net/fedora/$releasever/en/$basearch/at-stable
2) Find the sites public signing key
Example:
rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
Now when you do a yum install or update that site is added to sites
searched for RPMs. A note, be very careful with sites that have RPMs at
what's called RPMS.at-bleeding since these tend to be the raw
development builds and can lead to "bad things".....