This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can I access elements in the output tree?


Hi,

Would it be possible to insert elements in the output tree and subsequently
access them? If so, would there be any restrictions?

Here is the general setup:

<?xml version='1.0' encoding='ISO-8859-1'?>
<xsl:transform version='1.0'
    xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
    xmlns:qxml='urn:neroc:qxml'
    xmlns='urn:neroc:qxml'
    exclude-result-prefixes='#default qxml'
>

<xsl:output 
    method='xml' 
    encoding='ISO-8859-1'
    omit-xml-declaration='no'
    media-type='application/qxml'
/>

<xsl:template match='/'>
<xsl:element name='Name'>John Doe</xsl:element>
<xsl:message>
<xsl:value-of select='descendant-or-self::node()/Name'/>
</xsl:message>
</xsl:template>

</xsl:transform>

Xalan accepts this as a valid XSLT-document, but doesn't produce the desired
output.

With king regards,
Peter Paulus


Neroc Publishing Solutions
De Run 1131
5503 LB VELDHOVEN
The Netherlands
tel: +31-40-2586666
fax: +31-40-2541893




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]