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

xalan multiple output docs based on imported xml


xalan multiple output

 Hello everyone,

      This may take a bit of explanation to describe what I am trying to
solve.
      For the sake of brevity, here is how  best  I can ask the question
      without dumping a bunch of xml and xslt rules.

      Here's my command line
    
      java xalanjava  cciproduct.xml  cci.xsl  cciplan.txt

      If you import some xml like this in cci.xsl

      <xsl:apply-templates select="document('editionszones.xml')"/>

      and start matching nodes inside this external xml to determine
multiple file names

      <xalan:open file="{$productdate}{$productname}{$zone}{$edition}.txt"/>

      <xalan:write file="{$productdate}{$productname}{$zone}{$edition}.txt"
method="text">
	
     	 <xsl:apply-templates/>
     	 
      </xalan:write>

      the variables were values derived from the external xml.
     

      The problem is the <xsl:apply-templates/> rule inside the
<xalan:write>.

      How can I now start matching the xml that is contained in the xml I
pointed to in my command
      line, cciproduct.xml ? Once I start matching nodes from the imported
xml, I cannot create any
      rules to find my way back to the xml in cciproduct.xml. The root
element of my document is that of the
      imported xml editionszones.xml. 

      Hope my explanation is clear enough, I would be happy to provide any
additional code if it will help.

     thanks
     jeff culler
      

 
     
   


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.