XSLT Formatting output html

View: New views
3 Messages — Rating Filter:   Alert me  

XSLT Formatting output html

by Adz07 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Firstly, sorry if this is the wrong mailing list.

I am probably being really stupid but;

Can anyone tell me if it is possible to keep the tabbing inside a XSL file defining output HTML?
Every thing i try in the XSL (output options etc) makes the source of the page display without any tabs?

Say for example i have this XSL template:

<xsl:template match="/">
<html>
    <head>
        <title><xsl:apply-templates select="pagetitle" /></title>
    </head>
    ...
</html>
</xsl:template>


the ouput of the page source becomes like the following (without tabs):

<html>
<head>
<title>This is the title</title>
</head>
...
</html>


is there a way to keep it like:

<html>
    <head>
        <title>This is the title</title>
    </head>
    ...
</html>


Thanks,
Adam



Re: XSLT Formatting output html

by Andrew Welch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 09/10/2007, Adz07 <adam@...> wrote:
>
> Firstly, sorry if this is the wrong mailing list.

Join the "xsl-list" - it's a great list for XSLT questions.


> Can anyone tell me if it is possible to keep the tabbing inside a XSL file
> defining output HTML?

You mean the indentation, which is done by using the indent attribute
on xsl:output eg:

<xsl:output indent="yes"/>


--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


RE: XSLT Formatting output html

by Michael Kay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Please send XSLT coding queries to the xsl-list at mulberrytech.com

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: xmlschema-dev-request@...
> [mailto:xmlschema-dev-request@...] On Behalf Of Adz07
> Sent: 09 October 2007 12:44
> To: xmlschema-dev@...
> Subject: XSLT Formatting output html
>
>
> Firstly, sorry if this is the wrong mailing list.
>
> I am probably being really stupid but;
>
> Can anyone tell me if it is possible to keep the tabbing
> inside a XSL file defining output HTML?
> Every thing i try in the XSL (output options etc) makes the
> source of the page display without any tabs?
>
> Say for example i have this XSL template:
>
> <xsl:template match="/">
> <html>
>     <head>
>         <title><xsl:apply-templates select="pagetitle" /></title>
>     </head>
>     ...
> </html>
> </xsl:template>
>
> the ouput of the page source becomes like the following
> (without tabs):
>
> <html>
> <head>
> <title>This is the title</title>
> </head>
> ....
> </html>
>
> is there a way to keep it like:
>
> <html>
>     <head>
>         <title>This is the title</title>
>     </head>
>     ...
> </html>
>
> Thanks,
> Adam
>
>
>
> --
> View this message in context:
> http://www.nabble.com/XSLT-Formatting-output-html-tf4593641.ht
> ml#a13113845
> Sent from the w3.org - xmlschema-dev mailing list archive at
> Nabble.com.
>
>
>