Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Highlight words?

From: "Julius Mong" <jxm96c@-------.--->
To: NULL
Date: 5/3/2006 8:17:00 AM

"Martin Honnen" <mahotrash@y...> wrote in message 
news:OCo423gbGHA.3856@T......
>
>
> Julius Mong wrote:
>
>
>> OK I've tried that before, problem is it returns undefined. I tried this:
>>
>> document.getElementsByTagName('body')[0]
>>
>> I get undefined, I tried:
>>
>> document.getElementsByTagName('html')[0].childNodes[0] // or firstChild
>>
>> I get object HTMLHeadElement
>
>
> That sounds rather odd. Does the XSLT stylesheet generate a body element? 
> Do you call
>   document.getElementsByTagName('body')[0]
> after the document has been loaded?

Yes after loaded the document and it works perfectly in IE, it seems to be a 
known bug in firefox as mentioned in first post... just wondering if there's 
another way to do the highlighting using XSLT rather than DOM. I store the 
words/phrases to be matched in temp cookies, would XSLT have access to 
these? I mean I've seen highlighting XSLT samples, but I don't know if it's 
possible to have the template receive the search keywords as arguments at 
run time, the samples all have hard coded search strings already...

Thanks,

Julius




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent