I would much appreciate any help with the following problem. I am pretty new to XSL, 
so I may have screwed something up.

Using the following stylesheet:

<?xml version="1.0"?>
<xsl:stylesheet
      version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:output method="html"/>

<!-- Default processing: output nothing -->

<xsl:template match="text()" >
</xsl:template>

<xsl:template match="jobId">
     <P><xsl:value-of select="."/></P>
     <xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>


The following input document will not generate any output:

<jobsContainer><jobContainer><job 
xmlns="http://twister.db.com/com/db/twister/message/job";>
<jobId>226</jobId><jobConfig><queueName>**Unused**</queueName>
<priorityCode>10</priorityCode></jobConfig>
<jobState><startTime>1034342919446</startTime>
<statusCode>1</statusCode></jobState></job></jobContainer>
</jobsContainer>

However, if you change the 'xmlns' in the input document to 'foo' it works. (Displays 
'226' )

The real stylesheet, input etc, that I'm using is far more complicated, but this 
demonstrates the issue.

Do I need to implement a URIResolver? Surely this is 'just text', and has not special 
meaning to the processor?

Thanks so much for any help/suggestions,

James

Reply via email to