Query about XSL stylesheet

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
prashob12
Posts: 18
Joined: Thu Oct 25, 2007 1:31 am
Location: India

Query about XSL stylesheet

Post 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
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Try removing the tags, just use plain text
Hope this was helpful.............good luck,
Bob
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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)
prashob12
Posts: 18
Joined: Thu Oct 25, 2007 1:31 am
Location: India

Post by prashob12 »

Thanks,
I'l try this and let u know.
Post Reply