[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Match values? (sorry so big)
> I thought my original explanation was a little confusing (ok very > confusing). > I got things working as I wanted after changing the xml file tags and > adding attributes. > Here is what I ended up with, what other approach would you have taken? > > Also is it more efficient to declare billto as a string and pass as a > parameter and declare > the document in the apply-templates select, like below. Or to declare > billto as a document > initially and pass the node set as the parameter. > > Thanks, > Rich Hello Rich, your stylesheet looks really good. Only some little changes according the variable usage: A variable is more or less useless, if you can't use it multiple times. ========================= mergeXML.xsl =============================== <?xml version="1.0"?> <xsl:stylesheet version="2.0" Really version="2.0"? Only Saxon supports the Working Draft version of XSLT and XPath 2.0. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> I suggest to declare the node set once. Look at the further changes. <html> <head> <title> This is driving me out of my mind!!!! </title> </head> <body> <xsl:apply-templates select="document(@invoice-header)/INVOICES/INVOICE"> <xsl:with-param name="TA-Parties" select="$TA-Parties"/> </xsl:apply-templates> </body> </html> </xsl:template> I hope I did no mistakes. The next time please send the XML with the question, this solves mostly the confusion. Regards, Joerg XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|