Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behandlung der Attribute verbessern #15

Open
denismaier opened this issue Dec 22, 2020 · 1 comment
Open

Behandlung der Attribute verbessern #15

denismaier opened this issue Dec 22, 2020 · 1 comment

Comments

@denismaier
Copy link
Contributor

Aktuell müssen die Attribute manuell übertragen werden. Das kann unübersichtlich werden. Eventuell können wir die Attribute auch unbesehen übertragen, mittels "identity transformation"...

@denismaier
Copy link
Contributor Author

Beispiel:

<xsl:template match="//named-content">
    <span>
      <xsl:apply-templates select="@* | node()"/>
    </span>
  </xsl:template>
  
  <xsl:template match="@xml:lang">
   <xsl:attribute name="xml:lang">
      <xsl:value-of select="."/>
   </xsl:attribute>
</xsl:template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant