xsl-list
[Top] [All Lists]

RE: [xsl] Print parent text

2007-08-23 11:54:54
If your emphasis node is treated differently based upon it's parent,
simply create a match for each type:

<xsl:template match="emphasis[parent::a]">
  Perform a/emphasis formatting...
</xsl:template>

<xsl:template match="emphasis[parent::b]">
  Perform b/emphasis formatting...
</xsl:template>


Thanks!
Angela 

-----Original Message-----
From: Luke Jones [mailto:ljones(_at_)leg(_dot_)ne(_dot_)gov] 
Sent: Thursday, August 23, 2007 11:29 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Print parent text

I did it this way because emphasis nodes as well as para nodes show up
as children to many different parents and need to be handled in
different ways.  

Thanks!


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>