[xsl] Attempt to Select from the Top of Document No Worky

Subject: [xsl] Attempt to Select from the Top of Document No Worky
From: Kyle Partridge <derangedwombat@xxxxxxxxx>
Date: Mon, 8 Dec 2003 13:07:12 -0800 (PST)

I've searched high and low for the answer to this
problem...to no avail...so I'll be quick.  I've got a
pretty complicated xml document...lots of nodes.

I'm matching a paragraph, and I want to style it.  the
structure is something like:

<p style="blah">stuff in here</p>

Someplace else, far above, the "blah" style is
defined, in a node pretty well nested:

   <textStyle name="Normal">
    <blockAttr indent-left="0" indent-right="0"
text-indent="0" text-align="left"
list-style-type="none" tabs="0.5 1.0 1.2"/>
    <inlineAttr font-family="Arial" font-size="10"
font-weight="normal" font-style="normal"
font-charset="Western" text-decoration="none"
vertical-align="baseline" color="#000"/>
   ...lots and lots more stuff before the preceeding
tags close...

I tried to use this template to get the style
information to apply to each paragraph, but it doesn't

<xsl:template match="ws:p">
  <xsl:element name="fo:block">
    <xsl:variable name="styleName" select="@style"/>
	<xsl:attribute name="{local-name(.)}">
	<xsl:value-of select="."/>

Maybe the reason is that // doesn't work inside of my
existing query (ws:p), but what can I do to get the
values I'm looking for?

Many thanks,

Do you Yahoo!?
Free Pop-Up Blocker - Get it now

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread