Page 1 of 1

Query about XSL stylesheet

Posted: Wed Dec 05, 2007 4:35 pm
by prashob12
Hi all,

This query is not regarding textpad.
It is about XSL stylesheet. Following tag which is present in my XML file now what I want is to view the following tag in browser could you please let me know what tag will be used in the stylesheet to view it in the browser since the browser doesn't recognise "<?". Following is the input which is in the XML file and the desired output in the browser.

Input

<?textpage num="7" release-num="13"?>

Output

textpage num="7" release-num="13"

Please help.

Rgds,
Prashob

Posted: Wed Dec 05, 2007 6:31 pm
by Bob Hansen
Try removing the tags, just use plain text

Posted: Wed Dec 05, 2007 7:59 pm
by MudGuard
afaik you can do that with

Code: Select all

<xsl:template match="processing-instruction('textpage')">
    <xsl:text>textpage </xsl:text><xsl:value-of select="."/>
</xsl:template>
(this is untested - and I have no idea how to do it if the target of the processing instruction is not a constant string)

Posted: Thu Dec 06, 2007 4:33 pm
by prashob12
Thanks,
I'l try this and let u know.