An alternative fragment that might work...
s = '.class_to_add_border_to {border: '
+ widthMargin + 'px }' ;
ssr = document.createStyleSheet();
ssr.cssText = s;
Bob
1st, You may have mistyped this..
<xsl:if test="value-of select='Item' != ''">
should be
...select="Item !=...
2nd, you may want to use normalize-space() to avoid blank strings
3rd, you can avoid the look with...
<xsl:apply-templates...
You've a configuration problem. msxml, javascript, browser, and css versions need be reviewed. the sites www.gemal.dk
and www.bayes.co.uk have spy & sniffer tools.
am also interested in how to do it. css2, presumably clip:rect(top right bottom left); overflow: scroll
where top right botton left are offsets inward from a container.
Isn't overflow-x, overflow-y an IE extension?
Instead of xsl:value-of, use either xsl:copy-of or xsl:copy with identity templates, pending your need.
<tagwithbothhtmlandxml>
xsl:copy
xsl:apply-templates
<tagwithonlyhtml>
xsl:copy-of
try something like
count(preceding-sibling::*[name() = name(.)]
if not 0 it can't be unique. this is inefficient as you'll be revisiting the same nodes a lot.
../* says return all nodes of my parent, ie my siblings; otherwise you might want preceding::*.
there is a much more effiecient, and...
My own answer. Yes and no. The No is because XML xpaths are fixed at compilation time. Since an XML variable isn't, you can not use it. (you can use a predicate of the form [$value=@name], but nothing more complicated).
The Yes: add an additional transform step. So the xhtml is first wrapped in...
given
<rows>
<row>
<field>
etc
then some variation of below should work for you..
<xsl:template match='/'>
<xsl:apply-templates select='row' />
</xsl:template>
<xsl:template match="row">
<!-- quoth each field in the row and end with crlf -->
<xsl:for-each...
My goal is to merge an XHTML document that is acting like a template with peices from several XML documents. I'm open to any approach.
My current strategy is having an <insert> tag in the XHTML whereever the merge is to occur; for instance,
lots of xhtml code to keep
<insert...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.