Xoan
This is geting more tricky, as its not clear from what you
say exactly what output you are expecting, and what tags
you want to keep and which you want to drop...
For example, you could use:
xsl:template match=xmlcode/reportId
bxsl:apply-templates//b
/xsl:template
if you did not want to
Thanks to all for the info,
I've solved the problem.
Regards
Xoan
2005/5/11, Derek Hohls [EMAIL PROTECTED]:
Xoan
This is geting more tricky, as its not clear from what you
say exactly what output you are expecting, and what tags
you want to keep and which you want to drop...
For
Hi all,
I apologize for the obvious question. Perhaps this is not the right
place to present it.
I am using Cocoon and XSP to query eXist (native xml database).I have
a xsp that performs a query on eXist using the following code:
xsp:page language=javascript
Xoan
Not too hard
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
!-- root --
xsl:template match=/
xsl:apply-templates/
/xsl:template
!-- your node --
xsl:template match=xmlcode
bxsl:apply-templates//b
/xsl:template
!-- others;
Thanks Derek,
It works fine!
Regards,
Xoan
2005/5/10, Derek Hohls [EMAIL PROTECTED]:
Xoan
Not too hard
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
!-- root --
xsl:template match=/
xsl:apply-templates/
Hi Derek,
I don't want to be annoying but if you could help me again I would be grateful.
I have slightly modified the xsl you sent me. The reason was for not
to replace the element but only to format it (copy-of):
!-- your node --
xsl:template match=xmlcode
bxsl:copy-of select=.//b
Xoan wrote:
[...]
It works correctly, but actually, my intention is to apply the format
not to the xmlcode element, but another elements inside it. Moreover
I only want to apply this format to the reportId elemnts inside
xmlcode. It is possible the existence of reportId elements outside
xmlcode,