Jump to content
php.lv forumi
Sign in to follow this  
mandarīnpīle

xsl izvade

Recommended Posts

XSL failā, kas producē Microsoft Worda bibliogrāfiju, stāv rakstīts šādi:

 

 

<xsl:template name="BibDisplayURL">
<xsl:variable name="cURL">
<xsl:value-of select="count(b:URL)"/>
</xsl:variable>
<xsl:if test ="$cURL!=0">
<xsl:text>Pieejams:</xsl:text>
<xsl:value-of select="b:URL"/>
<xsl:call-template name ="templ_prop_Dot"/>
</xsl:if>
</xsl:template>
 
Un izvade no tā ir apmēram šāda:
[1] «Saites nosaukums,» [Tiešsaiste]. Pieejams: http://www.ruby-lang.org/en/about/#fn2. [Piekļūts 26 01 2013].
 
 
Jautājums, kas un kā tur jāizmaina, lai aiz vārda "Pieejams: " tiktu ielikts line breaks, un saite būtu jaunā rindā?

Share this post


Link to post
Share on other sites

<xsl:text>Pieejams:</xsl:text><br />

Share this post


Link to post
Share on other sites

<xsl:text>Pieejams:</xsl:text><br />

Un kā ielikt line breaku, kā arī iegūt treknrakstu, ja izvade notiek šādi:

 <format>{<strong>bold</strong>%Author:1%. }{ %InternetSiteTitle|Title%.}{ [tiešsaiste]. [skatīts %DayAccessed:1%.%MonthAccessed:1%.%YearAccessed:1%.] Pieejams: %URL:l%}</format>

 

<strong> tagi nedarbojas. Pieņemsim, ka gribu [tiešsaiste] treknrakstā

Edited by mandarīnpīle

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...