[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Using for-each w/ page-sequence results in "NC105
Sharon_Harris@xxxxxxxxxxxxxxxxxxxx wrote:
I have all the page sequences contained within a template. I have 5 page sequences within that template that apply to 5 different elements (cover, disclaimer, toc, introduction, lessons). There are multiple instances of the Lesson element but the Lesson page sequence does not start over for each instance. That is very weird. At the very least, you should have the fo:root element in your output, since you match the root of the input document, and any input document always has a root and matching starts with that one. But you do not mention how this template actually looks and how the apply-templates look. Furthermore, you briefly mention select="//Lesson", which is an expensive operation and selects all Lesson elements at any depth in your document. It is usually far better to give a precise specification, or at least a depth specification, something like this: select="*/*/*/Lesson" if the Lesson elements are four levels (children) More on //Lesson: are you sure that the input document does not contain any namespaces? Did you set your xpath-default-namespace to someting not matching the namespace in the source document? But still, these hints are usesless as long as you do not have *any* output at all. Please run a minimum stylesheet, with only the headers, and only one matching template for the root level of the input and see if you can get output. I.e, the following should output "Hello world": <xsl:template match="/">Hello world</xsl:template>
|
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
|