Hello,
David wrote:
> Jens has a generic XSLT question that could be better answered
> elsewhere.
[..]
> Wrap the whole thing in an xsl:choose.
> Have a when for the case when it exists:
> <xsl:when test="source/p/foo">
> In the xsl:otherwise, use xsl:message to issue your message.
Thank you - but that's not what I need. And that's why it's not a
generic XSLT question.
Of course I can use xsl commands, but my stylesheet is looking like this:
..
<xsl:value-of
select="id([EMAIL PROTECTED])/collElement2/refElement3)/propElement4/content"/>
..
Since my XML sources are generated dynamically, I'm not sure if (e.g.) collElement2 as a child refElement3 and so on.
And - if it hasn't - returning an empty string is a good result. But: It could be that the XSLT contains an error - and I never find it :(
That's why I want the processor (Xalan) to generate a warning message. I don't want my
XSLT to grow because I have to test every child element / attribute whether it exists or not.
Regards,
Jens
--
Jens von Pilgrim
4flow AG, Berlin, Germany
