Hello all,
I have a need to check preceding-sibling::*[1] to see if it's a <title> or
not using XPATH. However, its not working. Below is my XML.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "C:\docbook\XML\docbookx.dtd">
<!-- preceding::*[1] != title @ sect2-->
<chapter>
<title/>
<sect1>
<title></title>
<sect2><!-- preceding-sibling::*[1] = title -->
<title role="maintenance_head"> dont break column!!</title>
<para></para>
</sect2>
<sect2><!-- preceding-sibling::*[1] = sect2 -->
<title role="maintenance_head">break column!!</title>
<para></para>
</sect2>
</sect1>
</chapter>
The comments: <!-- preceding-sibling::*[1] = title --> show the results of
the XPATH query. However, I cannot get a boolean value out of this
statement.
Why wont this work: preceding-sibling::*[1] = 'title' ???
Any suggestions would be greatly appreciated!
David White
--~------------------------------------------------------------------
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>
--~--