[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Matching processing-instruction inside tgroup

Subject: Matching processing-instruction inside tgroup
From: "Ward, Lauren" <lauren.ward@xxxxxx>
Date: Fri, 30 Jul 2004 14:01:13 -0400
matching processing
I have a transform that imports 1.65/html/docbook.xsl and matches specific
processing instructions.  It succeeds unless the processing instructions are
located within a tgroup or child element. If I touch 1.65/html/table.xsl, I
can access the processing-instruction value from the tgroup and tbody
templates. I believe it is a precedence issue but can't locate the cause. Does
someone know how to solve this?

I've included sample source below.

Thanks,

Lauren

##########################################
Message Output:
[xslt]     Custom PI outside table
[xslt]     Custom PI in table
[xslt]     docbook tgroup in tgroup
[xslt]     docbook body in tbody


XSLT Source:
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0">

  <xsl:import href="../../../docbook-xsl/1.65/html/docbook.xsl"/>

  <xsl:template match="processing-instruction('Comment')">
    <xsl:variable name="comment" select="."/>
    <xsl:message>
    Custom PI <xsl:value-of select="$comment"/>
    </xsl:message>
  </xsl:template>

</xsl:stylesheet>



XML Source:
<article>
  <title>test PI</title>
  <?Comment outside table?>
    <table frame="all" id="requestedtable">
    <title>title text</title>
      <textobject>
        <phrase>description</phrase>
      </textobject>
      <?Comment in table?>
      <tgroup cols="1">
          <?Comment in tgroup?>
        <colspec colname="col1" colwidth="2*"/>
        <thead valign="top">
          <row>
            <entry>
              <phrase role="themebody">text</phrase>
            </entry>
          </row>
        </thead>
        <tbody valign="top">
          <?Comment in tbody?>
          <row>
            <entry namest="col1" nameend="col4">
              <phrase><emphasis role="bold">row</emphasis></phrase>
            </entry>
          </row>
        </tbody>
      </tgroup>
    </table>
</article>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.