Strange client side xml xslt transformation problem


took a look at w3cshools example. Implemented exactly the same code on my environment. Firefox was performing the transformation as expected Internet Explorer (IE) all versions were failing and returning error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; eSobiSubscriber 2.0.4.16; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Thu, 24 Jun 2010 18:10:03 UTC

Message: The stylesheet does not contain a document element.  The stylesheet may be empty, or it may not be a well-formed XML document.

Line: 26
Char: 3
Code: 0
URI: http://www.w3schools.com/xsl/tryit_view.asp

After struggling for a day I’ve found out that my xslt file had extension “.xslt” not “.xsl”. After fixing the extension everything works smoothly. Did no extra checks but I guess that my jboss server was failing to put correct mime type for the file or something similar.

Set html tags style dynamically using javascript


Had a probelm to find css attribute to js mapping. So here it is.

document.getElementById(id).style.<check the table for a proper fieldname>

CSS Attribute to JavaScript Reference
CSS Property JavaScript Reference
background background
background-attachment backgroundAttachment
background-color backgroundColor
background-image backgroundImage
background-position backgroundPosition
background-repeat backgroundRepeat
border border
border-bottom borderBottom
border-bottom-color borderBottomColor
border-bottom-style borderBottomStyle
border-bottom-width borderBottomWidth
border-color borderColor
border-left borderLeft
border-left-color borderLeftColor
border-left-style borderLeftStyle
border-left-width borderLeftWidth
border-right borderRight
border-right-color borderRightColor
border-right-style borderRightStyle
border-right-width borderRightWidth
border-style borderStyle
border-top borderTop
border-top-color borderTopColor
border-top-style borderTopStyle
border-top-width borderTopWidth
border-width borderWidth
clear clear
clip clip
color color
cursor cursor
display display
filter filter
font font
font-family fontFamily
font-size fontSize
font-variant fontVariant
font-weight fontWeight
height height
left left
letter-spacing letterSpacing
line-height lineHeight
list-style listStyle
list-style-image listStyleImage
list-style-position listStylePosition
list-style-type listStyleType
margin margin
margin-bottom marginBottom
margin-left marginLeft
margin-right marginRight
margin-top marginTop
overflow overflow
padding padding
padding-bottom paddingBottom
padding-left paddingLeft
padding-right paddingRight
padding-top paddingTop
page-break-after pageBreakAfter
page-break-before pageBreakBefore
position position
float styleFloat
text-align textAlign
text-decoration textDecoration
text-decoration: blink textDecorationBlink
text-decoration: line-through textDecorationLineThrough
text-decoration: none textDecorationNone
text-decoration: overline textDecorationOverline
text-decoration: underline textDecorationUnderline
text-indent textIndent
text-transform textTransform
top top
vertical-align verticalAlign
visibility visibility
width width
z-index zIndex

LDAP: error code 80 – NDS error: partial results (-6106)


Had some problems with the following error on Novell eDir:

'Read Attributes' has encountered a problem.

Error while reading entry
[LDAP: error code 80 - NDS error:  partial results (-6106)]

First I thought that Novell eDirectory database got corrupted, but later I figured out that memberQueryURL of the dynamic group object was querying a container which was not on a tree.