Sign In/My Account | View Cart  
advertisement

Article:
 Reading Multiple Input Documents
Subject: unnecessary lines in xq493.xml
Date: 2007-01-24 12:43:09
From: Bob DuCharme
Response to: unnecessary lines in xq493.xml

(I assume you mean xq487.xsl, which has that line, because there is no xq497.xml with this article.)


I declared colorNumKey to read in the document into the variable where it could be referenced by the two different template rules. Otherwise, the document could have been read in multiple times: once when the XSLT processor hit the shirts element and then once each time it hit a shirt element.


You're right about the second point: simply changing the output method to "xml" isn't enough if you want to see the actual elements output. You need a template rule to copy the elements. For the purposes of my demo, that's not what I was trying to do.


Bob


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message

Sponsored By: