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

document()

Subject: document()
From: Alexey Skoblikov <leshakk@xxxxxxxxxxx>
Date: Thu, 12 Jul 2001 19:02:48 +0400
div src
Dear colleagues,

I am stuck with making appropriate code. May be you have some ready
solution. I'd be glad if you share it with me.

In processed document I have

<xgl>
  <contents>
    <div src="c_div1.xml">
      <title level="0" text="Title 1"/>
      <div src="c_div2.xml">
        <title level="1" text="Title 1.1"/>
NB!     <div src="c_div3.xml">
          <title level="2" text="Title 1.2"/>
        </div>
      </div>
    </div>
  </contents>
</xgl>

and in c_div3.xml

<xgl> <!-- root element -->
  <section ...>
    <text>...</text>
NB! <style ... ptsize="16" .../>
  </section>

I want to bring div[title/@text="Title 1.2"] to the higher level in
hierarchy, because @ptsize of its 1st section is 16. So I write

<xsl:template match="div[div]">
    <xsl:copy-of select="div[title/@level='2' and document('{src}')//section[1]/style/@ptsize='16']"/>
</xsl:template>
<xsl:template match="div[title/@level='2' and document('{src}')//section/style/@ptsize='16']">
</xsl:template>

That makes in source document <content></content>

Where am I wrong?
Deleting the second template doesn't change the situation.

-- 
Best regards,
 Alexey Skoblikov
 Software Engineer - Adria&Co.
 mailto:leshakk@xxxxxxxxxxx


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


Current Thread
  • document()
    • Alexey Skoblikov - Thu, 12 Jul 2001 11:08:47 -0400 (EDT) <=

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.