T
Tjerk Wolterink
Hello all,
how does xsl handle white space?
I know you can set domething like this
for nice indentation:
<xslutput method="xhtml" indent="yes"/>
But know i have xsl code like this:
<a>
<xsl:attribute name="href">
<xsl:value-of select="$absolute_url"/>/index.php?page=<xsl:value-of
select="@page"/>
<xsl:for-each select="page:var">
&<xsl:value-of select="page:name"/>=<xsl:value-of
select="page:value"/>
</xsl:for-each>
</xsl:attribute>
</a>
But that should transform to someting like this:
<a href="http://localhost/index.php?page=pages/medewerker.page.xml&id=42">
</a>
Not to someting like this:
<a
href="http://localhost/index.php?page=pages/medewerker.page.xml & id =42">
</a>
How do is solve my problem??
And why is & not recognised? How should i define entities?
Note, i have an xsd but i do not use it to validate documents, and the
xml documents do not say wich scheme they are. So how can i define &
=& without xsd?!?!
how does xsl handle white space?
I know you can set domething like this
for nice indentation:
<xslutput method="xhtml" indent="yes"/>
But know i have xsl code like this:
<a>
<xsl:attribute name="href">
<xsl:value-of select="$absolute_url"/>/index.php?page=<xsl:value-of
select="@page"/>
<xsl:for-each select="page:var">
&<xsl:value-of select="page:name"/>=<xsl:value-of
select="page:value"/>
</xsl:for-each>
</xsl:attribute>
</a>
But that should transform to someting like this:
<a href="http://localhost/index.php?page=pages/medewerker.page.xml&id=42">
</a>
Not to someting like this:
<a
href="http://localhost/index.php?page=pages/medewerker.page.xml & id =42">
</a>
How do is solve my problem??
And why is & not recognised? How should i define entities?
Note, i have an xsd but i do not use it to validate documents, and the
xml documents do not say wich scheme they are. So how can i define &
=& without xsd?!?!